about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-01 02:13:32 +0200
committerGitHub <noreply@github.com>2020-10-01 02:13:32 +0200
commit8ccc063fbc54e5fea3a4811310ff0bb0821d2992 (patch)
treeb3703206285c3e0afd6446b40db1a05350615731 /src/test/codegen
parent8bd4ed9f95a9c7228ec10988550ec0808b1a4e75 (diff)
parent46d8c4bdb7318a50d9df12a7a0b0bcc8efc1846e (diff)
downloadrust-8ccc063fbc54e5fea3a4811310ff0bb0821d2992.tar.gz
rust-8ccc063fbc54e5fea3a4811310ff0bb0821d2992.zip
Rollup merge of #77153 - Aaron1011:fix/better-recursive-expand, r=petrochenkov
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.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions