1 warning: byte slice in a packed struct that derives a built-in trait
2 --> $DIR/deriving-all-codegen.rs:80:24
4 LL | #[derive(Debug, Hash)]
5 | ----- in this derive macro expansion
7 LL | struct PackedUnsizedU8([u8]);
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 = note: for more information, see issue #107457 <https://github.com/rust-lang/rust/issues/107457>
12 = help: consider implementing the trait by hand, or remove the `packed` attribute
13 = note: `#[warn(byte_slice_in_packed_struct_with_derive)]` on by default
14 = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
16 warning: byte slice in a packed struct that derives a built-in trait
17 --> $DIR/deriving-all-codegen.rs:80:24
19 LL | #[derive(Debug, Hash)]
20 | ---- in this derive macro expansion
22 LL | struct PackedUnsizedU8([u8]);
25 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
26 = note: for more information, see issue #107457 <https://github.com/rust-lang/rust/issues/107457>
27 = help: consider implementing the trait by hand, or remove the `packed` attribute
28 = note: this warning originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
30 warning: 2 warnings emitted
32 Future incompatibility report: Future breakage diagnostic:
33 warning: byte slice in a packed struct that derives a built-in trait
34 --> $DIR/deriving-all-codegen.rs:80:24
36 LL | #[derive(Debug, Hash)]
37 | ----- in this derive macro expansion
39 LL | struct PackedUnsizedU8([u8]);
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 #107457 <https://github.com/rust-lang/rust/issues/107457>
44 = help: consider implementing the trait by hand, or remove the `packed` attribute
45 = note: `#[warn(byte_slice_in_packed_struct_with_derive)]` on by default
46 = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
48 Future breakage diagnostic:
49 warning: byte slice in a packed struct that derives a built-in trait
50 --> $DIR/deriving-all-codegen.rs:80:24
52 LL | #[derive(Debug, Hash)]
53 | ---- in this derive macro expansion
55 LL | struct PackedUnsizedU8([u8]);
58 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
59 = note: for more information, see issue #107457 <https://github.com/rust-lang/rust/issues/107457>
60 = help: consider implementing the trait by hand, or remove the `packed` attribute
61 = note: `#[warn(byte_slice_in_packed_struct_with_derive)]` on by default
62 = note: this warning originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)