diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-18 17:19:33 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-19 14:14:12 -0700 |
| commit | 14d097f6418eacf58e300abfb1531111192e9767 (patch) | |
| tree | 54993fb5062eea0b0dbb84aff8cdc234bfd29186 /src/tools | |
| parent | f63685ddf3d3c92a61158cd55d44bde17c2b024f (diff) | |
| download | rust-14d097f6418eacf58e300abfb1531111192e9767.tar.gz rust-14d097f6418eacf58e300abfb1531111192e9767.zip | |
Give a message with a span on validation error
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/miri/tests/panic/mir-validation.stderr | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tools/miri/tests/panic/mir-validation.stderr b/src/tools/miri/tests/panic/mir-validation.stderr index dc70d129da3..f801ac907e6 100644 --- a/src/tools/miri/tests/panic/mir-validation.stderr +++ b/src/tools/miri/tests/panic/mir-validation.stderr @@ -1,11 +1,15 @@ +error: internal compiler error: compiler/rustc_mir_transform/src/validate.rs:LL:CC: broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]: + place (*(_2.0: *mut i32)) has deref as a later projection (it is only permitted as the first projection) + --> tests/panic/mir-validation.rs:LL:CC + | +LL | *(tuple.0) = 1; + | ^^^^^^^^^^^^^^ + thread 'rustc' panicked at compiler/rustc_mir_transform/src/validate.rs:LL:CC: -broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]: -place (*(_2.0: *mut i32)) has deref as a later projection (it is only permitted as the first projection) +Box<dyn Any> stack backtrace: -error: the compiler unexpectedly panicked. this is a bug. - @@ -20,3 +24,5 @@ LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | +error: aborting due to 1 previous error + |
