From e76b08bcee619d92b3259d54e4c089b76edb1caa Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 19 Apr 2024 10:59:27 +0200 Subject: [PATCH] make test not leak rustc crate hash --- tests/panic/mir-validation.rs | 1 + tests/panic/mir-validation.stderr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/panic/mir-validation.rs b/tests/panic/mir-validation.rs index 5e207c2609..fe618f6c81 100644 --- a/tests/panic/mir-validation.rs +++ b/tests/panic/mir-validation.rs @@ -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::*; diff --git a/tests/panic/mir-validation.stderr b/tests/panic/mir-validation.stderr index 243fed020e..d158c996dc 100644 --- a/tests/panic/mir-validation.stderr +++ b/tests/panic/mir-validation.stderr @@ -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: