We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a19371 commit 3642a71Copy full SHA for 3642a71
src/librustc_metadata/rmeta/decoder.rs
@@ -1082,7 +1082,7 @@ impl<'a, 'tcx> CrateMetadata {
1082
1083
fn get_optimized_mir(&self, tcx: TyCtxt<'tcx>, id: DefIndex) -> Body<'tcx> {
1084
self.root.per_def.mir.get(self, id)
1085
- self.entry_unless_proc_macro(id)
+ .filter(|_| !self.is_proc_macro(id))
1086
.unwrap_or_else(|| {
1087
bug!("get_optimized_mir: missing MIR for `{:?}`", self.local_def_id(id))
1088
})
0 commit comments