about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-05 21:48:58 +0100
committerRalf Jung <post@ralfj.de>2024-02-06 10:17:42 +0100
commit25635b9a96ebbbd87bbbfb1d7c31004651179f2a (patch)
treecef18744d167c7cf93e10c600fed52d81a3194ec /compiler/rustc_const_eval/src/interpret
parentb11fbfbf351b94c7eecf9e6749a4544a6d4717fa (diff)
downloadrust-25635b9a96ebbbd87bbbfb1d7c31004651179f2a.tar.gz
rust-25635b9a96ebbbd87bbbfb1d7c31004651179f2a.zip
miri: fix ICE with symbolic alignment check on extern static
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/validity.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs
index b5cd3259520..4dbea54e224 100644
--- a/compiler/rustc_const_eval/src/interpret/validity.rs
+++ b/compiler/rustc_const_eval/src/interpret/validity.rs
@@ -992,10 +992,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             // Complain about any other kind of error -- those are bad because we'd like to
             // report them in a way that shows *where* in the value the issue lies.
             Err(err) => {
-                bug!(
-                    "Unexpected Undefined Behavior error during validation: {}",
-                    self.format_error(err)
-                );
+                bug!("Unexpected error during validation: {}", self.format_error(err));
             }
         }
     }