diff options
| author | Gary Guo <gary@garyguo.net> | 2022-10-10 23:17:07 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2023-04-06 09:34:16 +0100 |
| commit | 5cbda2a55e40c9d978850ebc3175d9a9e1dbea92 (patch) | |
| tree | 4b9cf69c7d050f8800260f2e4eb386e0cccfb004 /compiler/rustc_const_eval/src | |
| parent | 3af45d6c571ab634dfb3dcc941b32afe4119e934 (diff) | |
| download | rust-5cbda2a55e40c9d978850ebc3175d9a9e1dbea92.tar.gz | |
Fix tools
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/eval_context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs index 209656cdf5c..3e58a58aef7 100644 --- a/compiler/rustc_const_eval/src/interpret/eval_context.rs +++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs @@ -737,6 +737,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { throw_ub_format!("unwinding past a stack frame that does not allow unwinding") } mir::UnwindAction::Terminate => { + self.frame_mut().loc = Right(self.frame_mut().body.span); M::abort(self, "panic in a function that cannot unwind".to_owned())?; } }; |
