]> git.lizzy.rs Git - rust.git/commit
Implement slow-path for FirstSets::first
authorJulien Cretin <cretin@google.com>
Wed, 24 Jul 2019 21:32:26 +0000 (23:32 +0200)
committerJulien Cretin <cretin@google.com>
Thu, 25 Jul 2019 21:28:47 +0000 (23:28 +0200)
commitdf4b23e7212b8f7a3f62f469f666021226e29c17
tree8f4914767734381100b154b1a33f802727d04271
parenteedf6ce4ef54bb03818ab21d714f1b9f13a6b31c
Implement slow-path for FirstSets::first

When 2 or more sequences share the same span, we can't use the precomputed map
for their first set. So we compute it recursively.

Fixes #62831.
src/libsyntax/ext/tt/macro_rules.rs
src/test/ui/macros/auxiliary/proc_macro_sequence.rs [new file with mode: 0644]
src/test/ui/macros/same-sequence-span.rs [new file with mode: 0644]
src/test/ui/macros/same-sequence-span.stderr [new file with mode: 0644]