diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /tests/ui/cast | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/cast')
-rw-r--r-- | tests/ui/cast/cast-errors-issue-43825.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/cast-from-nil.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/cast-macro-lhs.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/cast-rfc0401-2.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/cast-to-nil.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/casts-differing-anon.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/casts-issue-46365.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/issue-10991.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/issue-17444.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/issue-85586.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/issue-88621.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/issue-89497.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/unsized-struct-cast.stderr | 2 | ||||
-rw-r--r-- | tests/ui/cast/unsupported-cast.stderr | 2 |
14 files changed, 14 insertions, 14 deletions
diff --git a/tests/ui/cast/cast-errors-issue-43825.stderr b/tests/ui/cast/cast-errors-issue-43825.stderr index 1e77f5dbd..658d5ddbb 100644 --- a/tests/ui/cast/cast-errors-issue-43825.stderr +++ b/tests/ui/cast/cast-errors-issue-43825.stderr @@ -4,6 +4,6 @@ error[E0425]: cannot find value `error` in this scope LL | let error = error; | ^^^^^ not found in this scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0425`. diff --git a/tests/ui/cast/cast-from-nil.stderr b/tests/ui/cast/cast-from-nil.stderr index dab133cfb..991ff93a8 100644 --- a/tests/ui/cast/cast-from-nil.stderr +++ b/tests/ui/cast/cast-from-nil.stderr @@ -4,6 +4,6 @@ error[E0605]: non-primitive cast: `()` as `u32` LL | fn main() { let u = (assert!(true) as u32); } | ^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0605`. diff --git a/tests/ui/cast/cast-macro-lhs.stderr b/tests/ui/cast/cast-macro-lhs.stderr index db7ce57e1..83c6cf31f 100644 --- a/tests/ui/cast/cast-macro-lhs.stderr +++ b/tests/ui/cast/cast-macro-lhs.stderr @@ -6,6 +6,6 @@ LL | let x = foo!() as *const [u8]; | | | consider casting this expression to `*const ()`, then using `core::ptr::from_raw_parts` -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0606`. diff --git a/tests/ui/cast/cast-rfc0401-2.stderr b/tests/ui/cast/cast-rfc0401-2.stderr index dd90c3a97..b7fb42053 100644 --- a/tests/ui/cast/cast-rfc0401-2.stderr +++ b/tests/ui/cast/cast-rfc0401-2.stderr @@ -9,6 +9,6 @@ help: compare with zero instead LL | let _ = 3 != 0; | ~~~~ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0054`. diff --git a/tests/ui/cast/cast-to-nil.stderr b/tests/ui/cast/cast-to-nil.stderr index 29a9baffd..14c75983b 100644 --- a/tests/ui/cast/cast-to-nil.stderr +++ b/tests/ui/cast/cast-to-nil.stderr @@ -4,6 +4,6 @@ error[E0605]: non-primitive cast: `u32` as `()` LL | fn main() { let u = 0u32 as (); } | ^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0605`. diff --git a/tests/ui/cast/casts-differing-anon.stderr b/tests/ui/cast/casts-differing-anon.stderr index f9abfb522..8ddd97137 100644 --- a/tests/ui/cast/casts-differing-anon.stderr +++ b/tests/ui/cast/casts-differing-anon.stderr @@ -6,6 +6,6 @@ LL | b_raw = f_raw as *mut _; | = note: vtable kinds may not match -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0606`. diff --git a/tests/ui/cast/casts-issue-46365.stderr b/tests/ui/cast/casts-issue-46365.stderr index 841754736..84bc73a9b 100644 --- a/tests/ui/cast/casts-issue-46365.stderr +++ b/tests/ui/cast/casts-issue-46365.stderr @@ -4,6 +4,6 @@ error[E0412]: cannot find type `Ipsum` in this scope LL | ipsum: Ipsum | ^^^^^ not found in this scope -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0412`. diff --git a/tests/ui/cast/issue-10991.stderr b/tests/ui/cast/issue-10991.stderr index 5b8a18233..52afc8343 100644 --- a/tests/ui/cast/issue-10991.stderr +++ b/tests/ui/cast/issue-10991.stderr @@ -4,6 +4,6 @@ error[E0605]: non-primitive cast: `()` as `usize` LL | let _t = nil as usize; | ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0605`. diff --git a/tests/ui/cast/issue-17444.stderr b/tests/ui/cast/issue-17444.stderr index 1097079df..0d4f6f194 100644 --- a/tests/ui/cast/issue-17444.stderr +++ b/tests/ui/cast/issue-17444.stderr @@ -4,6 +4,6 @@ error[E0606]: casting `Test` as `*const isize` is invalid LL | let _x = Test::Foo as *const isize; | ^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0606`. diff --git a/tests/ui/cast/issue-85586.stderr b/tests/ui/cast/issue-85586.stderr index ed8a6fc62..847a5527d 100644 --- a/tests/ui/cast/issue-85586.stderr +++ b/tests/ui/cast/issue-85586.stderr @@ -4,6 +4,6 @@ error[E0282]: type annotations needed LL | let b = (a + 1) as usize; | ^^^^^^^ cannot infer type -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0282`. diff --git a/tests/ui/cast/issue-88621.stderr b/tests/ui/cast/issue-88621.stderr index 886145c1b..0459ce5ea 100644 --- a/tests/ui/cast/issue-88621.stderr +++ b/tests/ui/cast/issue-88621.stderr @@ -4,6 +4,6 @@ error[E0605]: non-primitive cast: `Kind2` as `u8` LL | let _ = Kind2::Foo() as u8; | ^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0605`. diff --git a/tests/ui/cast/issue-89497.stderr b/tests/ui/cast/issue-89497.stderr index bf3c3537f..1208ca45d 100644 --- a/tests/ui/cast/issue-89497.stderr +++ b/tests/ui/cast/issue-89497.stderr @@ -10,6 +10,6 @@ LL - let _reference: &'static i32 = unsafe { pointer as *const i32 as &'stat LL + let _reference: &'static i32 = unsafe { &*(pointer as *const i32) }; | -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0605`. diff --git a/tests/ui/cast/unsized-struct-cast.stderr b/tests/ui/cast/unsized-struct-cast.stderr index 79b3d973c..47a51d846 100644 --- a/tests/ui/cast/unsized-struct-cast.stderr +++ b/tests/ui/cast/unsized-struct-cast.stderr @@ -4,6 +4,6 @@ error[E0606]: casting `&[_; 0]` as `*const Data` is invalid LL | const _: *const Data = &[] as *const Data; | ^^^^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0606`. diff --git a/tests/ui/cast/unsupported-cast.stderr b/tests/ui/cast/unsupported-cast.stderr index 56a375a1d..2c4951ec7 100644 --- a/tests/ui/cast/unsupported-cast.stderr +++ b/tests/ui/cast/unsupported-cast.stderr @@ -4,6 +4,6 @@ error[E0606]: casting `f64` as `*const A` is invalid LL | println!("{:?}", 1.0 as *const A); | ^^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0606`. |