diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-04 11:02:35 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-17 08:26:56 +1000 |
| commit | 434bfc316293a1b2c959e4f8c8facb1634abf729 (patch) | |
| tree | be3b3830fae5412e32ef591c0f6aba50088c0489 /compiler/rustc_parse/src/parser | |
| parent | 9de696b39fbe661d827ab8d8335df9f1efd86c3b (diff) | |
| download | rust-434bfc316293a1b2c959e4f8c8facb1634abf729.tar.gz rust-434bfc316293a1b2c959e4f8c8facb1634abf729.zip | |
Remove outdated comment.
All nonterminals collect and store tokens now. (Unless they are very simple, e.g. single-token, and can precisely recover them without collecting.)
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/nonterminal.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/nonterminal.rs b/compiler/rustc_parse/src/parser/nonterminal.rs index f5681532b3a..7e1a2b6a306 100644 --- a/compiler/rustc_parse/src/parser/nonterminal.rs +++ b/compiler/rustc_parse/src/parser/nonterminal.rs @@ -101,8 +101,6 @@ impl<'a> Parser<'a> { /// site. #[inline] pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> { - // Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`) - // needs to have them force-captured here. // A `macro_rules!` invocation may pass a captured item/expr to a proc-macro, // which requires having captured tokens available. Since we cannot determine // in advance whether or not a proc-macro will be (transitively) invoked, |
