rust/compiler/rustc_expand/src
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
..
mbe Remove dead code 2021-01-17 12:45:48 +01:00
mut_visit rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00
parse Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
tokenstream mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
base.rs resolve: Simplify built-in macro table 2021-01-10 14:48:47 +03:00
build.rs Properly handle attributes on statements 2020-11-26 17:08:35 -05:00
config.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
expand.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
lib.rs Remove some no longer necessary #[cfg(test)]s 2020-12-12 19:20:37 +03:00
mbe.rs Revert "Promote missing_fragment_specifier to hard error" 2020-12-22 09:33:16 -05:00
module.rs Syntactically permit unsafety on mods 2020-09-10 06:56:33 -07:00
placeholders.rs resolve/expand: Improve attribute expansion on macro definitions and calls 2021-01-09 18:43:01 +03:00
proc_macro.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
proc_macro_server.rs rustc_parse: Better spans for synthesized token streams 2021-01-07 17:48:13 +03:00
tests.rs remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00