Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [ to the FOLLOW(ty) in macro future-proofing rules. #1462

Merged
merged 2 commits into from
Jan 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion text/0550-macro-future-proofing.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ The current legal fragment specifiers are: `item`, `block`, `stmt`, `pat`,

- `FOLLOW(pat)` = `{FatArrow, Comma, Eq, Or, Ident(if), Ident(in)}`
- `FOLLOW(expr)` = `{FatArrow, Comma, Semicolon}`
- `FOLLOW(ty)` = `{OpenDelim(Brace), Comma, FatArrow, Colon, Eq, Gt, Semi, Or, Ident(as), Ident(where)}`
- `FOLLOW(ty)` = `{OpenDelim(Brace), Comma, FatArrow, Colon, Eq, Gt, Semi, Or, Ident(as), Ident(where), OpenDelim(Bracket)}`
- `FOLLOW(stmt)` = `FOLLOW(expr)`
- `FOLLOW(path)` = `FOLLOW(ty)`
- `FOLLOW(block)` = any token
Expand Down Expand Up @@ -481,6 +481,9 @@ reasonable freedom and can be extended in the future.

[RFC issue 1336]: https://github.com/rust-lang/rfcs/issues/1336

- Updated by https://github.com/rust-lang/rfcs/pull/1462, which added
open square bracket into the follow set for types.

# Appendices

## Appendix A: Algorithm for recognizing valid matchers.
Expand Down