Skip to content

Commit f5ac844

Browse files
committed
Refactor unwind from Option to a new enum
1 parent e9c7fb1 commit f5ac844

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
@@ -318,7 +318,7 @@ fn check_terminator<'tcx>(
318318
from_hir_call: _,
319319
destination: _,
320320
target: _,
321-
cleanup: _,
321+
unwind: _,
322322
fn_span: _,
323323
} => {
324324
let fn_ty = func.ty(body, tcx);
@@ -361,7 +361,7 @@ fn check_terminator<'tcx>(
361361
expected: _,
362362
msg: _,
363363
target: _,
364-
cleanup: _,
364+
unwind: _,
365365
} => check_operand(tcx, cond, span, body),
366366

367367
TerminatorKind::InlineAsm { .. } => Err((span, "cannot use inline assembly in const fn".into())),

0 commit comments

Comments
 (0)