Skip to content

Commit 0a6815a

Browse files
committed
bless 32-bit ui tests
1 parent 17323e0 commit 0a6815a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr

+9-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ error[E0596]: cannot borrow data in a `&` reference as mutable
1919
LL | const S: &'static mut str = &mut " hello ";
2020
| ^^^^^^^^^^^^^^ cannot borrow as mutable
2121

22-
error: aborting due to 3 previous errors
22+
error[E0080]: evaluation of constant value failed
23+
--> $DIR/issue-76510.rs:11:70
24+
|
25+
LL | let s = transmute::<(*const u8, usize), &ManuallyDrop<str>>((S.as_ptr(), 3));
26+
| ^ referenced constant has errors
27+
28+
error: aborting due to 4 previous errors
2329

24-
Some errors have detailed explanations: E0596, E0658, E0764.
25-
For more information about an error, try `rustc --explain E0596`.
30+
Some errors have detailed explanations: E0080, E0596, E0658, E0764.
31+
For more information about an error, try `rustc --explain E0080`.

src/test/ui/consts/invalid-union.32bit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | fn main() {
66
|
77
= 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.
88
= note: the raw bytes of the constant (size: 4, align: 4) {
9-
╾─alloc8──╼ │ ╾──╼
9+
╾─alloc7──╼ │ ╾──╼
1010
}
1111

1212
error: erroneous constant used

0 commit comments

Comments
 (0)