File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
// compile-flags: -Z track-diagnostics
2
2
// error-pattern: created at
3
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
+
4
8
struct A ;
5
9
struct B ;
6
10
const S : A = B ;
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> $DIR/track-diagnostics.rs:6:14
2
+ --> $DIR/track-diagnostics.rs:$LINE::$COL
3
3
|
4
4
LL | const S: A = B;
5
5
| ^ expected struct `A`, found struct `B`
6
- -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:2275:31
6
+ -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:$LINE::$COL
7
7
8
8
error: aborting due to previous error
9
9
You can’t perform that action at this time.
0 commit comments