Skip to content

Commit 4d0651f

Browse files
committed
Auto merge of #1503 - RalfJung:post-mono, r=RalfJung
accept some post-monomorphization errors Miri test for rust-lang/rust#75339. We also need to allow `ReferencedConstant` post-monomorphization errors. The other post-monomorphization errors should still be impossible to trigger in Miri. Fixes #1382.
2 parents 52c7b8e + 5ea5e9f commit 4d0651f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diagnostics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ pub fn report_error<'tcx, 'mir>(
8888
"Undefined Behavior",
8989
ResourceExhaustion(_) =>
9090
"resource exhaustion",
91+
InvalidProgram(InvalidProgramInfo::ReferencedConstant) =>
92+
"post-monomorphization error",
9193
_ =>
9294
bug!("This error should be impossible in Miri: {}", e),
9395
};

0 commit comments

Comments
 (0)