Use ensure for analysis calls
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user