miri: fix ICE with symbolic alignment check on extern static

This commit is contained in:
Ralf Jung 2024-02-05 21:48:58 +01:00
parent b11fbfbf35
commit 25635b9a96
8 changed files with 76 additions and 27 deletions

View file

@ -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));
}
}
}