Skip to content

Commit b614b0e

Browse files
committed
Bless tests
1 parent 988e75b commit b614b0e

5 files changed

+4
-6
lines changed

src/test/ui/cast/issue-88621.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0605]: non-primitive cast: `Kind2` as `u8`
2-
--> $DIR/issue-88621.rs:11:13
2+
--> $DIR/issue-88621.rs:9:13
33
|
44
LL | let _ = Kind2::Foo() as u8;
55
| ^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object

src/test/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0732]: `#[repr(inttype)]` must be specified
2-
--> $DIR/arbitrary_enum_discriminant-no-repr.rs:4:1
2+
--> $DIR/arbitrary_enum_discriminant-no-repr.rs:3:1
33
|
44
LL | enum Enum {
55
| ^^^^^^^^^

src/test/ui/transmutability/enums/should_order_correctly.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//! The payloads of an enum variant should be ordered after its tag.
33
44
#![crate_type = "lib"]
5-
#![feature(arbitrary_enum_discriminant)]
65
#![feature(transmutability)]
76
#![allow(dead_code)]
87

src/test/ui/transmutability/enums/should_respect_endianness.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//! an enum with a multi-byte tag.
33
44
#![crate_type = "lib"]
5-
#![feature(arbitrary_enum_discriminant)]
65
#![feature(transmutability)]
76
#![allow(dead_code)]
87

src/test/ui/transmutability/enums/should_respect_endianness.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
error[E0277]: `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
2-
--> $DIR/should_respect_endianness.rs:37:36
2+
--> $DIR/should_respect_endianness.rs:36:36
33
|
44
LL | assert::is_transmutable::<Src, Unexpected>();
55
| ^^^^^^^^^^ `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
66
|
77
= help: the trait `BikeshedIntrinsicFrom<Src, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `Unexpected`
88
note: required by a bound in `is_transmutable`
9-
--> $DIR/should_respect_endianness.rs:15:14
9+
--> $DIR/should_respect_endianness.rs:14:14
1010
|
1111
LL | pub fn is_transmutable<Src, Dst>()
1212
| --------------- required by a bound in this

0 commit comments

Comments
 (0)