diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
commit | a4b7ed7a42c716ab9f05e351f003d589124fd55d (patch) | |
tree | b620cd3f223850b28716e474e80c58059dca5dd4 /src/test/ui/track-diagnostics | |
parent | Adding upstream version 1.67.1+dfsg1. (diff) | |
download | rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip |
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/track-diagnostics')
-rw-r--r-- | src/test/ui/track-diagnostics/track.rs | 11 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track.stderr | 26 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track2.rs | 10 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track2.stderr | 18 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track3.rs | 10 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track3.stderr | 18 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track4.rs | 13 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track4.stderr | 14 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track5.rs | 8 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track5.stderr | 9 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track6.rs | 14 | ||||
-rw-r--r-- | src/test/ui/track-diagnostics/track6.stderr | 13 |
12 files changed, 0 insertions, 164 deletions
diff --git a/src/test/ui/track-diagnostics/track.rs b/src/test/ui/track-diagnostics/track.rs deleted file mode 100644 index 61b9137ea..000000000 --- a/src/test/ui/track-diagnostics/track.rs +++ /dev/null @@ -1,11 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - -// Normalize the emitted location so this doesn't need -// updating everytime someone adds or removes a line. -// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC" -// normalize-stderr-test "note: rustc .+ running on .+" -> "note: rustc $$VERSION running on $$TARGET" - -fn main() { - break rust -} diff --git a/src/test/ui/track-diagnostics/track.stderr b/src/test/ui/track-diagnostics/track.stderr deleted file mode 100644 index 8256c1f5f..000000000 --- a/src/test/ui/track-diagnostics/track.stderr +++ /dev/null @@ -1,26 +0,0 @@ -error[E0425]: cannot find value `rust` in this scope - --> $DIR/track.rs:LL:CC - | -LL | break rust - | ^^^^ not found in this scope --Ztrack-diagnostics: created at compiler/rustc_resolve/src/late/diagnostics.rs:LL:CC - -error[E0268]: `break` outside of a loop or labeled block - --> $DIR/track.rs:LL:CC - | -LL | break rust - | ^^^^^^^^^^ cannot `break` outside of a loop or labeled block --Ztrack-diagnostics: created at compiler/rustc_passes/src/loops.rs:LL:CC - -error: internal compiler error: It looks like you're trying to break rust; would you like some ICE? - -note: the compiler expectedly panicked. this is a feature. - -note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-320764675 - -note: rustc $VERSION running on $TARGET - -error: aborting due to 3 previous errors - -Some errors have detailed explanations: E0268, E0425. -For more information about an error, try `rustc --explain E0268`. diff --git a/src/test/ui/track-diagnostics/track2.rs b/src/test/ui/track-diagnostics/track2.rs deleted file mode 100644 index dc105c61d..000000000 --- a/src/test/ui/track-diagnostics/track2.rs +++ /dev/null @@ -1,10 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - -// Normalize the emitted location so this doesn't need -// updating everytime someone adds or removes a line. -// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC" - -fn main() { - let _moved @ _from = String::from("foo"); -} diff --git a/src/test/ui/track-diagnostics/track2.stderr b/src/test/ui/track-diagnostics/track2.stderr deleted file mode 100644 index fe13e5ef3..000000000 --- a/src/test/ui/track-diagnostics/track2.stderr +++ /dev/null @@ -1,18 +0,0 @@ -error[E0382]: use of moved value - --> $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:LL:CC - | -help: borrow this binding in the pattern to avoid moving the value - | -LL | let ref _moved @ ref _from = String::from("foo"); - | +++ +++ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0382`. diff --git a/src/test/ui/track-diagnostics/track3.rs b/src/test/ui/track-diagnostics/track3.rs deleted file mode 100644 index 069923950..000000000 --- a/src/test/ui/track-diagnostics/track3.rs +++ /dev/null @@ -1,10 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - -// Normalize the emitted location so this doesn't need -// updating everytime someone adds or removes a line. -// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC" - -fn main() { - let _unimported = Blah { field: u8 }; -} diff --git a/src/test/ui/track-diagnostics/track3.stderr b/src/test/ui/track-diagnostics/track3.stderr deleted file mode 100644 index dc468d7e8..000000000 --- a/src/test/ui/track-diagnostics/track3.stderr +++ /dev/null @@ -1,18 +0,0 @@ -error[E0422]: cannot find struct, variant or union type `Blah` in this scope - --> $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:LL:CC - -error[E0423]: expected value, found builtin type `u8` - --> $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:LL:CC - -error: aborting due to 2 previous errors - -Some errors have detailed explanations: E0422, E0423. -For more information about an error, try `rustc --explain E0422`. diff --git a/src/test/ui/track-diagnostics/track4.rs b/src/test/ui/track-diagnostics/track4.rs deleted file mode 100644 index 35eec799b..000000000 --- a/src/test/ui/track-diagnostics/track4.rs +++ /dev/null @@ -1,13 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - -// Normalize the emitted location so this doesn't need -// updating everytime someone adds or removes a line. -// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC" - -pub onion { - Owo(u8), - Uwu(i8), -} - -fn main() {} diff --git a/src/test/ui/track-diagnostics/track4.stderr b/src/test/ui/track-diagnostics/track4.stderr deleted file mode 100644 index c4668444c..000000000 --- a/src/test/ui/track-diagnostics/track4.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error: missing `struct` for struct definition - --> $DIR/track4.rs:LL:CC - | -LL | pub onion { - | ^ --Ztrack-diagnostics: created at compiler/rustc_parse/src/parser/diagnostics.rs:LL:CC - | -help: add `struct` here to parse `onion` as a public struct - | -LL | pub struct onion { - | ++++++ - -error: aborting due to previous error - diff --git a/src/test/ui/track-diagnostics/track5.rs b/src/test/ui/track-diagnostics/track5.rs deleted file mode 100644 index c41d9424e..000000000 --- a/src/test/ui/track-diagnostics/track5.rs +++ /dev/null @@ -1,8 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - -// Normalize the emitted location so this doesn't need -// updating everytime someone adds or removes a line. -// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC" - -} diff --git a/src/test/ui/track-diagnostics/track5.stderr b/src/test/ui/track-diagnostics/track5.stderr deleted file mode 100644 index aa54f92b6..000000000 --- a/src/test/ui/track-diagnostics/track5.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error: unexpected closing delimiter: `}` - --> $DIR/track5.rs:LL:CC - | -LL | } - | ^ unexpected closing delimiter --Ztrack-diagnostics: created at compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC - -error: aborting due to previous error - diff --git a/src/test/ui/track-diagnostics/track6.rs b/src/test/ui/track-diagnostics/track6.rs deleted file mode 100644 index 307e31018..000000000 --- a/src/test/ui/track-diagnostics/track6.rs +++ /dev/null @@ -1,14 +0,0 @@ -// compile-flags: -Z track-diagnostics -// error-pattern: created at - - - -pub trait Foo { - fn bar(); -} - -impl <T> Foo for T { - default fn bar() {} -} - -fn main() {} diff --git a/src/test/ui/track-diagnostics/track6.stderr b/src/test/ui/track-diagnostics/track6.stderr deleted file mode 100644 index 1c7537633..000000000 --- a/src/test/ui/track-diagnostics/track6.stderr +++ /dev/null @@ -1,13 +0,0 @@ -error[E0658]: specialization is unstable - --> $DIR/track6.rs:11:5 - | -LL | default fn bar() {} - | ^^^^^^^^^^^^^^^^^^^ --Ztrack-diagnostics: created at $COMPILER_DIR/rustc_session/src/parse.rs:93:5 - | - = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information - = help: add `#![feature(specialization)]` to the crate attributes to enable - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0658`. |