]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #98180 - notriddle:notriddle/rustdoc-fn, r=petrochenkov,GuillaumeGomez
authorbors <bors@rust-lang.org>
Tue, 19 Jul 2022 19:36:57 +0000 (19:36 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Jul 2022 19:36:57 +0000 (19:36 +0000)
Improve the function pointer docs

This is #97842 but for function pointers instead of tuples. The concept is basically the same.

* Reduce duplicate impls; show `fn (T₁, T₂, …, Tₙ)` and include a sentence saying that there exists up to twelve of them.
* Show `Copy` and `Clone`.
* Show auto traits like `Send` and `Sync`, and blanket impls like `Any`.

https://notriddle.com/notriddle-rustdoc-test/std/primitive.fn.html

1  2 
compiler/rustc_ast_passes/src/feature_gate.rs
compiler/rustc_span/src/symbol.rs
src/librustdoc/clean/mod.rs

Simple merge
Simple merge