Skip to content

Commit

Permalink
Warn more loudly about IntoBytes on unions (#1812)
Browse files Browse the repository at this point in the history
Makes progress on #1792
  • Loading branch information
joshlf authored Oct 3, 2024
1 parent a669cdd commit 00b06c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4731,8 +4731,10 @@ fn mut_from_prefix_suffix<T: FromBytes + KnownLayout + ?Sized>(
/// $ RUSTFLAGS='--cfg zerocopy_derive_union_into_bytes' cargo build
/// ```
///
/// We make no stability guarantees regarding this cfg, and may remove it at any
/// point.
/// However, it is your responsibility to ensure that this derive is sound on
/// the specific versions of the Rust toolchain you are using! We make no
/// stability or soundness guarantees regarding this cfg, and may remove it at
/// any point.
///
/// We are actively working with Rust to stabilize the necessary language
/// guarantees to support this in a forwards-compatible way, which will enable
Expand Down

0 comments on commit 00b06c5

Please sign in to comment.