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

Commit 50f7f8e

Browse files
committed
give some unwind-related terminators a more clear name
1 parent 5638860 commit 50f7f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ fn check_terminator<'tcx>(
291291
| TerminatorKind::FalseUnwind { .. }
292292
| TerminatorKind::Goto { .. }
293293
| TerminatorKind::Return
294-
| TerminatorKind::Resume
295-
| TerminatorKind::Terminate
294+
| TerminatorKind::UnwindResume
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)