mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
accept ReferencedConstant errors in Miri (can happen post-monomorphization)
This commit is contained in:
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user