Skip to content

Conversation

@edwin0cheng
Copy link
Contributor

In #6929, we treat '_' as an ident but rustc is only allow it in some special places (e.g. meta var in mbe , type, pat etc).

This PR rollback that and we only make '$_' works in meta var matching.

Fixes #7056

@edwin0cheng edwin0cheng changed the title Special case Special case $_ in meta var instead of treat it as ident in mbe Dec 28, 2020
@lnicola
Copy link
Member

lnicola commented Dec 28, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 28, 2020

@bors bors bot merged commit 99ec2f6 into rust-lang:master Dec 28, 2020
@edwin0cheng edwin0cheng deleted the fix-7056 branch December 28, 2020 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_ gets greedily consumed in macro pattern matching repetitions

2 participants