add [ to FOLLOW(ty) and FOLLOW(path)

Following RFC 1462 (amending 550). Closes #31135.
This commit is contained in:
Alex Burka 2016-01-23 13:38:18 -05:00
parent 276fae11ea
commit e1e0de86ec

View File

@ -1005,7 +1005,7 @@ fn is_in_follow(_: &ExtCtxt, tok: &Token, frag: &str) -> Result<bool, String> {
},
"path" | "ty" => {
match *tok {
OpenDelim(token::DelimToken::Brace) |
OpenDelim(token::DelimToken::Brace) | OpenDelim(token::DelimToken::Bracket) |
Comma | FatArrow | Colon | Eq | Gt | Semi | BinOp(token::Or) => Ok(true),
Ident(i, _) if (i.name.as_str() == "as" ||
i.name.as_str() == "where") => Ok(true),