(&mut self, config: &mut rustc_interface::interface::Config)
| 42 | |
| 43 | impl rustc_driver::Callbacks for LockBudCallbacks { |
| 44 | fn config(&mut self, config: &mut rustc_interface::interface::Config) { |
| 45 | self.file_name = "<rustc input>".to_owned(); |
| 46 | debug!("Processing input file: {}", self.file_name); |
| 47 | if config.opts.test { |
| 48 | debug!("in test only mode"); |
| 49 | // self.options.test_only = true; |
| 50 | } |
| 51 | match &config.output_dir { |
| 52 | None => { |
| 53 | self.output_directory = std::env::temp_dir(); |
| 54 | self.output_directory.pop(); |
| 55 | } |
| 56 | Some(path_buf) => self.output_directory.push(path_buf.as_path()), |
| 57 | } |
| 58 | } |
| 59 | fn after_analysis( |
| 60 | &mut self, |
| 61 | compiler: &rustc_interface::interface::Compiler, |
| 62 | tcx: TyCtxt<'_>, |
| 63 | ) -> rustc_driver::Compilation { |
| 64 | compiler.sess.dcx().abort_if_errors(); |
| 65 | if self |
nothing calls this directly
no outgoing calls
no test coverage detected