fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.2 KiB63 linesraw
1warning: byte slice in a packed struct that derives a built-in trait
2  --> $DIR/deriving-all-codegen.rs:80:24
3   |
4LL | #[derive(Debug, Hash)]
5   |          ----- in this derive macro expansion
6LL | #[repr(packed)]
7LL | struct PackedUnsizedU8([u8]);
8   |                        ^^^^
9   |
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)
15
16warning: byte slice in a packed struct that derives a built-in trait
17  --> $DIR/deriving-all-codegen.rs:80:24
18   |
19LL | #[derive(Debug, Hash)]
20   |                 ---- in this derive macro expansion
21LL | #[repr(packed)]
22LL | struct PackedUnsizedU8([u8]);
23   |                        ^^^^
24   |
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)
29
30warning: 2 warnings emitted
31
32Future incompatibility report: Future breakage diagnostic:
33warning: byte slice in a packed struct that derives a built-in trait
34  --> $DIR/deriving-all-codegen.rs:80:24
35   |
36LL | #[derive(Debug, Hash)]
37   |          ----- in this derive macro expansion
38LL | #[repr(packed)]
39LL | struct PackedUnsizedU8([u8]);
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 #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)
47
48Future breakage diagnostic:
49warning: byte slice in a packed struct that derives a built-in trait
50  --> $DIR/deriving-all-codegen.rs:80:24
51   |
52LL | #[derive(Debug, Hash)]
53   |                 ---- in this derive macro expansion
54LL | #[repr(packed)]
55LL | struct PackedUnsizedU8([u8]);
56   |                        ^^^^
57   |
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)
63