about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-20 09:36:28 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-21 10:35:54 +1100
commit2903bbbc156fb9707b43038af6723844fd4ccf29 (patch)
tree390101b18fd0e9ef81ab70d788653e96b991f8e5 /compiler/rustc_const_eval
parent010f3944e0f0baac8d738da49772fd06acd3701b (diff)
downloadrust-2903bbbc156fb9707b43038af6723844fd4ccf29.tar.gz
rust-2903bbbc156fb9707b43038af6723844fd4ccf29.zip
Convert `bug`s back to `delayed_bug`s.
This commit undoes some of the previous commit's mechanical changes,
based on human judgment.
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs
index 77744945b12..946ffc05cc1 100644
--- a/compiler/rustc_const_eval/src/const_eval/machine.rs
+++ b/compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -622,7 +622,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
                 );
                 // If this was a hard error, don't bother continuing evaluation.
                 if is_error {
-                    let guard: rustc_errors::ErrorGuaranteed = ecx
+                    let guard = ecx
                         .tcx
                         .dcx()
                         .span_delayed_bug(span, "The deny lint should have already errored");