1
Fork 0

Fix unsafetyck disabling for custom MIR

This commit is contained in:
Jakob Degen 2022-12-03 23:54:55 -08:00
parent 21ee03e062
commit c1b27eea45
4 changed files with 30 additions and 1 deletions

View file

@ -533,6 +533,11 @@ impl<'tcx> Body<'tcx> {
};
injection_phase > self.phase
}
#[inline]
pub fn is_custom_mir(&self) -> bool {
self.injection_phase.is_some()
}
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, TyEncodable, TyDecodable, HashStable)]