diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2024-03-15 15:08:20 +0000 |
|---|---|---|
| committer | Maybe Lapkin <waffle.lapkin@gmail.com> | 2024-07-07 18:16:38 +0200 |
| commit | cda25e56c8d4f810d19034ebf5d0e4fdb155a264 (patch) | |
| tree | 9003181fc7eeab68bb751c94e28304efd0c17563 /compiler/rustc_const_eval/src/interpret/step.rs | |
| parent | 30b18d7c3621e4b6c2cb84b7f84e72c8efd3ff3f (diff) | |
| download | rust-cda25e56c8d4f810d19034ebf5d0e4fdb155a264.tar.gz rust-cda25e56c8d4f810d19034ebf5d0e4fdb155a264.zip | |
Refactor & fixup interpreter implementation of tail calls
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/step.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/step.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/step.rs b/compiler/rustc_const_eval/src/interpret/step.rs index 1baf62baa81..b3124dfdfbc 100644 --- a/compiler/rustc_const_eval/src/interpret/step.rs +++ b/compiler/rustc_const_eval/src/interpret/step.rs @@ -32,7 +32,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { // We are unwinding and this fn has no cleanup code. // Just go on unwinding. trace!("unwinding: skipping frame"); - self.pop_stack_frame(/* unwinding */ true)?; + self.return_from_current_stack_frame(/* unwinding */ true)?; return Ok(true); }; let basic_block = &self.body().basic_blocks[loc.block]; |
