-
Notifications
You must be signed in to change notification settings - Fork 13.3k
syntax: Enforce attribute grammar in the parser #53293
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
src/libsyntax/parse/attr.rs
Outdated
/// PATH `[` TOKEN_STREAM `]` | ||
/// PATH `{` TOKEN_STREAM `}` | ||
/// PATH `=` TOKEN_TREE | ||
/// The delimiters or `=` are still put into the resulting token stream. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially wanted to store the delimiter and actual tokens separately in ast::Attribute
, but that required much larger refactoring, so I left it for later.
73eeed7
to
47ba0ef
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors: r+ |
📌 Commit 47ba0ef9cc84888249e5f6c828e2925bfd95b37a has been approved by |
47ba0ef
to
7fedf5f
Compare
@bors r=alexcrichton |
📌 Commit 7fedf5f23dccd0dad2080fcfbb4544978ad0efbf has been approved by |
7fedf5f
to
097c40c
Compare
(Rebased again) |
📌 Commit 097c40c has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Also fix feature-gating for
unrestricted_attribute_tokens
that was introduced in #53270, but was actually broken.cc #50911