Auto merge of #1503 - RalfJung:post-mono, r=RalfJung
accept some post-monomorphization errors For https://github.com/rust-lang/miri/issues/1382, we also need to allow `ReferencedConstant` post-monomorphization errors. The other post-monomorphization errors should still be impossible to trigger in Miri. The fix is not complete though without https://github.com/rust-lang/rust/pull/75339.
This commit is contained in:
commit
1edd231065
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ pub fn report_error<'tcx, 'mir>(
|
|||
"Undefined Behavior",
|
||||
ResourceExhaustion(_) =>
|
||||
"resource exhaustion",
|
||||
InvalidProgram(InvalidProgramInfo::ReferencedConstant) =>
|
||||
"post-monomorphization error",
|
||||
_ =>
|
||||
bug!("This error should be impossible in Miri: {}", e),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue