From ee64218b73b44cca9c96057e84f00ab12aeee59e Mon Sep 17 00:00:00 2001 From: Zachary S Date: Sun, 1 Sep 2024 05:42:49 -0500 Subject: [PATCH] nightly_docs for transparent_wrapper_extra --- src/transparent.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/transparent.rs b/src/transparent.rs index 29bd683..a588eea 100644 --- a/src/transparent.rs +++ b/src/transparent.rs @@ -304,6 +304,10 @@ pub unsafe trait TransparentWrapper { unsafe impl TransparentWrapper for core::num::Wrapping {} #[cfg(feature = "transparentwrapper_extra")] +#[cfg_attr( + feature = "nightly_docs", + doc(cfg(feature = "transparentwrapper_extra")) +)] unsafe impl TransparentWrapper for core::num::Saturating {} // Note that `Reverse` existed since Rust 1.19.0, but was only made `#[repr(transparent)]` @@ -311,4 +315,8 @@ unsafe impl TransparentWrapper for core::num::Saturating {} // the same feature as `Saturating`, which was stabilized in Rust 1.74.0, so that this // impl cannot be used on a version before 1.52.0 where it would be unsound. #[cfg(feature = "transparentwrapper_extra")] +#[cfg_attr( + feature = "nightly_docs", + doc(cfg(feature = "transparentwrapper_extra")) +)] unsafe impl TransparentWrapper for core::cmp::Reverse {}