From 4a7c9ba6e3a250dc899af9b401d2db45d4c2ea7e Mon Sep 17 00:00:00 2001 From: hyd-dev Date: Tue, 25 May 2021 03:47:24 +0800 Subject: [PATCH] `can_unwind` -> `caller_can_unwind` --- compiler/rustc_mir/src/interpret/terminator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_mir/src/interpret/terminator.rs b/compiler/rustc_mir/src/interpret/terminator.rs index 9cbf94dbadf8..305d41f5eeb2 100644 --- a/compiler/rustc_mir/src/interpret/terminator.rs +++ b/compiler/rustc_mir/src/interpret/terminator.rs @@ -69,7 +69,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { let old_stack = self.frame_idx(); let old_loc = self.frame().loc; let func = self.eval_operand(func, None)?; - let (fn_val, abi, can_unwind) = match *func.layout.ty.kind() { + let (fn_val, abi, caller_can_unwind) = match *func.layout.ty.kind() { ty::FnPtr(sig) => { let caller_abi = sig.abi(); let fn_ptr = self.read_scalar(&func)?.check_init()?; @@ -110,7 +110,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { abi, &args[..], ret, - if can_unwind { + if caller_can_unwind { cleanup.map_or(StackPopUnwind::Skip, StackPopUnwind::Cleanup) } else { StackPopUnwind::NotAllowed