1
Fork 0

Box AssertKind

This commit is contained in:
Ben Kimock 2023-05-01 18:30:54 -04:00
parent dbba594575
commit f08f903fa9
10 changed files with 13 additions and 13 deletions

View file

@ -843,7 +843,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
}
}
mir::TerminatorKind::Assert { ref msg, .. } => {
let lang_item = match msg {
let lang_item = match &**msg {
mir::AssertKind::BoundsCheck { .. } => LangItem::PanicBoundsCheck,
_ => LangItem::Panic,
};