diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-31 13:58:03 +0000 | 
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-31 13:58:03 +0000 | 
| commit | 4512f211ae77306b0cd0686a7871d56edbf36d30 (patch) | |
| tree | 2a296a2f9a5c125320bbb41e874dd71c01b3bc0c /library/core/src/primitive_docs.rs | |
| parent | 22b27120b990aa9ca851819ce95149385da7954d (diff) | |
| download | rust-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.rs | 20 | 
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). ///  | 
