Repository navigation
Move #[naked] attribute check to attribute parsing stage - #162530
Conversation
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_attr_parsing |
|
Thanks for the pull request, and welcome! The Rust Project has assigned @nnethercote (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. Why was this reviewer chosen?The reviewer was selected based on:
|
57ae8f4 to
c65aa6f
Compare
This comment has been minimized.
This comment has been minimized.
c65aa6f to
4c2e629
Compare
This comment has been minimized.
This comment has been minimized.
4c2e629 to
ee7a87a
Compare
ee7a87a to
9d144c2
Compare
This comment has been minimized.
This comment has been minimized.
|
Reminder, once the PR becomes ready for a review, use |
9d144c2 to
7e93b9a
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7e93b9a to
cdc980c
Compare
This comment has been minimized.
This comment has been minimized.
cdc980c to
4fbadae
Compare
|
@bors r=JonathanBrouwer,mejrs |
|
📌 Commit 7443a22 has been approved by It is now in the queue for this repository. 🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened. Reason for tree closure: |
|
@bors r- |
|
This pull request was unapproved. This PR was contained in a rollup (#164922), which was unapproved. |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
…functions calling lower_attrs() Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
|
@bors r+ rollup |
View all comments
Following #161482's idea to add
target_itemfield toFinalizeCheckContext, replacetarget_itemwithast_target, which is anenumthat contains all possible types of target Item (obtained by grepping all functions that calllower_attrs()).This change is needed as methods defined under
traits &impls are represented asast::AssocItem. Lastly, movecheck_nakedto the callback returned byNakedParser::deferred_finalize_check().Part of #153101. r?@JonathanBrouwer