Skip to content

Commit a59a1e7

Browse files
committed
Remove some invalid cfg(doc) code
1 parent 83738a9 commit a59a1e7

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

library/core/src/primitive_docs.rs

-36
Original file line numberDiff line numberDiff line change
@@ -448,22 +448,6 @@ mod prim_unit {}
448448
#[doc(hidden)]
449449
impl () {}
450450

451-
// Fake impl that's only really used for docs.
452-
#[cfg(doc)]
453-
#[stable(feature = "rust1", since = "1.0.0")]
454-
impl Clone for () {
455-
fn clone(&self) -> Self {
456-
loop {}
457-
}
458-
}
459-
460-
// Fake impl that's only really used for docs.
461-
#[cfg(doc)]
462-
#[stable(feature = "rust1", since = "1.0.0")]
463-
impl Copy for () {
464-
// empty
465-
}
466-
467451
#[rustc_doc_primitive = "pointer"]
468452
#[doc(alias = "ptr")]
469453
#[doc(alias = "*")]
@@ -1690,23 +1674,3 @@ mod prim_fn {}
16901674
// See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
16911675
#[doc(hidden)]
16921676
impl<Ret, T> fn(T) -> Ret {}
1693-
1694-
// Fake impl that's only really used for docs.
1695-
#[cfg(doc)]
1696-
#[stable(feature = "rust1", since = "1.0.0")]
1697-
#[doc(fake_variadic)]
1698-
/// This trait is implemented on function pointers with any number of arguments.
1699-
impl<Ret, T> Clone for fn(T) -> Ret {
1700-
fn clone(&self) -> Self {
1701-
loop {}
1702-
}
1703-
}
1704-
1705-
// Fake impl that's only really used for docs.
1706-
#[cfg(doc)]
1707-
#[stable(feature = "rust1", since = "1.0.0")]
1708-
#[doc(fake_variadic)]
1709-
/// This trait is implemented on function pointers with any number of arguments.
1710-
impl<Ret, T> Copy for fn(T) -> Ret {
1711-
// empty
1712-
}

0 commit comments

Comments
 (0)