2022-07-26 10:31:06 +10:00
|
|
|
error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:11:16
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
|
2017-11-26 19:01:19 +02:00
|
|
|
| ^^^^^
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:1:9
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
2021-02-25 19:38:53 +01:00
|
|
|
LL | #![deny(unaligned_references)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-11-19 17:04:24 +02:00
|
|
|
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:11:32
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
|
|
|
|
| ^^^^^^^^^
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2021-02-25 19:38:53 +01:00
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-11-19 17:04:24 +02:00
|
|
|
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:19:19
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Default, Hash)]
|
|
|
|
| ^^^^
|
2017-11-19 17:04:24 +02:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2021-02-25 19:38:53 +01:00
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-07-22 10:04:37 +10:00
|
|
|
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-11-19 17:04:24 +02:00
|
|
|
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:39:10
|
2017-11-26 19:01:19 +02:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Debug, Default)]
|
|
|
|
| ^^^^^
|
2017-11-26 19:01:19 +02:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2021-02-25 19:38:53 +01:00
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-07-22 10:04:37 +10:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-11-26 19:01:19 +02:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2017-11-19 17:04:24 +02:00
|
|
|
|
2022-04-14 21:18:19 -04:00
|
|
|
Future incompatibility report: Future breakage diagnostic:
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:11:16
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
|
2022-04-14 21:18:19 -04:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-04-14 21:18:19 -04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/deriving-with-repr-packed.rs:1:9
|
|
|
|
|
|
|
|
|
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:
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:11:32
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
|
|
|
|
| ^^^^^^^^^
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-04-14 21:18:19 -04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/deriving-with-repr-packed.rs:1:9
|
|
|
|
|
|
|
|
|
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:
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:19:19
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Default, Hash)]
|
|
|
|
| ^^^^
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-04-14 21:18:19 -04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/deriving-with-repr-packed.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unaligned_references)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-07-22 10:04:37 +10:00
|
|
|
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
|
|
Future breakage diagnostic:
|
2022-07-26 10:31:06 +10:00
|
|
|
error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
|
2022-07-22 10:04:37 +10:00
|
|
|
--> $DIR/deriving-with-repr-packed.rs:39:10
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-07-22 10:04:37 +10:00
|
|
|
LL | #[derive(Debug, Default)]
|
|
|
|
| ^^^^^
|
2022-04-14 21:18:19 -04:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
|
2022-04-14 21:18:19 -04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/deriving-with-repr-packed.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unaligned_references)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-07-22 10:04:37 +10:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-04-14 21:18:19 -04:00
|
|
|
|