when terminating during unwinding, show the reason why
This commit is contained in:
parent
32eecd4b88
commit
70f6321cf9
@ -292,7 +292,7 @@ fn check_terminator<'tcx>(
|
||||
| TerminatorKind::Goto { .. }
|
||||
| TerminatorKind::Return
|
||||
| TerminatorKind::UnwindResume
|
||||
| TerminatorKind::UnwindTerminate
|
||||
| TerminatorKind::UnwindTerminate(_)
|
||||
| TerminatorKind::Unreachable => Ok(()),
|
||||
TerminatorKind::Drop { place, .. } => {
|
||||
if !is_ty_const_destruct(tcx, place.ty(&body.local_decls, tcx).ty, body) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user