Skip to content

Commit 7494d92

Browse files
committed
Fix stderr normalization.
1 parent 9fe0b28 commit 7494d92

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/ui/consts/transmute-size-mismatch-before-typeck.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//@ normalize-stderr-64bit: "8 byte" -> "word size"
2-
//@ normalize-stderr-32bit: "4 byte" -> "word size"
1+
//@ normalize-stderr-64bit: "8-byte" -> "word size"
2+
//@ normalize-stderr-32bit: "4-byte" -> "word size"
33
//@ normalize-stderr-64bit: "64 bits" -> "word size"
44
//@ normalize-stderr-32bit: "32 bits" -> "word size"
5-
//@ normalize-stderr-64bit: "16 byte" -> "2 * word size"
6-
//@ normalize-stderr-32bit: "8 byte" -> "2 * word size"
5+
//@ normalize-stderr-64bit: "16-byte" -> "2 * word size"
6+
//@ normalize-stderr-32bit: "8-byte" -> "2 * word size"
77
//@ normalize-stderr-64bit: "128 bits" -> "2 * word size"
88
//@ normalize-stderr-32bit: "64 bits" -> "2 * word size"
99

tests/ui/consts/transmute-size-mismatch-before-typeck.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0080]: transmuting from 8-byte type to 16-byte type: `usize` -> `&[u8]`
1+
error[E0080]: transmuting from word size type to 2 * word size type: `usize` -> `&[u8]`
22
--> $DIR/transmute-size-mismatch-before-typeck.rs:16:29
33
|
44
LL | const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };

0 commit comments

Comments
 (0)