This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +22
-22
lines changed Expand file tree Collapse file tree 12 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 33
44// Normalize the emitted location so this doesn't need
55// 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 "
77
88struct A;
99struct B;
Original file line number Diff line number Diff line change 11error[E0308]: mismatched types
2- --> $DIR/track-diagnostics.rs:$LINE::$COL
2+ --> $DIR/track-diagnostics.rs:LL:CC
33 |
44LL | const S: A = B;
55 | ^ 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
77
88error: aborting due to previous error
99
Original file line number Diff line number Diff line change 33
44// Normalize the emitted location so this doesn't need
55// 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 "
77// normalize-stderr-test "note: rustc .+ running on .+" -> "note: rustc $$VERSION running on $$TARGET"
88
99fn main ( ) {
Original file line number Diff line number Diff line change 11error[E0425]: cannot find value `rust` in this scope
2- --> $DIR/track.rs:$LINE::$COL
2+ --> $DIR/track.rs:LL:CC
33 |
44LL | break rust
55 | ^^^^ 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
77
88error[E0268]: `break` outside of a loop
9- --> $DIR/track.rs:$LINE::$COL
9+ --> $DIR/track.rs:LL:CC
1010 |
1111LL | break rust
1212 | ^^^^^^^^^^ 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
1414
1515error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?
1616
Original file line number Diff line number Diff line change 33
44// Normalize the emitted location so this doesn't need
55// 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 "
77
88fn main ( ) {
99 let _moved @ _from = String :: from ( "foo" ) ;
Original file line number Diff line number Diff line change 11error[E0382]: use of moved value
2- --> $DIR/track2.rs:$LINE::$COL
2+ --> $DIR/track2.rs:LL:CC
33 |
44LL | let _moved @ _from = String::from("foo");
55 | ^^^^^^ ----- ------------------- move occurs because value has type `String`, which does not implement the `Copy` trait
66 | | |
77 | | value moved here
88 | 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
1010
1111error: aborting due to previous error
1212
Original file line number Diff line number Diff line change 33
44// Normalize the emitted location so this doesn't need
55// 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 "
77
88fn main ( ) {
99 let _unimported = Blah { field : u8 } ;
Original file line number Diff line number Diff line change 11error[E0422]: cannot find struct, variant or union type `Blah` in this scope
2- --> $DIR/track3.rs:$LINE::$COL
2+ --> $DIR/track3.rs:LL:CC
33 |
44LL | let _unimported = Blah { field: u8 };
55 | ^^^^ 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
77
88error[E0423]: expected value, found builtin type `u8`
9- --> $DIR/track3.rs:$LINE::$COL
9+ --> $DIR/track3.rs:LL:CC
1010 |
1111LL | let _unimported = Blah { field: u8 };
1212 | ^^ 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
1414
1515error: aborting due to 2 previous errors
1616
Original file line number Diff line number Diff line change 33
44// Normalize the emitted location so this doesn't need
55// 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 "
77
88pub onion {
99 Owo ( u8) ,
Original file line number Diff line number Diff line change 11error: missing `struct` for struct definition
2- --> $DIR/track4.rs:$LINE::$COL
2+ --> $DIR/track4.rs:LL:CC
33 |
44LL | pub onion {
55 | ^
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
77 |
88help: add `struct` here to parse `onion` as a public struct
99 |
You can’t perform that action at this time.
0 commit comments