about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2022-08-23 20:53:02 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2022-08-23 20:53:02 +0900
commitf280138c7c99c3a9bebbdf719f716c43eb944bbd (patch)
tree5d9509db1ebe7fc215c69b33f66f98f0f9e74502 /compiler/rustc_interface/src
parent8818b00b634ee48e7617d9beb48c4d7bc6967f06 (diff)
downloadrust-f280138c7c99c3a9bebbdf719f716c43eb944bbd.tar.gz
rust-f280138c7c99c3a9bebbdf719f716c43eb944bbd.zip
Use par_body_owners for liveness
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 014cf88389e..b7fbda58eca 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -911,13 +911,13 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
                 });
             },
             {
-                sess.time("liveness_and_intrinsic_checking", || {
-                    tcx.hir().par_for_each_module(|module| {
+                sess.time("liveness_checking", || {
+                    tcx.hir().par_body_owners(|def_id| {
                         // this must run before MIR dump, because
                         // "not all control paths return a value" is reported here.
                         //
                         // maybe move the check to a MIR pass?
-                        tcx.ensure().check_mod_liveness(module);
+                        tcx.ensure().check_liveness(def_id.to_def_id());
                     });
                 });
             }