diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-08 16:57:09 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-08 16:57:09 +0000 |
| commit | 0df80949aa4bb234d13b4db9dd09c5e7870667db (patch) | |
| tree | 4636c6b9284b1b46e09d7df3e65a5c406fd94529 /compiler/rustc_driver_impl/src/pretty.rs | |
| parent | 23fda35811f15c368843ac7ee20a03a18a2b2fa0 (diff) | |
| download | rust-0df80949aa4bb234d13b4db9dd09c5e7870667db.tar.gz rust-0df80949aa4bb234d13b4db9dd09c5e7870667db.zip | |
Use ensure for analysis calls
Diffstat (limited to 'compiler/rustc_driver_impl/src/pretty.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index a3310556222..5df960be307 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -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); |
