Skip to content

Port #[rustc_test_marker] to the attribute parser#152570

Open
Ozzy1423 wants to merge 1 commit intorust-lang:mainfrom
Ozzy1423:attr-parse
Open

Port #[rustc_test_marker] to the attribute parser#152570
Ozzy1423 wants to merge 1 commit intorust-lang:mainfrom
Ozzy1423:attr-parse

Conversation

@Ozzy1423
Copy link
Contributor

Tracking issue: #131229

Targets:
Const is for normal tests (const test::TestDescAndFn is inserted before the test fn)
Const/Static/Fn is for custom_test_framework's #[test_case] e.g. tests/ui/custom_test_frameworks/full.rs

r? @JonathanBrouwer

Again I left the use-sites as is since they are early uses.

@rustbot
Copy link
Collaborator

rustbot commented Feb 13, 2026

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_hir/src/attrs

cc @jdonszelmann, @JonathanBrouwer

@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 Feb 13, 2026
@JonathanBrouwer
Copy link
Contributor

@bors r+ rollup
I think it would be nice of we can find a better solution for the early attributes than using the old parsers for now, but that can be after we finish parsing everything in the HIR

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 13, 2026

📌 Commit 250ce84 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 Feb 13, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 13, 2026
…uwer

Port #[rustc_test_marker] to the attribute parser

Tracking issue: rust-lang#131229

Targets:
Const is for normal tests (const test::TestDescAndFn is inserted before the test fn)
Const/Static/Fn is for custom_test_framework's #[test_case] e.g. tests/ui/custom_test_frameworks/full.rs

r? @JonathanBrouwer

Again I left the use-sites as is since they are early uses.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 13, 2026
…uwer

Port #[rustc_test_marker] to the attribute parser

Tracking issue: rust-lang#131229

Targets:
Const is for normal tests (const test::TestDescAndFn is inserted before the test fn)
Const/Static/Fn is for custom_test_framework's #[test_case] e.g. tests/ui/custom_test_frameworks/full.rs

r? @JonathanBrouwer

Again I left the use-sites as is since they are early uses.
@rust-log-analyzer

This comment has been minimized.

@JonathanBrouwer
Copy link
Contributor

@bors r-

@rust-bors rust-bors bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 13, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 13, 2026

Commit 250ce84 has been unapproved.

This PR was contained in a rollup (#152572), which was also unapproved.

@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2026

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@rustbot rustbot added the T-clippy Relevant to the Clippy team. label Feb 14, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2026

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.

@Ozzy1423
Copy link
Contributor Author

Fixed the clippy lint to use find_attr!, is it okay to submit it all together in the rustc repo?

@JonathanBrouwer
Copy link
Contributor

JonathanBrouwer commented Feb 14, 2026

Yes, the idea is if you need to change rustc and clippy together, you can do it here :)
The changes are regularly synced from/to the clippy repo

@JonathanBrouwer
Copy link
Contributor

JonathanBrouwer commented Feb 14, 2026

@bors r+
Thank you!

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 14, 2026

📌 Commit 6ed7615 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 14, 2026
@rust-bors rust-bors bot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 14, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 14, 2026
…uwer

Port #[rustc_test_marker] to the attribute parser

Tracking issue: rust-lang#131229

Targets:
Const is for normal tests (const test::TestDescAndFn is inserted before the test fn)
Const/Static/Fn is for custom_test_framework's #[test_case] e.g. tests/ui/custom_test_frameworks/full.rs

r? @JonathanBrouwer

Again I left the use-sites as is since they are early uses.
rust-bors bot pushed a commit that referenced this pull request Feb 14, 2026
…uwer

Rollup of 8 pull requests

Successful merges:

 - #152618 (stdarch subtree update)
 - #152001 (mGCA: Validate const literal against expected type)
 - #152120 (Don't ICE on layout error in vtable computation)
 - #152531 (`proc_macro::bridge`: simplify `ExecutionStrategy` and `DispatcherTrait`)
 - #152577 (Port #[rustc_proc_macro_decls] to the new attribute parser.)
 - #152570 (Port #[rustc_test_marker] to the attribute parser)
 - #152590 (DepGraphQuery: correctly skip adding edges with not-yet-added nodes)
 - #152612 (Rename `inline_fluent!` to `msg!`)
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-clippy Relevant to the Clippy team. 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.

4 participants