rust/compiler/rustc_parse/src
Aaron Hill 46d8c4bdb7
Fix recursive nonterminal expansion during pretty-print/reparse check
Makes progress towards #43081

In PR #73084, we started recursively expanded nonterminals during the
pretty-print/reparse check, allowing them to be properly compared
against the reparsed tokenstream.

Unfortunately, the recursive logic in that PR only handles the case
where a nonterminal appears inside a `TokenTree::Delimited`. If a
nonterminal appears directly in the expanded tokens of another
nonterminal, the inner nonterminal will not be expanded.

This PR fixes the recursive expansion of nonterminals, ensuring that
they are expanded wherever they occur.
2020-09-28 19:14:42 -04:00
..
lexer use if let instead of single match arm expressions to compact code and reduce nesting (clippy::single_match) 2020-09-20 11:42:52 +02:00
parser fix typo in docs and comments 2020-09-21 12:14:28 +09:00
lib.rs Fix recursive nonterminal expansion during pretty-print/reparse check 2020-09-28 19:14:42 -04:00
validate_attr.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00