mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
when terminating during unwinding, show the reason why
This commit is contained in:
parent
32eecd4b88
commit
70f6321cf9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue