Adjust normalization

This commit is contained in:
mejrs 2022-10-26 13:41:57 +02:00
parent 48edc83526
commit 4b1cebbc18
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
// Normalize the emitted location so this doesn't need
// updating everytime someone adds or removes a line.
// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:$$LINE::$$COL"
// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
struct A;
struct B;

View File

@ -1,9 +1,9 @@
error[E0308]: mismatched types
--> $DIR/track-diagnostics.rs:$LINE::$COL
--> $DIR/track-diagnostics.rs:LL:CC
|
LL | const S: A = B;
| ^ expected struct `A`, found struct `B`
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:$LINE::$COL
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
error: aborting due to previous error