1
Fork 0

rustdoc: show tuple impls as impl Trait for (T, ...)

This commit adds a new unstable attribute, `#[doc(tuple_varadic)]`, that
shows a 1-tuple as `(T, ...)` instead of just `(T,)`, and links to a section
in the tuple primitive docs that talks about these.
This commit is contained in:
Michael Howell 2022-06-08 19:26:51 -07:00
parent 7a93567005
commit 6950f144cf
15 changed files with 111 additions and 44 deletions

View file

@ -1439,6 +1439,7 @@ symbols! {
tuple,
tuple_from_req,
tuple_indexing,
tuple_varadic,
two_phase,
ty,
type_alias_enum_variants,