File tree 12 files changed +22
-22
lines changed
12 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
8
8
struct A;
9
9
struct B;
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> $DIR/track-diagnostics.rs:$LINE::$COL
2
+ --> $DIR/track-diagnostics.rs:LL:CC
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:$LINE::$COL
6
+ -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
7
7
8
8
error: aborting due to previous error
9
9
Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
// normalize-stderr-test "note: rustc .+ running on .+" -> "note: rustc $$VERSION running on $$TARGET"
8
8
9
9
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
error[E0425]: cannot find value `rust` in this scope
2
- --> $DIR/track.rs:$LINE::$COL
2
+ --> $DIR/track.rs:LL:CC
3
3
|
4
4
LL | break rust
5
5
| ^^^^ not found in this scope
6
- -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
6
+ -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
7
7
8
8
error[E0268]: `break` outside of a loop
9
- --> $DIR/track.rs:$LINE::$COL
9
+ --> $DIR/track.rs:LL:CC
10
10
|
11
11
LL | break rust
12
12
| ^^^^^^^^^^ cannot `break` outside of a loop
13
- -Ztrack-diagnostics: created at compiler/rustc_passes/src/errors.rs:$LINE::$COL
13
+ -Ztrack-diagnostics: created at compiler/rustc_passes/src/errors.rs:LL:CC
14
14
15
15
error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?
16
16
Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
8
8
fn main ( ) {
9
9
let _moved @ _from = String :: from ( "foo" ) ;
Original file line number Diff line number Diff line change 1
1
error[E0382]: use of moved value
2
- --> $DIR/track2.rs:$LINE::$COL
2
+ --> $DIR/track2.rs:LL:CC
3
3
|
4
4
LL | let _moved @ _from = String::from("foo");
5
5
| ^^^^^^ ----- ------------------- move occurs because value has type `String`, which does not implement the `Copy` trait
6
6
| | |
7
7
| | value moved here
8
8
| value used here after move
9
- -Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:$LINE::$COL
9
+ -Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
10
10
11
11
error: aborting due to previous error
12
12
Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
8
8
fn main ( ) {
9
9
let _unimported = Blah { field : u8 } ;
Original file line number Diff line number Diff line change 1
1
error[E0422]: cannot find struct, variant or union type `Blah` in this scope
2
- --> $DIR/track3.rs:$LINE::$COL
2
+ --> $DIR/track3.rs:LL:CC
3
3
|
4
4
LL | let _unimported = Blah { field: u8 };
5
5
| ^^^^ not found in this scope
6
- -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
6
+ -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
7
7
8
8
error[E0423]: expected value, found builtin type `u8`
9
- --> $DIR/track3.rs:$LINE::$COL
9
+ --> $DIR/track3.rs:LL:CC
10
10
|
11
11
LL | let _unimported = Blah { field: u8 };
12
12
| ^^ not a value
13
- -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
13
+ -Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
14
14
15
15
error: aborting due to 2 previous errors
16
16
Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
8
8
pub onion {
9
9
Owo ( u8) ,
Original file line number Diff line number Diff line change 1
1
error: missing `struct` for struct definition
2
- --> $DIR/track4.rs:$LINE::$COL
2
+ --> $DIR/track4.rs:LL:CC
3
3
|
4
4
LL | pub onion {
5
5
| ^
6
- -Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/diagnostics.rs:$LINE::$COL
6
+ -Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/diagnostics.rs:LL:CC
7
7
|
8
8
help: add `struct` here to parse `onion` as a public struct
9
9
|
Original file line number Diff line number Diff line change 3
3
4
4
// Normalize the emitted location so this doesn't need
5
5
// 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 "
7
7
8
8
struct A ;
9
9
struct B ;
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> $DIR/track-diagnostics.rs:$LINE::$COL
2
+ --> $DIR/track-diagnostics.rs:LL:CC
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:$LINE::$COL
6
+ -Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
7
7
8
8
error: aborting due to previous error
9
9
You can’t perform that action at this time.
0 commit comments