Skip to content

Commit e1e0de8

Browse files
committed
add [ to FOLLOW(ty) and FOLLOW(path)
Following RFC 1462 (amending 550). Closes #31135.
1 parent 276fae1 commit e1e0de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ fn is_in_follow(_: &ExtCtxt, tok: &Token, frag: &str) -> Result<bool, String> {
10051005
},
10061006
"path" | "ty" => {
10071007
match *tok {
1008-
OpenDelim(token::DelimToken::Brace) |
1008+
OpenDelim(token::DelimToken::Brace) | OpenDelim(token::DelimToken::Bracket) |
10091009
Comma | FatArrow | Colon | Eq | Gt | Semi | BinOp(token::Or) => Ok(true),
10101010
Ident(i, _) if (i.name.as_str() == "as" ||
10111011
i.name.as_str() == "where") => Ok(true),

0 commit comments

Comments
 (0)