We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c1bdb commit 76567a6Copy full SHA for 76567a6
src/libsyntax/parse/parser.rs
@@ -3160,7 +3160,9 @@ impl<'a> Parser<'a> {
3160
// Parse pattern starting with a path
3161
if self.token.is_plain_ident() && self.look_ahead(1, |t| *t != token::DotDotDot &&
3162
*t != token::OpenDelim(token::Brace) &&
3163
- *t != token::OpenDelim(token::Paren)) {
+ *t != token::OpenDelim(token::Paren) &&
3164
+ // Contrary to its definition, a plain ident can be followed by :: in macros
3165
+ *t != token::ModSep) {
3166
// Plain idents have some extra abilities here compared to general paths
3167
if self.look_ahead(1, |t| *t == token::Not) {
3168
// Parse macro invocation
0 commit comments