]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/dataflow/impls/storage_liveness.rs
Changes the type `mir::Mir` into `mir::Body`
[rust.git] / src / librustc_mir / dataflow / impls / storage_liveness.rs
index 3bf11c57379c24fcc2dad7781c358c233cee79db..ab79d6cc947e8146279b67ac8f8de11148e8ed4c 100644 (file)
@@ -5,16 +5,16 @@
 
 #[derive(Copy, Clone)]
 pub struct MaybeStorageLive<'a, 'tcx: 'a> {
-    mir: &'a Mir<'tcx>,
+    mir: &'a Body<'tcx>,
 }
 
 impl<'a, 'tcx: 'a> MaybeStorageLive<'a, 'tcx> {
-    pub fn new(mir: &'a Mir<'tcx>)
+    pub fn new(mir: &'a Body<'tcx>)
                -> Self {
         MaybeStorageLive { mir }
     }
 
-    pub fn mir(&self) -> &Mir<'tcx> {
+    pub fn mir(&self) -> &Body<'tcx> {
         self.mir
     }
 }