about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authormarmeladema <xademax@gmail.com>2020-04-08 14:53:06 +0100
committermarmeladema <xademax@gmail.com>2020-04-10 12:13:54 +0100
commitf62c6e1c762b60bae0bcc60ed344feee99f5c610 (patch)
treeab9374227204cbbafa2c4c39011d43ede7b6fd0f /src/librustc_interface
parent1dc363bce1f02ed9863f9b9cdc10532b95a64fbb (diff)
downloadrust-f62c6e1c762b60bae0bcc60ed344feee99f5c610.tar.gz
rust-f62c6e1c762b60bae0bcc60ed344feee99f5c610.zip
librustc_middle: return LocalDefId instead of DefId in body_owner_def_id
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/passes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs
index 609c80a2b79..4c054795136 100644
--- a/src/librustc_interface/passes.rs
+++ b/src/librustc_interface/passes.rs
@@ -812,7 +812,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
             {
                 sess.time("match_checking", || {
                     tcx.par_body_owners(|def_id| {
-                        tcx.ensure().check_match(def_id);
+                        tcx.ensure().check_match(def_id.to_def_id());
                     });
                 });
             },
@@ -834,7 +834,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
     });
 
     sess.time("MIR_borrow_checking", || {
-        tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
+        tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id.to_def_id()));
     });
 
     sess.time("dumping_chalk_like_clauses", || {
@@ -843,7 +843,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
 
     sess.time("MIR_effect_checking", || {
         for def_id in tcx.body_owners() {
-            mir::transform::check_unsafety::check_unsafety(tcx, def_id)
+            mir::transform::check_unsafety::check_unsafety(tcx, def_id.to_def_id())
         }
     });