]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/rmeta/decoder.rs
Differentiate between the availability of ctfe MIR and runtime MIR
[rust.git] / compiler / rustc_metadata / src / rmeta / decoder.rs
index ae8b379703a8921523b44aa268f99157db1f1e0c..a4cf4f096e0e4678c99722602f01f2ebc2b310d8 100644 (file)
@@ -1160,9 +1160,12 @@ fn each_child_of_item<F>(&self, id: DefIndex, mut callback: F, sess: &Session)
         }
     }
 
+    fn is_ctfe_mir_available(&self, id: DefIndex) -> bool {
+        self.root.tables.mir_for_ctfe.get(self, id).is_some()
+    }
+
     fn is_item_mir_available(&self, id: DefIndex) -> bool {
         self.root.tables.mir.get(self, id).is_some()
-            || self.root.tables.mir_for_ctfe.get(self, id).is_some()
     }
 
     fn module_expansion(&self, id: DefIndex, sess: &Session) -> ExpnId {