We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beae0d2 commit 48edc83Copy full SHA for 48edc83
tests/ui/track-diagnostics.rs
@@ -1,6 +1,10 @@
1
// compile-flags: -Z track-diagnostics
2
// error-pattern: created at
3
4
+// Normalize the emitted location so this doesn't need
5
+// updating everytime someone adds or removes a line.
6
+// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:$$LINE::$$COL"
7
+
8
struct A;
9
struct B;
10
const S: A = B;
tests/ui/track-diagnostics.stderr
@@ -1,9 +1,9 @@
error[E0308]: mismatched types
- --> $DIR/track-diagnostics.rs:6:14
+ --> $DIR/track-diagnostics.rs:$LINE::$COL
|
LL | const S: A = B;
| ^ expected struct `A`, found struct `B`
--Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:2275:31
+-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:$LINE::$COL
error: aborting due to previous error
0 commit comments