We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23fda35 commit 0df8094Copy full SHA for 0df8094
compiler/rustc_driver_impl/src/lib.rs
@@ -449,7 +449,7 @@ fn run_compiler(
449
return early_exit();
450
}
451
452
- let _ = tcx.analysis(());
+ tcx.ensure().analysis(());
453
454
if callbacks.after_analysis(compiler, tcx) == Compilation::Stop {
455
compiler/rustc_driver_impl/src/pretty.rs
@@ -223,7 +223,7 @@ impl<'tcx> PrintExtra<'tcx> {
223
224
pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
225
if ppm.needs_analysis() {
226
- let _ = ex.tcx().analysis(());
+ ex.tcx().ensure().analysis(());
227
228
229
let (src, src_name) = get_source(sess);
0 commit comments