Skip to content

Commit 9f6dcce

Browse files
committed
Fix bootstrap attr
1 parent 85b0c2f commit 9f6dcce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ impl<T> (T,) {}
965965
// Fake impl that's only really used for docs.
966966
#[cfg(doc)]
967967
#[stable(feature = "rust1", since = "1.0.0")]
968-
#[doc(tuple_varadic)]
968+
#[cfg_attr(not(bootstrap), doc(tuple_varadic))]
969969
/// This trait is implemented on arbitrary-length tuples.
970970
impl<T: Clone> Clone for (T,) {
971971
fn clone(&self) -> Self {
@@ -976,7 +976,7 @@ impl<T: Clone> Clone for (T,) {
976976
// Fake impl that's only really used for docs.
977977
#[cfg(doc)]
978978
#[stable(feature = "rust1", since = "1.0.0")]
979-
#[doc(tuple_varadic)]
979+
#[cfg_attr(not(bootstrap), doc(tuple_varadic))]
980980
/// This trait is implemented on arbitrary-length tuples.
981981
impl<T: Copy> Copy for (T,) {
982982
// empty

library/std/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ impl<T> (T,) {}
965965
// Fake impl that's only really used for docs.
966966
#[cfg(doc)]
967967
#[stable(feature = "rust1", since = "1.0.0")]
968-
#[doc(tuple_varadic)]
968+
#[cfg_attr(not(bootstrap), doc(tuple_varadic))]
969969
/// This trait is implemented on arbitrary-length tuples.
970970
impl<T: Clone> Clone for (T,) {
971971
fn clone(&self) -> Self {
@@ -976,7 +976,7 @@ impl<T: Clone> Clone for (T,) {
976976
// Fake impl that's only really used for docs.
977977
#[cfg(doc)]
978978
#[stable(feature = "rust1", since = "1.0.0")]
979-
#[doc(tuple_varadic)]
979+
#[cfg_attr(not(bootstrap), doc(tuple_varadic))]
980980
/// This trait is implemented on arbitrary-length tuples.
981981
impl<T: Copy> Copy for (T,) {
982982
// empty

0 commit comments

Comments
 (0)