mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-28 16:35:57 +00:00
Use ensure for analysis calls
This commit is contained in:
parent
23fda35811
commit
0df80949aa
@ -449,7 +449,7 @@ fn run_compiler(
|
||||
return early_exit();
|
||||
}
|
||||
|
||||
let _ = tcx.analysis(());
|
||||
tcx.ensure().analysis(());
|
||||
|
||||
if callbacks.after_analysis(compiler, tcx) == Compilation::Stop {
|
||||
return early_exit();
|
||||
|
@ -223,7 +223,7 @@ impl<'tcx> PrintExtra<'tcx> {
|
||||
|
||||
pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
|
||||
if ppm.needs_analysis() {
|
||||
let _ = ex.tcx().analysis(());
|
||||
ex.tcx().ensure().analysis(());
|
||||
}
|
||||
|
||||
let (src, src_name) = get_source(sess);
|
||||
|
Loading…
Reference in New Issue
Block a user