MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / config

Method config

src/analysis/callback.rs:26–34  ·  view source on GitHub ↗

Called before creating the compiler instance

(&mut self, config: &mut interface::Config)

Source from the content-addressed store, hash-verified

24impl rustc_driver::Callbacks for BypasserCallbacks {
25 /// Called before creating the compiler instance
26 fn config(&mut self, config: &mut interface::Config) {
27 self.source_name =config
28 .input
29 .source_name()
30 .prefer_remapped_unconditionaly()
31 .to_string();
32 config.crate_cfg.push("mirai".to_string());
33 info!("Source file: {}", self.source_name);
34 }
35
36 /// Called after analysis. Return value instructs the compiler whether to
37 /// continue the compilation afterwards (defaults to `Compilation::Continue`)

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected