diff options
| author | Gary Guo <gary@garyguo.net> | 2022-10-08 23:47:59 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2023-04-06 09:34:16 +0100 |
| commit | f5ac844296335590c30caeef9fddb1af0692ab76 (patch) | |
| tree | 70623e7fd38e66d0625329a0e5b07668ff6a1278 /clippy_utils/src | |
| parent | e9c7fb10b92c47e9bb2713fae5ef74a07efce92d (diff) | |
Refactor unwind from Option to a new enum
Diffstat (limited to 'clippy_utils/src')
| -rw-r--r-- | clippy_utils/src/qualify_min_const_fn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs index d66640ba0b7..ff195cd7288 100644 --- a/clippy_utils/src/qualify_min_const_fn.rs +++ b/clippy_utils/src/qualify_min_const_fn.rs @@ -318,7 +318,7 @@ fn check_terminator<'tcx>( from_hir_call: _, destination: _, target: _, - cleanup: _, + unwind: _, fn_span: _, } => { let fn_ty = func.ty(body, tcx); @@ -361,7 +361,7 @@ fn check_terminator<'tcx>( expected: _, msg: _, target: _, - cleanup: _, + unwind: _, } => check_operand(tcx, cond, span, body), TerminatorKind::InlineAsm { .. } => Err((span, "cannot use inline assembly in const fn".into())), |
