Skip to content

Streamline some attr parsing APIs #141271

New issue

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

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

Already on GitHub? # to your account

Merged
merged 5 commits into from
Jun 4, 2025
Merged

Conversation

nnethercote
Copy link
Contributor

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 20, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 20, 2025

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

They're equivalent, and `path` is unused, and `deconstruct` has only one
call site outside of `path`.
@nnethercote
Copy link
Contributor Author

@jdonszelmann: two week ping!

@jdonszelmann
Copy link
Contributor

@nnethercote hiya! Thanks for the ping and sorry for the wait. I've just made my queue of after-rustweek work and you're in it, as well as some of my own attribute work so we should be able to make some progress here. I'll review it today I hope :)

@jdonszelmann
Copy link
Contributor

well, I just did it immediately, it's small enough. I see nothing wrong with this, except maybe that I liked deconstruct. However, the API is much simpler like this, I like it :)

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 4, 2025

📌 Commit e5c78de has been approved by jdonszelmann

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 4, 2025
@nnethercote
Copy link
Contributor Author

Thanks for the fast response! :)

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 4, 2025
…nszelmann

Streamline some attr parsing APIs

r? `@jdonszelmann`
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 9 pull requests

Successful merges:

 - #141271 (Streamline some attr parsing APIs)
 - #141570 (Fix incorrect eq_unspanned in TokenStream)
 - #141857 (coretests: move float tests from num to floats module and use a more flexible macro to generate them)
 - #141893 (remove `f16: From<u16>`)
 - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if)
 - #141939 (exact_div: add tests)
 - #141959 (Add more missing 2015 edition directives)
 - #142002 (redesign stage 0 std follow-ups part2)
 - #142007 (Improve some `Visitor` comments.)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 7 pull requests

Successful merges:

 - #141271 (Streamline some attr parsing APIs)
 - #141570 (Fix incorrect eq_unspanned in TokenStream)
 - #141893 (remove `f16: From<u16>`)
 - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if)
 - #141939 (exact_div: add tests)
 - #141959 (Add more missing 2015 edition directives)
 - #142007 (Improve some `Visitor` comments.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c1e8fe7 into rust-lang:master Jun 4, 2025
6 checks passed
@rustbot rustbot added this to the 1.89.0 milestone Jun 4, 2025
rust-timer added a commit that referenced this pull request Jun 4, 2025
Rollup merge of #141271 - nnethercote:attr-streamline, r=jdonszelmann

Streamline some attr parsing APIs

r? ``@jdonszelmann``
@nnethercote nnethercote deleted the attr-streamline branch June 4, 2025 23:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants