Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 70f6321

Browse files
committed
when terminating during unwinding, show the reason why
1 parent 32eecd4 commit 70f6321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ fn check_terminator<'tcx>(
292292
| TerminatorKind::Goto { .. }
293293
| TerminatorKind::Return
294294
| TerminatorKind::UnwindResume
295-
| TerminatorKind::UnwindTerminate
295+
| TerminatorKind::UnwindTerminate(_)
296296
| TerminatorKind::Unreachable => Ok(()),
297297
TerminatorKind::Drop { place, .. } => {
298298
if !is_ty_const_destruct(tcx, place.ty(&body.local_decls, tcx).ty, body) {

0 commit comments

Comments
 (0)