Fix typo caused by rebasing

This commit is contained in:
Paul Daniel Faria 2019-10-25 09:53:59 -04:00
parent 0a19371243
commit 3642a71da2

View file

@ -1082,7 +1082,7 @@ impl<'a, 'tcx> CrateMetadata {
fn get_optimized_mir(&self, tcx: TyCtxt<'tcx>, id: DefIndex) -> Body<'tcx> {
self.root.per_def.mir.get(self, id)
self.entry_unless_proc_macro(id)
.filter(|_| !self.is_proc_macro(id))
.unwrap_or_else(|| {
bug!("get_optimized_mir: missing MIR for `{:?}`", self.local_def_id(id))
})