rust/compiler/rustc_parse/src/parser
Aaron Hill 11b1e37016
Force token collection to run when parsing nonterminals
Fixes #81007

Previously, we would fail to collect tokens in the proper place when
only builtin attributes were present. As a result, we would end up with
attribute tokens in the collected `TokenStream`, leading to duplication
when we attempted to prepend the attributes from the AST node.

We now explicitly track when token collection must be performed due to
nomterminal parsing.
2021-01-20 18:09:32 -05:00
..
attr.rs Set tokens on AST node in collect_tokens 2021-01-13 22:10:36 -05:00
diagnostics.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
expr.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
generics.rs make const_generics_defaults use the unstable syntax mechanism 2021-01-01 11:01:01 +01:00
item.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
mod.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
nonterminal.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
pat.rs Implement edition-based macro pat feature 2020-12-30 09:57:49 -06:00
path.rs Rework diagnostics for wrong number of generic args 2021-01-10 13:07:40 +01:00
stmt.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
ty.rs Address review comments 2020-12-17 14:12:48 +01:00