@@ -1671,11 +1671,16 @@ mod prim_ref {}
16711671#[ stable( feature = "rust1" , since = "1.0.0" ) ]
16721672mod prim_fn { }
16731673
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+
16741679// Fake impl that's only really used for docs.
16751680#[ cfg( doc) ]
16761681#[ stable( feature = "rust1" , since = "1.0.0" ) ]
16771682#[ 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.
16791684impl < Ret , T > Clone for fn ( T ) -> Ret {
16801685 fn clone ( & self ) -> Self {
16811686 loop { }
@@ -1686,7 +1691,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
16861691#[ cfg( doc) ]
16871692#[ stable( feature = "rust1" , since = "1.0.0" ) ]
16881693#[ 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.
16901695impl < Ret , T > Copy for fn ( T ) -> Ret {
16911696 // empty
16921697}
@@ -1699,14 +1704,9 @@ impl<Ret, T> Copy for fn(T) -> Ret {
16991704 reason = "internal trait for implementing various traits for all function pointers"
17001705) ]
17011706#[ 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.
17031708impl < Ret , T > FnPtr for fn ( T ) -> Ret {
17041709 fn addr ( self ) -> * const ( ) {
17051710 // empty
17061711 }
17071712}
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