]> git.lizzy.rs Git - rust.git/commit
Merge #7059
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 28 Dec 2020 12:26:55 +0000 (12:26 +0000)
committerGitHub <noreply@github.com>
Mon, 28 Dec 2020 12:26:55 +0000 (12:26 +0000)
commit99ec2f623d4446bcc0befe17a98db9c7062b8009
tree280da6ea56a904e43b4edc57974e29d55daffcb8
parent86f947c1fb61c17140653f43e5f6e3e5c0ed057d
parentb5c29af02a88d0354ae1cbdabb41d481132f476e
Merge #7059

7059: Special case $_ in meta var instead of treat it as ident in mbe  r=lnicola a=edwin0cheng

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

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>