Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6732919

Browse files
authoredJan 19, 2024
Unrolled build for rust-lang#119907
Rollup merge of rust-lang#119907 - asquared31415:fn_trait_docs, r=Nilstrieb Update `fn()` trait implementation docs Fixes rust-lang#119903 This was FCP'd and approved for the 1.70.0 release, this is just a docs update to match that change.
2 parents 92d7277 + 46ad131 commit 6732919

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
 

‎library/core/src/primitive_docs.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -1634,9 +1634,8 @@ mod prim_ref {}
16341634
/// function pointers of varying length. Note that this is a convenience notation to avoid
16351635
/// repetitive documentation, not valid Rust syntax.
16361636
///
1637-
/// Due to a temporary restriction in Rust's type system, these traits are only implemented on
1638-
/// functions that take 12 arguments or less, with the `"Rust"` and `"C"` ABIs. In the future, this
1639-
/// may change:
1637+
/// The following traits are implemented for function pointers with any number of arguments and
1638+
/// any ABI.
16401639
///
16411640
/// * [`PartialEq`]
16421641
/// * [`Eq`]
@@ -1645,11 +1644,6 @@ mod prim_ref {}
16451644
/// * [`Hash`]
16461645
/// * [`Pointer`]
16471646
/// * [`Debug`]
1648-
///
1649-
/// The following traits are implemented for function pointers with any number of arguments and
1650-
/// any ABI. These traits have implementations that are automatically generated by the compiler,
1651-
/// so are not limited by missing language features:
1652-
///
16531647
/// * [`Clone`]
16541648
/// * [`Copy`]
16551649
/// * [`Send`]

0 commit comments

Comments
 (0)
Please sign in to comment.