Box AssertKind
This commit is contained in:
parent
dbba594575
commit
f08f903fa9
10 changed files with 13 additions and 13 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue