]> git.lizzy.rs Git - rust.git/commitdiff
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)
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>

Trivial merge