Skip to content

Commit 2be847b

Browse files
committed
test: normalize away the line/column info in ui/pattern/const-pat-ice.
1 parent ea78c3a commit 2be847b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/ui/pattern/const-pat-ice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// rustc-env:RUST_BACKTRACE=0
33
// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET"
44
// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS"
5+
// normalize-stderr-test "/_match.rs:[0-9]+:[0-9]+" -> "/_match.rs:LL:CC"
56

67
// This is a repro test for an ICE in our pattern handling of constants.
78

src/test/ui/pattern/const-pat-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1084:5
1+
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:LL:CC
22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
33

44
error: internal compiler error: unexpected panic

0 commit comments

Comments
 (0)