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
3
3
|
4
- LL | #[derive(Copy, Clone, PartialEq, Eq)]
4
+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
5
5
| ^^^^^
6
6
|
7
7
note: the lint level is defined here
@@ -13,43 +13,43 @@ LL | #![deny(unaligned_references)]
13
13
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
14
14
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
15
15
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
18
18
|
19
- LL | #[derive(Copy, Clone, PartialEq, Eq)]
20
- | ^^^^^^^^^
19
+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
20
+ | ^^^^^^^^^
21
21
|
22
22
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23
23
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
24
24
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
25
25
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
28
28
|
29
- LL | #[derive(PartialEq, Eq )]
30
- | ^^^^^ ^^^^
29
+ LL | #[derive(Default, Hash )]
30
+ | ^^^^
31
31
|
32
32
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33
33
= 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)
35
35
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
38
38
|
39
- LL | #[derive(PartialEq )]
40
- | ^^^^^^^^^
39
+ LL | #[derive(Debug, Default )]
40
+ | ^^^^^
41
41
|
42
42
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
43
43
= 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)
45
45
46
46
error: aborting due to 4 previous errors
47
47
48
48
Future 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
51
51
|
52
- LL | #[derive(Copy, Clone, PartialEq, Eq)]
52
+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
53
53
| ^^^^^
54
54
|
55
55
note: the lint level is defined here
@@ -62,11 +62,11 @@ LL | #![deny(unaligned_references)]
62
62
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
63
63
64
64
Future 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
67
67
|
68
- LL | #[derive(Copy, Clone, PartialEq, Eq)]
69
- | ^^^^^^^^^
68
+ LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
69
+ | ^^^^^^^^^
70
70
|
71
71
note: the lint level is defined here
72
72
--> $DIR/deriving-with-repr-packed.rs:1:9
@@ -78,11 +78,11 @@ LL | #![deny(unaligned_references)]
78
78
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
79
79
80
80
Future 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
83
83
|
84
- LL | #[derive(PartialEq, Eq )]
85
- | ^^^^^ ^^^^
84
+ LL | #[derive(Default, Hash )]
85
+ | ^^^^
86
86
|
87
87
note: the lint level is defined here
88
88
--> $DIR/deriving-with-repr-packed.rs:1:9
@@ -91,14 +91,14 @@ LL | #![deny(unaligned_references)]
91
91
| ^^^^^^^^^^^^^^^^^^^^
92
92
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
93
93
= 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)
95
95
96
96
Future 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
99
99
|
100
- LL | #[derive(PartialEq )]
101
- | ^^^^^^^^^
100
+ LL | #[derive(Debug, Default )]
101
+ | ^^^^^
102
102
|
103
103
note: the lint level is defined here
104
104
--> $DIR/deriving-with-repr-packed.rs:1:9
@@ -107,5 +107,5 @@ LL | #![deny(unaligned_references)]
107
107
| ^^^^^^^^^^^^^^^^^^^^
108
108
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
109
109
= 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)
111
111
0 commit comments