about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-06-16 09:50:57 -0700
committerMichael Howell <michael@notriddle.com>2022-07-17 16:32:06 -0700
commit1169832f2ff1ce740dc3d68de2df3745ec4e1aef (patch)
tree787992af670a5860306399e1fdc94e5818dbc0fc /library/std/src
parent263edd43c5255084292329423c61a9d69715ebfa (diff)
downloadrust-1169832f2ff1ce740dc3d68de2df3745ec4e1aef.tar.gz
rust-1169832f2ff1ce740dc3d68de2df3745ec4e1aef.zip
rustdoc: extend `#[doc(tuple_variadic)]` to fn pointers
The attribute is also renamed `fake_variadic`.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/primitive_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index 401c8159988..4f08b562685 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -996,7 +996,7 @@ impl<T> (T,) {}
 // Fake impl that's only really used for docs.
 #[cfg(doc)]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[doc(tuple_variadic)]
+#[cfg_attr(not(bootstrap), doc(fake_variadic))]
 /// This trait is implemented on arbitrary-length tuples.
 impl<T: Clone> Clone for (T,) {
     fn clone(&self) -> Self {
@@ -1007,7 +1007,7 @@ impl<T: Clone> Clone for (T,) {
 // Fake impl that's only really used for docs.
 #[cfg(doc)]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[doc(tuple_variadic)]
+#[cfg_attr(not(bootstrap), doc(fake_variadic))]
 /// This trait is implemented on arbitrary-length tuples.
 impl<T: Copy> Copy for (T,) {
     // empty