Skip to content

Commit 434bfc3

Browse files
committed
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.)
1 parent 9de696b commit 434bfc3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_parse/src/parser/nonterminal.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ impl<'a> Parser<'a> {
101101
/// site.
102102
#[inline]
103103
pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> {
104-
// Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`)
105-
// needs to have them force-captured here.
106104
// A `macro_rules!` invocation may pass a captured item/expr to a proc-macro,
107105
// which requires having captured tokens available. Since we cannot determine
108106
// in advance whether or not a proc-macro will be (transitively) invoked,

0 commit comments

Comments
 (0)