From 762ba9784804851a63ef9c51381668a5ebd89500 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 21 Dec 2024 17:46:04 -0800 Subject: [PATCH] Document more parse_quote special cases --- src/parse_quote.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/parse_quote.rs b/src/parse_quote.rs index 6d635b445a..2db20597c4 100644 --- a/src/parse_quote.rs +++ b/src/parse_quote.rs @@ -53,11 +53,22 @@ /// /// - [`Attribute`] — parses one attribute, allowing either outer like `#[...]` /// or inner like `#![...]` +/// - [`Vec`] — parses multiple attributes, including mixed kinds in +/// any order /// - [`Punctuated`] — parses zero or more `T` separated by punctuation /// `P` with optional trailing punctuation +/// - [`Vec`] — parses arms separated by optional commas according to the +/// same grammar as the inside of a `match` expression /// - [`Vec`] — parses the same as `Block::parse_within` +/// - [`Pat`], [`Box`] — parses the same as +/// `Pat::parse_multi_with_leading_vert` +/// - [`Field`] — parses a named or unnamed struct field /// +/// [`Vec`]: Attribute +/// [`Vec`]: Arm /// [`Vec`]: Block::parse_within +/// [`Pat`]: Pat::parse_multi_with_leading_vert +/// [`Box`]: Pat::parse_multi_with_leading_vert /// /// # Panics ///