]> git.lizzy.rs Git - rust.git/blob - tests/ui/derives/deriving-with-repr-packed.stderr
Test drop_tracking_mir before querying generator.
[rust.git] / tests / ui / derives / deriving-with-repr-packed.stderr
1 error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
2   --> $DIR/deriving-with-repr-packed.rs:11:16
3    |
4 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
5    |                ^^^^^
6    |
7    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
9 note: the lint level is defined here
10   --> $DIR/deriving-with-repr-packed.rs:1:9
11    |
12 LL | #![deny(unaligned_references)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
17   --> $DIR/deriving-with-repr-packed.rs:11:32
18    |
19 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
20    |                                ^^^^^^^^^
21    |
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    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
24    = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
27   --> $DIR/deriving-with-repr-packed.rs:19:19
28    |
29 LL | #[derive(Default, Hash)]
30    |                   ^^^^
31    |
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    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
34    = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
37   --> $DIR/deriving-with-repr-packed.rs:39:10
38    |
39 LL | #[derive(Debug, Default)]
40    |          ^^^^^
41    |
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    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
44    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
45
46 error: aborting due to 4 previous errors
47
48 Future incompatibility report: Future breakage diagnostic:
49 error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
50   --> $DIR/deriving-with-repr-packed.rs:11:16
51    |
52 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
53    |                ^^^^^
54    |
55    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
56    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
57 note: the lint level is defined here
58   --> $DIR/deriving-with-repr-packed.rs:1:9
59    |
60 LL | #![deny(unaligned_references)]
61    |         ^^^^^^^^^^^^^^^^^^^^
62    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
63
64 Future breakage diagnostic:
65 error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
66   --> $DIR/deriving-with-repr-packed.rs:11:32
67    |
68 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
69    |                                ^^^^^^^^^
70    |
71    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
73 note: the lint level is defined here
74   --> $DIR/deriving-with-repr-packed.rs:1:9
75    |
76 LL | #![deny(unaligned_references)]
77    |         ^^^^^^^^^^^^^^^^^^^^
78    = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
79
80 Future breakage diagnostic:
81 error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
82   --> $DIR/deriving-with-repr-packed.rs:19:19
83    |
84 LL | #[derive(Default, Hash)]
85    |                   ^^^^
86    |
87    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
88    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
89 note: the lint level is defined here
90   --> $DIR/deriving-with-repr-packed.rs:1:9
91    |
92 LL | #![deny(unaligned_references)]
93    |         ^^^^^^^^^^^^^^^^^^^^
94    = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96 Future breakage diagnostic:
97 error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
98   --> $DIR/deriving-with-repr-packed.rs:39:10
99    |
100 LL | #[derive(Debug, Default)]
101    |          ^^^^^
102    |
103    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
104    = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
105 note: the lint level is defined here
106   --> $DIR/deriving-with-repr-packed.rs:1:9
107    |
108 LL | #![deny(unaligned_references)]
109    |         ^^^^^^^^^^^^^^^^^^^^
110    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
111