mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Auto merge of #18157 - davidbarsky:davidbarsky/respect-disabling-proc-macros-in-analysis-stats, r=Veykril
analysis-stats: respect `--disable-proc-macros` flag I noticed that this flag wasn't being respected by `analysis-stats` when profiling proc macro expansion, so here's a small fix.
This commit is contained in:
commit
80c06828a2
@ -77,7 +77,11 @@ impl flags::AnalysisStats {
|
||||
let metadata_time = db_load_sw.elapsed();
|
||||
let load_cargo_config = LoadCargoConfig {
|
||||
load_out_dirs_from_check: !self.disable_build_scripts,
|
||||
with_proc_macro_server: ProcMacroServerChoice::Sysroot,
|
||||
with_proc_macro_server: if self.disable_proc_macros {
|
||||
ProcMacroServerChoice::None
|
||||
} else {
|
||||
ProcMacroServerChoice::Sysroot
|
||||
},
|
||||
prefill_caches: false,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user