]> git.lizzy.rs Git - rust.git/commit
Extend `BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 6 Feb 2023 01:58:39 +0000 (12:58 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 9 Feb 2023 00:47:12 +0000 (11:47 +1100)
commita70d03b62454f57672e14b48715ae10c01e5fd34
tree1937ed3dbd3fbd4e7e411991fd40b3fadbe1944e
parentef934d9b632b8ac00276558824664c104b92b5f0
Extend `BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE`.

To temporarily allow a `str` field in a packed struct using `derive`,
along with `[u8]`.
compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
compiler/rustc_lint_defs/src/builtin.rs
tests/ui/derives/deriving-with-repr-packed.rs
tests/ui/derives/deriving-with-repr-packed.stderr