Skip to content

change field tools on AttributeParser to hold &'tcx RegisteredTools - #156091

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Bryntet:move-tools
May 3, 2026
Merged

change field tools on AttributeParser to hold &'tcx RegisteredTools#156091
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Bryntet:move-tools

Conversation

@Bryntet

@BryntetBryntet commented May 2, 2026

Copy link
Copy Markdown
Contributor

Makes tools actually stored, and not just tool names

this was originally part of #155691 but was split out to make that PR smaller.

r? @petrochenkov
cc @JonathanBrouwer

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann, @JonathanBrouwer

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rustbotrustbot 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 2, 2026

@JonathanBrouwerJonathanBrouwer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-borsBot commented May 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 76fd1b3 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 May 2, 2026
rustc_feature = { path = "../rustc_feature" }
rustc_hir = { path = "../rustc_hir" }
rustc_lexer = { path = "../rustc_lexer" }
rustc_lint_defs = { path = "../rustc_lint_defs" }

@petrochenkovpetrochenkovMay 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this crate already depends on rustc_lint_defs indirectly through rustc_errors, so this is ok.

View changes since the review

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it doesn't matter but it feels somewhat silly when RegisteredTools is just a type alias.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it doesn't matter but it feels somewhat silly when RegisteredTools is just a type alias.

I think it's worth it for more consistency and to avoid confusion

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 2, 2026
change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`
Makes tools actually stored, and not just tool names
this was originally part of rust-lang#155691 but was split out to make that PR smaller.
r? @petrochenkov
cc @JonathanBrouwer
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 2, 2026
change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`
Makes tools actually stored, and not just tool names
this was originally part of rust-lang#155691 but was split out to make that PR smaller.
r? @petrochenkov
cc @JonathanBrouwer
rust-borsBot pushed a commit that referenced this pull request May 3, 2026
…uwer
Rollup of 5 pull requests
Successful merges:
- #152277 (Validate source snippet when format input is raw string)
- #155940 (refactor rustc_on_unimplemented's filtering)
- #156065 (Remove unused spans from AttributeKind)
- #156079 (Move and rename the `clone-never.rs` test)
- #156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
@jhprattjhpratt mentioned this pull request May 3, 2026
rust-borsBot pushed a commit that referenced this pull request May 3, 2026
Rollup of 5 pull requests
Successful merges:
- #155666 (Interning cleanups)
- #155940 (refactor rustc_on_unimplemented's filtering)
- #156065 (Remove unused spans from AttributeKind)
- #156079 (Move and rename the `clone-never.rs` test)
- #156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
@rust-bors
rust-borsBot merged commit bd8d026 into rust-lang:mainMay 3, 2026
11 checks passed
rust-timer added a commit that referenced this pull request May 3, 2026
Rollup merge of #156091 - Bryntet:move-tools, r=JonathanBrouwer
change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`
Makes tools actually stored, and not just tool names
this was originally part of #155691 but was split out to make that PR smaller.
r? @petrochenkov
cc @JonathanBrouwer
@rustbotrustbot added this to the 1.97.0 milestone May 3, 2026
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Aug 17, 2026
Rollup of 5 pull requests
Successful merges:
- rust-lang/rust#155666 (Interning cleanups)
- rust-lang/rust#155940 (refactor rustc_on_unimplemented's filtering)
- rust-lang/rust#156065 (Remove unused spans from AttributeKind)
- rust-lang/rust#156079 (Move and rename the `clone-never.rs` test)
- rust-lang/rust#156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@Bryntet@rustbot@petrochenkov@JonathanBrouwer@mejrs