@@ -160,7 +160,7 @@ pub enum StackPopCleanup {
160
160
}
161
161
162
162
/// Return type of [`InterpCx::pop_stack_frame`].
163
- pub struct StackPop < ' tcx , Prov : Provenance > {
163
+ pub struct StackPopInfo < ' tcx , Prov : Provenance > {
164
164
/// Additional information about the action to be performed when returning from the popped
165
165
/// stack frame.
166
166
pub return_action : ReturnAction ,
@@ -890,7 +890,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
890
890
pub fn pop_stack_frame (
891
891
& mut self ,
892
892
unwinding : bool ,
893
- ) -> InterpResult < ' tcx , StackPop < ' tcx , M :: Provenance > > {
893
+ ) -> InterpResult < ' tcx , StackPopInfo < ' tcx , M :: Provenance > > {
894
894
let cleanup = self . cleanup_current_frame_locals ( ) ?;
895
895
896
896
let frame =
@@ -905,7 +905,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
905
905
ReturnAction :: NoCleanup
906
906
} ;
907
907
908
- Ok ( StackPop { return_action, return_to_block, return_place } )
908
+ Ok ( StackPopInfo { return_action, return_to_block, return_place } )
909
909
}
910
910
911
911
/// A private helper for [`pop_stack_frame`](InterpCx::pop_stack_frame).
@@ -1043,12 +1043,12 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
1043
1043
} ;
1044
1044
1045
1045
// All right, now it is time to actually pop the frame.
1046
- let frame = self . pop_stack_frame ( unwinding) ?;
1046
+ let stack_pop_info = self . pop_stack_frame ( unwinding) ?;
1047
1047
1048
1048
// Report error from return value copy, if any.
1049
1049
copy_ret_result?;
1050
1050
1051
- match frame . return_action {
1051
+ match stack_pop_info . return_action {
1052
1052
ReturnAction :: Normal => { }
1053
1053
ReturnAction :: NoJump => {
1054
1054
// The hook already did everything.
@@ -1066,7 +1066,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
1066
1066
// Normal return, figure out where to jump.
1067
1067
if unwinding {
1068
1068
// Follow the unwind edge.
1069
- let unwind = match frame . return_to_block {
1069
+ let unwind = match stack_pop_info . return_to_block {
1070
1070
StackPopCleanup :: Goto { unwind, .. } => unwind,
1071
1071
StackPopCleanup :: Root { .. } => {
1072
1072
panic ! ( "encountered StackPopCleanup::Root when unwinding!" )
@@ -1076,7 +1076,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
1076
1076
self . unwind_to_block ( unwind)
1077
1077
} else {
1078
1078
// Follow the normal return edge.
1079
- match frame . return_to_block {
1079
+ match stack_pop_info . return_to_block {
1080
1080
StackPopCleanup :: Goto { ret, .. } => self . return_to_block ( ret) ,
1081
1081
StackPopCleanup :: Root { .. } => {
1082
1082
assert ! (
0 commit comments