diff options
| author | b-naber <bn263@gmx.de> | 2022-06-03 13:41:53 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-06-14 16:09:10 +0200 |
| commit | 0a6815a924448b6e4b93adb8645d6903cbbc47eb (patch) | |
| tree | f7ecb270c885475804f82b485a46644eb1549957 | |
| parent | 17323e05ce3dbb38a9c7e50ee76d89b885423dfb (diff) | |
| download | rust-0a6815a924448b6e4b93adb8645d6903cbbc47eb.tar.gz rust-0a6815a924448b6e4b93adb8645d6903cbbc47eb.zip | |
bless 32-bit ui tests
| -rw-r--r-- | src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr | 12 | ||||
| -rw-r--r-- | src/test/ui/consts/invalid-union.32bit.stderr | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr b/src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr index 61b00be345f..0f420ae1b6b 100644 --- a/src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr +++ b/src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr @@ -19,7 +19,13 @@ error[E0596]: cannot borrow data in a `&` reference as mutable LL | const S: &'static mut str = &mut " hello "; | ^^^^^^^^^^^^^^ cannot borrow as mutable -error: aborting due to 3 previous errors +error[E0080]: evaluation of constant value failed + --> $DIR/issue-76510.rs:11:70 + | +LL | let s = transmute::<(*const u8, usize), &ManuallyDrop<str>>((S.as_ptr(), 3)); + | ^ referenced constant has errors + +error: aborting due to 4 previous errors -Some errors have detailed explanations: E0596, E0658, E0764. -For more information about an error, try `rustc --explain E0596`. +Some errors have detailed explanations: E0080, E0596, E0658, E0764. +For more information about an error, try `rustc --explain E0080`. diff --git a/src/test/ui/consts/invalid-union.32bit.stderr b/src/test/ui/consts/invalid-union.32bit.stderr index 884ae71197b..38c38d1ae67 100644 --- a/src/test/ui/consts/invalid-union.32bit.stderr +++ b/src/test/ui/consts/invalid-union.32bit.stderr @@ -6,7 +6,7 @@ LL | fn main() { | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. = note: the raw bytes of the constant (size: 4, align: 4) { - ╾─alloc8──╼ │ ╾──╼ + ╾─alloc7──╼ │ ╾──╼ } error: erroneous constant used |
