-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Location
https://doc.rust-lang.org/nightly/std/primitive.fn.html#trait-implementations-1
Summary
The documentation on the primitive fn()
says that
Due to a temporary restriction in Rust’s type system, these traits are only implemented on functions that take 12 arguments or less, with the
"Rust"
and"C"
ABIs. In the future, this may change:
This is no longer the case, the traits are implemented for all function pointer types, even on stable. I assume this just needs a documentation update, but the fact that this is such a big change makes me hesitant to do it myself without confirming.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.