Called before creating the compiler instance
(&mut self, config: &mut interface::Config)
| 24 | impl 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`) |