1- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
2- --> $DIR/deriving-with-repr-packed.rs:8 :16
1+ error: `Clone ` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133)
2+ --> $DIR/deriving-with-repr-packed.rs:11 :16
33 |
4- LL | #[derive(Copy, Clone, PartialEq, Eq)]
4+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
55 | ^^^^^
66 |
77note: the lint level is defined here
@@ -13,43 +13,43 @@ LL | #![deny(unaligned_references)]
1313 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
1414 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
1515
16- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
17- --> $DIR/deriving-with-repr-packed.rs:8:23
16+ error: `PartialEq ` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133)
17+ --> $DIR/deriving-with-repr-packed.rs:11:32
1818 |
19- LL | #[derive(Copy, Clone, PartialEq, Eq)]
20- | ^^^^^^^^^
19+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
20+ | ^^^^^^^^^
2121 |
2222 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2323 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
2424 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
2525
26- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
27- --> $DIR/deriving-with-repr-packed.rs:16:10
26+ error: `Hash ` can't be derived on this `#[repr(packed)]` struct that does not derive ` Copy` (error E0133)
27+ --> $DIR/deriving-with-repr-packed.rs:19:19
2828 |
29- LL | #[derive(PartialEq, Eq )]
30- | ^^^^^ ^^^^
29+ LL | #[derive(Default, Hash )]
30+ | ^^^^
3131 |
3232 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3333 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
34- = note: this error originates in the derive macro `PartialEq ` (in Nightly builds, run with -Z macro-backtrace for more info)
34+ = note: this error originates in the derive macro `Hash ` (in Nightly builds, run with -Z macro-backtrace for more info)
3535
36- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
37- --> $DIR/deriving-with-repr-packed.rs:25 :10
36+ error: `Debug ` can't be derived on this `#[repr(packed)]` struct that does not derive ` Copy` (error E0133)
37+ --> $DIR/deriving-with-repr-packed.rs:39 :10
3838 |
39- LL | #[derive(PartialEq )]
40- | ^^^^^^^^^
39+ LL | #[derive(Debug, Default )]
40+ | ^^^^^
4141 |
4242 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4343 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
44- = note: this error originates in the derive macro `PartialEq ` (in Nightly builds, run with -Z macro-backtrace for more info)
44+ = note: this error originates in the derive macro `Debug ` (in Nightly builds, run with -Z macro-backtrace for more info)
4545
4646error: aborting due to 4 previous errors
4747
4848Future incompatibility report: Future breakage diagnostic:
49- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
50- --> $DIR/deriving-with-repr-packed.rs:8 :16
49+ error: `Clone ` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133)
50+ --> $DIR/deriving-with-repr-packed.rs:11 :16
5151 |
52- LL | #[derive(Copy, Clone, PartialEq, Eq)]
52+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
5353 | ^^^^^
5454 |
5555note: the lint level is defined here
@@ -62,11 +62,11 @@ LL | #![deny(unaligned_references)]
6262 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
6363
6464Future breakage diagnostic:
65- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
66- --> $DIR/deriving-with-repr-packed.rs:8:23
65+ error: `PartialEq ` can't be derived on this `#[repr(packed)]` struct with type or const parameters (error E0133)
66+ --> $DIR/deriving-with-repr-packed.rs:11:32
6767 |
68- LL | #[derive(Copy, Clone, PartialEq, Eq)]
69- | ^^^^^^^^^
68+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
69+ | ^^^^^^^^^
7070 |
7171note: the lint level is defined here
7272 --> $DIR/deriving-with-repr-packed.rs:1:9
@@ -78,11 +78,11 @@ LL | #![deny(unaligned_references)]
7878 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
7979
8080Future breakage diagnostic:
81- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
82- --> $DIR/deriving-with-repr-packed.rs:16:10
81+ error: `Hash ` can't be derived on this `#[repr(packed)]` struct that does not derive ` Copy` (error E0133)
82+ --> $DIR/deriving-with-repr-packed.rs:19:19
8383 |
84- LL | #[derive(PartialEq, Eq )]
85- | ^^^^^ ^^^^
84+ LL | #[derive(Default, Hash )]
85+ | ^^^^
8686 |
8787note: the lint level is defined here
8888 --> $DIR/deriving-with-repr-packed.rs:1:9
@@ -91,14 +91,14 @@ LL | #![deny(unaligned_references)]
9191 | ^^^^^^^^^^^^^^^^^^^^
9292 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9393 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
94- = note: this error originates in the derive macro `PartialEq ` (in Nightly builds, run with -Z macro-backtrace for more info)
94+ = note: this error originates in the derive macro `Hash ` (in Nightly builds, run with -Z macro-backtrace for more info)
9595
9696Future breakage diagnostic:
97- error: `#[derive] ` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
98- --> $DIR/deriving-with-repr-packed.rs:25 :10
97+ error: `Debug ` can't be derived on this `#[repr(packed)]` struct that does not derive ` Copy` (error E0133)
98+ --> $DIR/deriving-with-repr-packed.rs:39 :10
9999 |
100- LL | #[derive(PartialEq )]
101- | ^^^^^^^^^
100+ LL | #[derive(Debug, Default )]
101+ | ^^^^^
102102 |
103103note: the lint level is defined here
104104 --> $DIR/deriving-with-repr-packed.rs:1:9
@@ -107,5 +107,5 @@ LL | #![deny(unaligned_references)]
107107 | ^^^^^^^^^^^^^^^^^^^^
108108 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
109109 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
110- = note: this error originates in the derive macro `PartialEq ` (in Nightly builds, run with -Z macro-backtrace for more info)
110+ = note: this error originates in the derive macro `Debug ` (in Nightly builds, run with -Z macro-backtrace for more info)
111111
0 commit comments