]> git.lizzy.rs Git - rust.git/commitdiff
Adjust normalization
authormejrs <>
Wed, 26 Oct 2022 11:41:57 +0000 (13:41 +0200)
committermejrs <>
Wed, 26 Oct 2022 11:41:57 +0000 (13:41 +0200)
tests/ui/track-diagnostics.rs
tests/ui/track-diagnostics.stderr

index 550ccd7b3d364756c12b48894b816772e9405ce4..fa9221ed02d7420efda22c38101df387b9a8ba07 100644 (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;
index 5a0982ff731a7af3a8f40c6819309261d006b210..ec30318625311fadb7af2c1017c1add7d216a2f0 100644 (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