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 f32d298 commit aa9ae20Copy full SHA for aa9ae20
1 file changed
compiler/rustc_monomorphize/src/collector.rs
@@ -844,6 +844,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
844
mir::TerminatorKind::Assert { ref msg, .. } => {
845
let lang_item = match &**msg {
846
mir::AssertKind::BoundsCheck { .. } => LangItem::PanicBoundsCheck,
847
+ mir::AssertKind::MisalignedPointerDereference { .. } => LangItem::PanicMisalignedPointerDereference,
848
_ => LangItem::Panic,
849
};
850
push_mono_lang_item(self, lang_item);
0 commit comments