Skip to content

Commit

Permalink
make test not leak rustc crate hash
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 19, 2024
1 parent 18f3357 commit e76b08b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/panic/mir-validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//@normalize-stderr-test: "\n +at [^\n]+" -> ""
//@normalize-stderr-test: "\n +\[\.\.\. omitted [0-9]+ frames? \.\.\.\]" -> ""
//@normalize-stderr-test: "\n[ =]*note:.*" -> ""
//@normalize-stderr-test: "DefId\([^()]*\)" -> "DefId"
#![feature(custom_mir, core_intrinsics)]
use core::intrinsics::mir::*;

Expand Down
2 changes: 1 addition & 1 deletion tests/panic/mir-validation.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
thread 'rustc' panicked at compiler/rustc_const_eval/src/transform/validate.rs:LL:CC:
broken MIR in Item(DefId(0:4 ~ mir_validation[fad2]::main)) (after phase change to runtime-optimized) at bb0[1]:
broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]:
(*(_2.0: *mut i32)), has deref at the wrong place
stack backtrace:

Expand Down

0 comments on commit e76b08b

Please sign in to comment.