Skip to content

Commit 293c1a1

Browse files
committed
Fix tools
1 parent f5ac844 commit 293c1a1

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
@@ -301,13 +301,13 @@ fn check_terminator<'tcx>(
301301
| TerminatorKind::Goto { .. }
302302
| TerminatorKind::Return
303303
| TerminatorKind::Resume
304+
| TerminatorKind::Terminate
304305
| TerminatorKind::Unreachable => Ok(()),
305306

306307
TerminatorKind::Drop { place, .. } => check_place(tcx, *place, span, body),
307308

308309
TerminatorKind::SwitchInt { discr, targets: _ } => check_operand(tcx, discr, span, body),
309310

310-
TerminatorKind::Abort => Err((span, "abort is not stable in const fn".into())),
311311
TerminatorKind::GeneratorDrop | TerminatorKind::Yield { .. } => {
312312
Err((span, "const fn generators are unstable".into()))
313313
},

0 commit comments

Comments
 (0)