@@ -1671,11 +1671,16 @@ mod prim_ref {}
1671
1671
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1672
1672
mod prim_fn { }
1673
1673
1674
+ // Required to make auto trait impls render.
1675
+ // See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
1676
+ #[ doc( hidden) ]
1677
+ impl < Ret , T > fn ( T ) -> Ret { }
1678
+
1674
1679
// Fake impl that's only really used for docs.
1675
1680
#[ cfg( doc) ]
1676
1681
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1677
1682
#[ doc( fake_variadic) ]
1678
- /// This trait is implemented on function pointers with any number of arguments .
1683
+ /// This trait is implemented on all function pointers.
1679
1684
impl < Ret , T > Clone for fn ( T ) -> Ret {
1680
1685
fn clone ( & self ) -> Self {
1681
1686
loop { }
@@ -1686,7 +1691,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
1686
1691
#[ cfg( doc) ]
1687
1692
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1688
1693
#[ doc( fake_variadic) ]
1689
- /// This trait is implemented on function pointers with any number of arguments .
1694
+ /// This trait is implemented on all function pointers.
1690
1695
impl < Ret , T > Copy for fn ( T ) -> Ret {
1691
1696
// empty
1692
1697
}
@@ -1699,14 +1704,9 @@ impl<Ret, T> Copy for fn(T) -> Ret {
1699
1704
reason = "internal trait for implementing various traits for all function pointers"
1700
1705
) ]
1701
1706
#[ doc( fake_variadic) ]
1702
- /// This trait is implemented on function pointers with any number of arguments .
1707
+ /// This trait is implemented on all function pointers.
1703
1708
impl < Ret , T > FnPtr for fn ( T ) -> Ret {
1704
1709
fn addr ( self ) -> * const ( ) {
1705
1710
// empty
1706
1711
}
1707
1712
}
1708
-
1709
- // Required to make auto trait impls render.
1710
- // See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
1711
- #[ doc( hidden) ]
1712
- impl < Ret , T > fn ( T ) -> Ret { }
0 commit comments