Adjust normalization
This commit is contained in:
parent
447d57f036
commit
60dbffba29
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
// normalize-stderr-test "note: rustc .+ running on .+" -> "note: rustc $$VERSION running on $$TARGET"
|
||||
|
||||
fn main() {
|
||||
|
@ -1,16 +1,16 @@
|
||||
error[E0425]: cannot find value `rust` in this scope
|
||||
--> $DIR/track.rs:$LINE::$COL
|
||||
--> $DIR/track.rs:LL:CC
|
||||
|
|
||||
LL | break rust
|
||||
| ^^^^ not found in this scope
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
|
||||
|
||||
error[E0268]: `break` outside of a loop
|
||||
--> $DIR/track.rs:$LINE::$COL
|
||||
--> $DIR/track.rs:LL:CC
|
||||
|
|
||||
LL | break rust
|
||||
| ^^^^^^^^^^ cannot `break` outside of a loop
|
||||
-Ztrack-diagnostics: created at compiler/rustc_passes/src/errors.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_passes/src/errors.rs:LL:CC
|
||||
|
||||
error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?
|
||||
|
||||
|
@ -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"
|
||||
|
||||
fn main() {
|
||||
let _moved @ _from = String::from("foo");
|
||||
|
@ -1,12 +1,12 @@
|
||||
error[E0382]: use of moved value
|
||||
--> $DIR/track2.rs:$LINE::$COL
|
||||
--> $DIR/track2.rs:LL:CC
|
||||
|
|
||||
LL | let _moved @ _from = String::from("foo");
|
||||
| ^^^^^^ ----- ------------------- move occurs because value has type `String`, which does not implement the `Copy` trait
|
||||
| | |
|
||||
| | value moved here
|
||||
| value used here after move
|
||||
-Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -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"
|
||||
|
||||
fn main() {
|
||||
let _unimported = Blah { field: u8 };
|
||||
|
@ -1,16 +1,16 @@
|
||||
error[E0422]: cannot find struct, variant or union type `Blah` in this scope
|
||||
--> $DIR/track3.rs:$LINE::$COL
|
||||
--> $DIR/track3.rs:LL:CC
|
||||
|
|
||||
LL | let _unimported = Blah { field: u8 };
|
||||
| ^^^^ not found in this scope
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
|
||||
|
||||
error[E0423]: expected value, found builtin type `u8`
|
||||
--> $DIR/track3.rs:$LINE::$COL
|
||||
--> $DIR/track3.rs:LL:CC
|
||||
|
|
||||
LL | let _unimported = Blah { field: u8 };
|
||||
| ^^ not a value
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -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"
|
||||
|
||||
pub onion {
|
||||
Owo(u8),
|
||||
|
@ -1,9 +1,9 @@
|
||||
error: missing `struct` for struct definition
|
||||
--> $DIR/track4.rs:$LINE::$COL
|
||||
--> $DIR/track4.rs:LL:CC
|
||||
|
|
||||
LL | pub onion {
|
||||
| ^
|
||||
-Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/diagnostics.rs:$LINE::$COL
|
||||
-Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/diagnostics.rs:LL:CC
|
||||
|
|
||||
help: add `struct` here to parse `onion` as a public struct
|
||||
|
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user