diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-26 14:26:59 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-26 14:26:59 +0530 |
| commit | 962da8bdcef3c200d6e27550fc83145204cf30ac (patch) | |
| tree | a5103c784e87262e5b9a74d6ce88416f91871e18 /src | |
| parent | deab13c6817c720a44ae481dd729998db708e870 (diff) | |
| parent | 6a4b1572f9694f5d590f594198269506caf3c727 (diff) | |
| download | rust-962da8bdcef3c200d6e27550fc83145204cf30ac.tar.gz rust-962da8bdcef3c200d6e27550fc83145204cf30ac.zip | |
Rollup merge of #99739 - nnethercote:rm-E0133, r=Dylan-DPC
Remove erroneous E0133 code from an error message. This error message is about `derive` and `packed`, but E0133 is for "Unsafe code was used outside of an unsafe function or block". r? ``@estebank``
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/derives/deriving-with-repr-packed.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/derives/deriving-with-repr-packed.stderr b/src/test/ui/derives/deriving-with-repr-packed.stderr index 1f98da5b70e..d3fe550c3e4 100644 --- a/src/test/ui/derives/deriving-with-repr-packed.stderr +++ b/src/test/ui/derives/deriving-with-repr-packed.stderr @@ -1,4 +1,4 @@ -error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133) +error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters --> $DIR/deriving-with-repr-packed.rs:11:16 | LL | #[derive(Copy, Clone, Default, PartialEq, Eq)] @@ -13,7 +13,7 @@ LL | #![deny(unaligned_references)] = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523> = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) -error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133) +error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters --> $DIR/deriving-with-repr-packed.rs:11:32 | LL | #[derive(Copy, Clone, Default, PartialEq, Eq)] @@ -23,7 +23,7 @@ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)] = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523> = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) -error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` (error E0133) +error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` --> $DIR/deriving-with-repr-packed.rs:19:19 | LL | #[derive(Default, Hash)] @@ -33,7 +33,7 @@ LL | #[derive(Default, Hash)] = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523> = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) -error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` (error E0133) +error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` --> $DIR/deriving-with-repr-packed.rs:39:10 | LL | #[derive(Debug, Default)] @@ -46,7 +46,7 @@ LL | #[derive(Debug, Default)] error: aborting due to 4 previous errors Future incompatibility report: Future breakage diagnostic: -error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133) +error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters --> $DIR/deriving-with-repr-packed.rs:11:16 | LL | #[derive(Copy, Clone, Default, PartialEq, Eq)] @@ -62,7 +62,7 @@ LL | #![deny(unaligned_references)] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) Future breakage diagnostic: -error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133) +error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters --> $DIR/deriving-with-repr-packed.rs:11:32 | LL | #[derive(Copy, Clone, Default, PartialEq, Eq)] @@ -78,7 +78,7 @@ LL | #![deny(unaligned_references)] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) Future breakage diagnostic: -error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` (error E0133) +error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` --> $DIR/deriving-with-repr-packed.rs:19:19 | LL | #[derive(Default, Hash)] @@ -94,7 +94,7 @@ LL | #![deny(unaligned_references)] = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info) Future breakage diagnostic: -error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` (error E0133) +error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy` --> $DIR/deriving-with-repr-packed.rs:39:10 | LL | #[derive(Debug, Default)] |
