Skip to content

Commit 4b1cebb

Browse files
author
mejrs
committed
Adjust normalization
1 parent 48edc83 commit 4b1cebb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/track-diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Normalize the emitted location so this doesn't need
55
// updating everytime someone adds or removes a line.
6-
// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:$$LINE::$$COL"
6+
// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
77

88
struct A;
99
struct B;

tests/ui/track-diagnostics.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error[E0308]: mismatched types
2-
--> $DIR/track-diagnostics.rs:$LINE::$COL
2+
--> $DIR/track-diagnostics.rs:LL:CC
33
|
44
LL | const S: A = B;
55
| ^ expected struct `A`, found struct `B`
6-
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:$LINE::$COL
6+
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
77

88
error: aborting due to previous error
99

0 commit comments

Comments
 (0)