Refactor unwind from Option to a new enum
This commit is contained in:
parent
e9c7fb10b9
commit
f5ac844296
@ -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())),
|
||||
|
Loading…
x
Reference in New Issue
Block a user