-
Notifications
You must be signed in to change notification settings - Fork 13.4k
disallow |
from the follow-set of pat2021
#84138
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@hi-rustin I was wondering if you were interested in fixing this as a follow-up to #83468 -- I don't think you included it in that PR, right? |
@rustbot claim |
I think the problem is here: rust/compiler/rustc_expand/src/mbe/macro_rules.rs Line 1098 in 36bcf40
| , then
macro_rules! foo {
($x:expr |) => { }
} will also be allowed. This does not seem right. But in the current function we can't yet tell what token comes next in |
Actually, the code may already be correct? It appears that rust/compiler/rustc_expand/src/mbe/macro_rules.rs Lines 1119 to 1129 in 36bcf40
Note that |
Yes this part of the logic I have added, but my question is about |
@hi-rustin I expect |
Yes. I see what you mean. I misunderstood your description in the issue. |
…omatsakis add more pat2021 tests close rust-lang#84138 r? `@nikomatsakis`
…omatsakis add more pat2021 tests close rust-lang#84138 r? ``@nikomatsakis``
Uh oh!
There was an error while loading. Please reload this page.
In Edition 2021, the following should error:
for the same reason that the following already errors:
cc @rust-lang/project-edition-2021
The text was updated successfully, but these errors were encountered: