Uh oh!
There was an error while loading. Please reload this page.
reject macros with empty repetitions - #36721
Conversation
rust-highfive
commented
Sep 25, 2016
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
could use lhses.iter().all() instead of the for loop.
There was a problem hiding this comment.
The for loop was mainly used to use the same style as the loop of the rhses directly above.
Also .iter().all() would abort early, I think, which means that not all lhses would be checked, ie. not all errors we could report would be reported.
There was a problem hiding this comment.
ok, good point on not reporting all errors. Could you add a comment to explain that please?
nrc
commented
Sep 25, 2016
r=me with the |
2bbef65 to
d06a9caComparenrc
commented
Sep 25, 2016
@bors: r+ |
bors
commented
Sep 25, 2016
📌 Commit d06a9ca has been approved by |
bors
commented
Sep 25, 2016
☔ The latest upstream changes (presumably #36616) made this pull request unmergeable. Please resolve the merge conflicts. |
d06a9ca to
51ea050CompareTimNN
commented
Sep 26, 2016
Rebased. |
nrc
commented
Sep 26, 2016
@bors: r+ |
bors
commented
Sep 26, 2016
📌 Commit 51ea050 has been approved by |
reject macros with empty repetitions Fixesrust-lang#5067 by checking the lhs of `macro_rules!` for repetitions which could match an empty token tree.
reject macros with empty repetitions Fixesrust-lang#5067 by checking the lhs of `macro_rules!` for repetitions which could match an empty token tree.
Fixes#5067 by checking the lhs of
macro_rules!for repetitions which could match an empty token tree.