File tree 3 files changed +10
-18
lines changed
3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ pub fn report_error<'tcx, 'mir>(
291
291
ValidationErrorKind :: PointerAsInt { .. } | ValidationErrorKind :: PartialPointer
292
292
) =>
293
293
{
294
- ecx. handle_ice ( ) ; // print interpreter backtrace
294
+ ecx. handle_ice ( ) ; // print interpreter backtrace (this is outside the eval `catch_unwind`)
295
295
bug ! (
296
296
"This validation error should be impossible in Miri: {}" ,
297
297
format_interp_error( ecx. tcx. dcx( ) , e)
@@ -308,7 +308,7 @@ pub fn report_error<'tcx, 'mir>(
308
308
InvalidProgramInfo :: AlreadyReported ( _) | InvalidProgramInfo :: Layout ( ..) ,
309
309
) => "post-monomorphization error" ,
310
310
_ => {
311
- ecx. handle_ice ( ) ; // print interpreter backtrace
311
+ ecx. handle_ice ( ) ; // print interpreter backtrace (this is outside the eval `catch_unwind`)
312
312
bug ! (
313
313
"This error should be impossible in Miri: {}" ,
314
314
format_interp_error( ecx. tcx. dcx( ) , e)
Original file line number Diff line number Diff line change 1
1
//! Ensure that the MIR validator runs on Miri's input.
2
2
//@rustc-env:RUSTC_ICE=0
3
- //@normalize-stderr-test: "\n +[0-9]+:[^\n] +" -> ""
4
- //@normalize-stderr-test: "\n +at [^\n] +" -> ""
5
- //@normalize-stderr-test: "\n +\[\.\.\. omitted [0-9]+ frames? \.\.\.\]" -> ""
3
+ //@normalize-stderr-test: "\n +[0-9]+:. +" -> ""
4
+ //@normalize-stderr-test: "\n +at . +" -> ""
5
+ //@normalize-stderr-test: "\n +\[\.\.\. omitted [0-9]+ frames? \.\.\.\].* " -> ""
6
6
//@normalize-stderr-test: "\n[ =]*note:.*" -> ""
7
7
//@normalize-stderr-test: "DefId\([^()]*\)" -> "DefId"
8
+ // Somehow on rustc Windows CI, the "Miri caused an ICE" message is not shown.
9
+ //@normalize-stderr-test: "\nMiri caused an ICE .*" -> ""
10
+ //@normalize-stderr-test: "\n *--> .*" -> ""
11
+ //@normalize-stderr-test: "\n(LL)? +\|.*" -> ""
12
+ //@normalize-stderr-test: "\n(\n)+" -> "$1"
8
13
#![ feature( custom_mir, core_intrinsics) ]
9
14
use core:: intrinsics:: mir:: * ;
10
15
Original file line number Diff line number Diff line change @@ -2,20 +2,7 @@ thread 'rustc' panicked at compiler/rustc_const_eval/src/transform/validate.rs:L
2
2
broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]:
3
3
(*(_2.0: *mut i32)), has deref at the wrong place
4
4
stack backtrace:
5
-
6
5
error: the compiler unexpectedly panicked. this is a bug.
7
-
8
-
9
-
10
-
11
6
query stack during panic:
12
7
#0 [optimized_mir] optimizing MIR for `main`
13
8
end of query stack
14
-
15
- Miri caused an ICE during evaluation. Here's the interpreter backtrace at the time of the panic:
16
- --> RUSTLIB/core/src/ops/function.rs:LL:CC
17
- |
18
- LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
19
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
- |
21
-
You can’t perform that action at this time.
0 commit comments