about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-06-08 19:26:51 -0700
committerMichael Howell <michael@notriddle.com>2022-06-08 19:26:51 -0700
commit6950f144cf83d10bc4a304b48488f9f5368cfaae (patch)
treecdb01e93a5aa5912f6ef07deef7ba8c622027f67 /compiler/rustc_span/src
parent7a935670055d87e17c381542f4eaab481e8bf17b (diff)
downloadrust-6950f144cf83d10bc4a304b48488f9f5368cfaae.tar.gz
rust-6950f144cf83d10bc4a304b48488f9f5368cfaae.zip
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.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index bcaf53639cc..37e905f7f56 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1439,6 +1439,7 @@ symbols! {
         tuple,
         tuple_from_req,
         tuple_indexing,
+        tuple_varadic,
         two_phase,
         ty,
         type_alias_enum_variants,