about summary refs log tree commit diff
path: root/library/core/src/primitive_docs.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
commit4512f211ae77306b0cd0686a7871d56edbf36d30 (patch)
tree2a296a2f9a5c125320bbb41e874dd71c01b3bc0c /library/core/src/primitive_docs.rs
parent22b27120b990aa9ca851819ce95149385da7954d (diff)
downloadrust-4512f211ae77306b0cd0686a7871d56edbf36d30.tar.gz
rust-4512f211ae77306b0cd0686a7871d56edbf36d30.zip
Accept less invalid Rust in rustdoc
Diffstat (limited to 'library/core/src/primitive_docs.rs')
-rw-r--r--library/core/src/primitive_docs.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs
index 380a21b376b..f3695d16d7a 100644
--- a/library/core/src/primitive_docs.rs
+++ b/library/core/src/primitive_docs.rs
@@ -1077,26 +1077,6 @@ mod prim_tuple {}
 #[doc(hidden)]
 impl<T> (T,) {}
 
-// Fake impl that's only really used for docs.
-#[cfg(doc)]
-#[stable(feature = "rust1", since = "1.0.0")]
-#[doc(fake_variadic)]
-/// This trait is implemented on arbitrary-length tuples.
-impl<T: Clone> Clone for (T,) {
-    fn clone(&self) -> Self {
-        loop {}
-    }
-}
-
-// Fake impl that's only really used for docs.
-#[cfg(doc)]
-#[stable(feature = "rust1", since = "1.0.0")]
-#[doc(fake_variadic)]
-/// This trait is implemented on arbitrary-length tuples.
-impl<T: Copy> Copy for (T,) {
-    // empty
-}
-
 #[rustc_doc_primitive = "f32"]
 /// A 32-bit floating point type (specifically, the "binary32" type defined in IEEE 754-2008).
 ///