From 9f6dcceef0bf2f455c29e8863413604b58e2b6b5 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 8 Jun 2022 20:06:54 -0700 Subject: [PATCH] Fix bootstrap attr --- library/core/src/primitive_docs.rs | 4 ++-- library/std/src/primitive_docs.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs index 6fa9e795db8..510d47f4e70 100644 --- a/library/core/src/primitive_docs.rs +++ b/library/core/src/primitive_docs.rs @@ -965,7 +965,7 @@ impl (T,) {} // Fake impl that's only really used for docs. #[cfg(doc)] #[stable(feature = "rust1", since = "1.0.0")] -#[doc(tuple_varadic)] +#[cfg_attr(not(bootstrap), doc(tuple_varadic))] /// This trait is implemented on arbitrary-length tuples. impl Clone for (T,) { fn clone(&self) -> Self { @@ -976,7 +976,7 @@ fn clone(&self) -> Self { // Fake impl that's only really used for docs. #[cfg(doc)] #[stable(feature = "rust1", since = "1.0.0")] -#[doc(tuple_varadic)] +#[cfg_attr(not(bootstrap), doc(tuple_varadic))] /// This trait is implemented on arbitrary-length tuples. impl Copy for (T,) { // empty diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 6fa9e795db8..510d47f4e70 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -965,7 +965,7 @@ impl (T,) {} // Fake impl that's only really used for docs. #[cfg(doc)] #[stable(feature = "rust1", since = "1.0.0")] -#[doc(tuple_varadic)] +#[cfg_attr(not(bootstrap), doc(tuple_varadic))] /// This trait is implemented on arbitrary-length tuples. impl Clone for (T,) { fn clone(&self) -> Self { @@ -976,7 +976,7 @@ fn clone(&self) -> Self { // Fake impl that's only really used for docs. #[cfg(doc)] #[stable(feature = "rust1", since = "1.0.0")] -#[doc(tuple_varadic)] +#[cfg_attr(not(bootstrap), doc(tuple_varadic))] /// This trait is implemented on arbitrary-length tuples. impl Copy for (T,) { // empty