Skip to content

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

Merged
rust-bors[bot] merged 1 commit intorust-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 intorust-lang:mainfrom
Bryntet:move-tools

Conversation

@Bryntet
Copy link
Copy Markdown
Contributor

@Bryntet Bryntet commented May 2, 2026

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

rustbot commented May 2, 2026

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.

@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 2, 2026
Copy link
Copy Markdown
Contributor

@JonathanBrouwer JonathanBrouwer left a comment

Choose a reason for hiding this comment

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

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 2, 2026

📌 Commit 76fd1b3 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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" }
Copy link
Copy Markdown
Contributor

@petrochenkov petrochenkov May 2, 2026

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
Contributor

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
Contributor Author

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-bors Bot 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`)
rust-bors Bot 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-bors Bot merged commit bd8d026 into rust-lang:main May 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
@rustbot rustbot added this to the 1.97.0 milestone May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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