]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/deriving-all-codegen.stderr
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / tests / ui / deriving / deriving-all-codegen.stderr
1 warning: byte slice in a packed struct that derives a built-in trait
2   --> $DIR/deriving-all-codegen.rs:80:24
3    |
4 LL | #[derive(Debug, Hash)]
5    |          ----- in this derive macro expansion
6 LL | #[repr(packed)]
7 LL | 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
16 warning: byte slice in a packed struct that derives a built-in trait
17   --> $DIR/deriving-all-codegen.rs:80:24
18    |
19 LL | #[derive(Debug, Hash)]
20    |                 ---- in this derive macro expansion
21 LL | #[repr(packed)]
22 LL | 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
30 warning: 2 warnings emitted
31
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
35    |
36 LL | #[derive(Debug, Hash)]
37    |          ----- in this derive macro expansion
38 LL | #[repr(packed)]
39 LL | 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
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
51    |
52 LL | #[derive(Debug, Hash)]
53    |                 ---- in this derive macro expansion
54 LL | #[repr(packed)]
55 LL | 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