From 00b06c55e8ed6a0855cb05f1b71df3587c97d778 Mon Sep 17 00:00:00 2001 From: Joshua Liebow-Feeser Date: Thu, 3 Oct 2024 13:52:54 -0700 Subject: [PATCH] Warn more loudly about IntoBytes on unions (#1812) Makes progress on #1792 --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 26ea5786d9..f75224448e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4731,8 +4731,10 @@ fn mut_from_prefix_suffix( /// $ 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