-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
New attribute parsing infrastructure #135726
Open
jdonszelmann
wants to merge
9
commits into
rust-lang:master
Choose a base branch
from
jdonszelmann:attr-parsing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r? @Noratrieb rustbot has assigned @Noratrieb. Use |
053b11b
to
5a3ac64
Compare
This comment has been minimized.
This comment has been minimized.
5a3ac64
to
bbdb095
Compare
This comment has been minimized.
This comment has been minimized.
r? oli-obk |
bbdb095
to
5d70659
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #135754) made this pull request unmergeable. Please resolve the merge conflicts. |
4d3437f
to
b3d6ef4
Compare
This comment has been minimized.
This comment has been minimized.
b3d6ef4
to
7319c1a
Compare
This comment has been minimized.
This comment has been minimized.
4aaff39
to
2f73b56
Compare
This comment has been minimized.
This comment has been minimized.
2f73b56
to
e8773d9
Compare
jdonszelmann
commented
Jan 20, 2025
jdonszelmann
commented
Jan 20, 2025
jdonszelmann
commented
Jan 20, 2025
edd86b3
to
e56dd22
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
745dbb6
to
5d5a3fa
Compare
8 tasks
This comment has been minimized.
This comment has been minimized.
5d5a3fa
to
d912b25
Compare
This comment has been minimized.
This comment has been minimized.
d912b25
to
19cc649
Compare
This comment has been minimized.
This comment has been minimized.
19cc649
to
8e433f9
Compare
This comment has been minimized.
This comment has been minimized.
8e433f9
to
fcbe7a5
Compare
note: compiler compiles but librustdoc and clippy don't
This comment has been minimized.
This comment has been minimized.
fcbe7a5
to
0454f40
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-query-system
Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)
A-rustdoc-json
Area: Rustdoc JSON backend
PG-exploit-mitigations
Project group: Exploit mitigations
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another step in the plan outlined in #131229
introduces infrastructure for structured parsers for attributes, as well as converting a couple of complex attributes to have such structured parsers.
This PR may prove too large to review. I left some of my own comments to guide it a little. Some general notes:
malformed repr(align(N))
#132391. I think most choices I made here are generally reasonable, but let me know if you disagree anywhere.rustc_ast_data_structures::AttributeKind
In general, a lot of the additions here are comments. I've found it very important to document new things in the 2nd commit well so other people can start using it.
Closes #132391
Closes #136717