Skip to content

Commit 00b06c5

Browse files
authored
Warn more loudly about IntoBytes on unions (#1812)
Makes progress on #1792
1 parent a669cdd commit 00b06c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,8 +4731,10 @@ fn mut_from_prefix_suffix<T: FromBytes + KnownLayout + ?Sized>(
47314731
/// $ RUSTFLAGS='--cfg zerocopy_derive_union_into_bytes' cargo build
47324732
/// ```
47334733
///
4734-
/// We make no stability guarantees regarding this cfg, and may remove it at any
4735-
/// point.
4734+
/// However, it is your responsibility to ensure that this derive is sound on
4735+
/// the specific versions of the Rust toolchain you are using! We make no
4736+
/// stability or soundness guarantees regarding this cfg, and may remove it at
4737+
/// any point.
47364738
///
47374739
/// We are actively working with Rust to stabilize the necessary language
47384740
/// guarantees to support this in a forwards-compatible way, which will enable

0 commit comments

Comments
 (0)