We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b252924 commit b71cd56Copy full SHA for b71cd56
compiler/rustc_driver/src/lib.rs
@@ -388,10 +388,10 @@ fn run_compiler(
388
return early_exit();
389
}
390
391
- let crate_name = queries.crate_name()?.peek().clone();
392
queries.global_ctxt()?.peek_mut().enter(|tcx| {
393
- let result = tcx.analysis(LOCAL_CRATE);
+ tcx.analysis(LOCAL_CRATE)?;
394
if sess.opts.debugging_opts.save_analysis {
+ let crate_name = queries.crate_name()?.peek().clone();
395
sess.time("save_analysis", || {
396
save::process_crate(
397
tcx,
@@ -405,7 +405,7 @@ fn run_compiler(
405
)
406
});
407
408
- result
+ Ok(())
409
})?;
410
411
if callbacks.after_analysis(compiler, queries) == Compilation::Stop {
0 commit comments