Skip to content

Commit 98494cf

Browse files
committed
bless tests where error messages disappeared because of body tainting
1 parent 6f08425 commit 98494cf

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
error[E0080]: transmuting from word size type to 2 * word size type: `usize` -> `&[u8]`
2-
--> $DIR/transmute-size-mismatch-before-typeck.rs:16:29
3-
|
4-
LL | const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `ZST` failed here
6-
71
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
82
--> $DIR/transmute-size-mismatch-before-typeck.rs:16:29
93
|
@@ -13,7 +7,6 @@ LL | const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
137
= note: source type: `usize` (word size)
148
= note: target type: `&[u8]` (2 * word size)
159

16-
error: aborting due to 2 previous errors
10+
error: aborting due to 1 previous error
1711

18-
Some errors have detailed explanations: E0080, E0512.
19-
For more information about an error, try `rustc --explain E0080`.
12+
For more information about this error, try `rustc --explain E0512`.

tests/ui/layout/base-layout-is-sized-ice-123078.stderr

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ help: the `Box` type always has a statically known size and allocates its conten
1616
LL | a: Box<[u8]>,
1717
| ++++ +
1818

19-
error[E0080]: the type `S` has an unknown layout
20-
--> $DIR/base-layout-is-sized-ice-123078.rs:10:1
21-
|
22-
LL | const C: S = unsafe { std::mem::transmute(()) };
23-
| ^^^^^^^^^^ evaluation of `C` failed here
24-
2519
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2620
--> $DIR/base-layout-is-sized-ice-123078.rs:10:23
2721
|
@@ -31,7 +25,7 @@ LL | const C: S = unsafe { std::mem::transmute(()) };
3125
= note: source type: `()` (0 bits)
3226
= note: target type: `S` (the type `S` has an unknown layout)
3327

34-
error: aborting due to 3 previous errors
28+
error: aborting due to 2 previous errors
3529

36-
Some errors have detailed explanations: E0080, E0277, E0512.
37-
For more information about an error, try `rustc --explain E0080`.
30+
Some errors have detailed explanations: E0277, E0512.
31+
For more information about an error, try `rustc --explain E0277`.

0 commit comments

Comments
 (0)