diff options
| author | Alex Burka <aburka@seas.upenn.edu> | 2016-01-23 13:38:18 -0500 |
|---|---|---|
| committer | Alex Burka <aburka@seas.upenn.edu> | 2016-01-23 16:37:14 -0500 |
| commit | e1e0de86ec7ae5c572560a39282b54b410b49f83 (patch) | |
| tree | 90b92b05b1d2179fb5882ae2fc135793e275d768 /src/libsyntax/ext | |
| parent | 276fae11ea999e946a48b2150e59438eb8a5e442 (diff) | |
| download | rust-e1e0de86ec7ae5c572560a39282b54b410b49f83.tar.gz rust-e1e0de86ec7ae5c572560a39282b54b410b49f83.zip | |
add `[` to FOLLOW(ty) and FOLLOW(path)
Following RFC 1462 (amending 550). Closes #31135.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 9f069cb17ed..bfd76db0359 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -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), |
