MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / config

Method config

src/callbacks.rs:44–62  ·  view source on GitHub ↗
(&mut self, config: &mut rustc_interface::interface::Config)

Source from the content-addressed store, hash-verified

42
43impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected