Skip to content

Gate #![reexport_test_harness_main] properly#152210

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Ozzy1423:attrs7
Mar 7, 2026
Merged

Gate #![reexport_test_harness_main] properly#152210
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Ozzy1423:attrs7

Conversation

@Ozzy1423
Copy link
Copy Markdown
Contributor

@Ozzy1423 Ozzy1423 commented Feb 6, 2026

View all comments

Address the FIXME

Removed from issue-43106-gating-of-builtin-attrs.rs since that is for stable attributes only.

This would be a breaking change, search of github shows it is mostly but not always used with #![test_runner] which is already gated correctly.

Details:
#50297

Feel free to close this issue if you think it is not worth addressing the FIXME...

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Feb 6, 2026

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rustbot rustbot added 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. T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue. labels Feb 6, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Feb 6, 2026

r? @fee1-dead

rustbot has assigned @fee1-dead.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • People who recently interacted with files modified in this PR: compiler
  • compiler expanded to 20 candidates
  • Random selection from 12 candidates

@fmease fmease added needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. needs-crater This change needs a crater run to check for possible breakage in the ecosystem. labels Feb 6, 2026
@fee1-dead
Copy link
Copy Markdown
Member

@bors try

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Feb 17, 2026
Gate #![reexport_test_harness_main] properly
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Feb 17, 2026

☀️ Try build successful (CI)
Build commit: 79452e8 (79452e8441468c5568c20bfca2aa1fe75b645b2d, parent: 3c9faa0d037b9eecda4a440cc482ff7f960fb8a5)

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

@craterbot check

@craterbot
Copy link
Copy Markdown
Collaborator

👌 Experiment pr-152210 created and queued.
🤖 Automatically detected try build 79452e8
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 17, 2026
@fee1-dead
Copy link
Copy Markdown
Member

(for reference, this was discussed in #t-compiler > MCP needed for gating an accidentally stable attribute?)

@craterbot
Copy link
Copy Markdown
Collaborator

🚧 Experiment pr-152210 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Copy Markdown
Collaborator

🎉 Experiment pr-152210 is completed!
📊 6 regressed and 8 fixed (818761 total)
📊 2503 spurious results on the retry-regressed-list.txt, consider a retry1 if this is a significant amount.
📰 Open the summary report.

⚠️ If you notice any spurious failure please add them to the denylist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

Footnotes

  1. re-run the experiment with crates=https://crater-reports.s3.amazonaws.com/pr-152210/retry-regressed-list.txt

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Feb 19, 2026
@JonathanBrouwer JonathanBrouwer added the relnotes Marks issues that should be documented in the release notes of the next release. label Feb 20, 2026
@JonathanBrouwer
Copy link
Copy Markdown
Contributor

JonathanBrouwer commented Feb 20, 2026

All changes in the crater run are spurious.
@rust-lang/lang are you ok with this change?
r=me if you are

@JonathanBrouwer JonathanBrouwer added T-lang Relevant to the language team I-lang-nominated Nominated for discussion during a lang team meeting. I-lang-easy-decision Issue: The decision needed by the team is conjectured to be easy; this does not imply nomination labels Feb 20, 2026
@traviscross traviscross added the P-lang-drag-1 Lang team prioritization drag level 1. https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang label Feb 20, 2026
@rust-bors

This comment has been minimized.

@traviscross
Copy link
Copy Markdown
Contributor

traviscross commented Feb 25, 2026

We talked about this in the meeting today. Let's propose to do this. Some people may do some further investigation; if we find things, we'll file concerns.

@rfcbot fcp merge lang

@rust-rfcbot rust-rfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Feb 25, 2026
@rust-rfcbot
Copy link
Copy Markdown
Collaborator

🔔 This is now entering its final comment period, as per the review above. 🔔

@steffahn
Copy link
Copy Markdown
Member

steffahn commented Feb 25, 2026

@RalfJung
Copy link
Copy Markdown
Member

the original marker as explicitly “ungated” came in

That just made the default explicit, didn't it? Adding it ungated happened in #22364.

@jackh726
Copy link
Copy Markdown
Member

jackh726 commented Feb 25, 2026

Ah, I got nerd-sniped (oh well).

This attribute has been around since pre 1.0, and when feature-gated attributes were added (#22364), this just wasn't gated. The FIXME was added in #63824 alongside general other cleanups/refactors.

@jackh726
Copy link
Copy Markdown
Member

This seems like an obvious case of "this probably wasn't a vetted stabilization", and given that it seems like this attribute shouldn't be used without test_runner, adding a feature gate seems obviously appropriate.

@Ozzy1423
Copy link
Copy Markdown
Contributor Author

Ozzy1423 commented Mar 4, 2026

Rebased

@rust-rfcbot rust-rfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. to-announce Announce this issue on triage meeting and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Mar 7, 2026
@rust-rfcbot
Copy link
Copy Markdown
Collaborator

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 7, 2026

📌 Commit 4af572d 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 Mar 7, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 7, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #153462 (Bootstrap update)
 - #152210 (Gate #![reexport_test_harness_main] properly)
@rust-bors rust-bors bot merged commit 0da3785 into rust-lang:main Mar 7, 2026
11 checks passed
rust-timer added a commit that referenced this pull request Mar 7, 2026
Rollup merge of #152210 - Ozzy1423:attrs7, r=JonathanBrouwer

Gate #![reexport_test_harness_main] properly

Address the FIXME

Removed from `issue-43106-gating-of-builtin-attrs.rs` since that is for stable attributes only.

This would be a breaking change, search of github shows it is mostly but not always used with `#![test_runner]` which is already gated correctly.

Details:
#50297

Feel free to close this issue if you think it is not worth addressing the FIXME...
@rustbot rustbot added this to the 1.96.0 milestone Mar 7, 2026
@Ozzy1423 Ozzy1423 deleted the attrs7 branch March 8, 2026 08:34
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Mar 8, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
github-actions bot pushed a commit to rust-lang/stdarch that referenced this pull request Mar 9, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
github-actions bot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Mar 9, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
makai410 pushed a commit to makai410/rustc_public that referenced this pull request Mar 19, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
makai410 pushed a commit to makai410/rustc_public that referenced this pull request Mar 19, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
makai410 pushed a commit to makai410/rustc_public that referenced this pull request Mar 27, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#153462 (Bootstrap update)
 - rust-lang/rust#152210 (Gate #![reexport_test_harness_main] properly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. I-lang-radar Items that are on lang's radar and will need eventual work or consideration. needs-crater This change needs a crater run to check for possible breakage in the ecosystem. needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. relnotes Marks issues that should be documented in the release notes of the next release. 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. T-lang Relevant to the language team T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue. to-announce Announce this issue on triage meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.