diff options
| author | Ralf Jung <post@ralfj.de> | 2023-08-19 13:10:25 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-08-20 15:52:38 +0200 |
| commit | 818ec8e23adcc4c6b684fc070b8c7e89c941171e (patch) | |
| tree | 21dfa4b62ab046c00d2cc032765d57a8b8a94a35 /compiler/rustc_const_eval/src/interpret | |
| parent | c0b6ffaaea3ebdf5f7a58fc4cf7ee52c91077fb9 (diff) | |
| download | rust-818ec8e23adcc4c6b684fc070b8c7e89c941171e.tar.gz rust-818ec8e23adcc4c6b684fc070b8c7e89c941171e.zip | |
give some unwind-related terminators a more clear name
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/terminator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs index 3c03172bbef..afca6a80319 100644 --- a/compiler/rustc_const_eval/src/interpret/terminator.rs +++ b/compiler/rustc_const_eval/src/interpret/terminator.rs @@ -196,7 +196,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { } } - Terminate => { + UnwindTerminate => { // FIXME: maybe should call `panic_no_unwind` lang item instead. M::abort(self, "panic in a function that cannot unwind".to_owned())?; } @@ -204,7 +204,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { // When we encounter Resume, we've finished unwinding // cleanup for the current stack frame. We pop it in order // to continue unwinding the next frame - Resume => { + UnwindResume => { trace!("unwinding: resuming from cleanup"); // By definition, a Resume terminator means // that we're unwinding |
