]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/place_ext.rs
Move def_id out add substsref
[rust.git] / src / librustc_mir / borrow_check / place_ext.rs
index 72d5588c34120523522ce5971e14c52f0c7b7f2b..5caba637ccc4abf1b7473d32e478d0da0d69daca 100644 (file)
@@ -46,9 +46,9 @@ fn ignore_borrow(
                         }
                     }
                 }
-                PlaceBase::Static(box Static{ kind: StaticKind::Promoted(_), .. }) =>
+                PlaceBase::Static(box Static{ kind: StaticKind::Promoted(_, _), .. }) =>
                     false,
-                PlaceBase::Static(box Static{ kind: StaticKind::Static(def_id), .. }) => {
+                PlaceBase::Static(box Static{ kind: StaticKind::Static, def_id, .. }) => {
                     tcx.is_mutable_static(*def_id)
                 }
             };