Uh oh!
There was an error while loading. Please reload this page.
rustdoc: Deprecate option --test-args in favor of new insta-stable option --test-arg - #139869
rustdoc: Deprecate option --test-args in favor of new insta-stable option --test-arg#139869fmease wants to merge 1 commit into
--test-args in favor of new insta-stable option --test-arg#139869Conversation
rustbot
commented
Apr 15, 2025
r? @notriddle rustbot has assigned @notriddle. Use |
rustbot
commented
Apr 15, 2025
This PR modifies cc @jieyouxu |
fmease
commented
Apr 15, 2025
@rfcbot merge |
@fmease has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern insta-stable Should the new flag be insta-stable? If we keep the new flag unstable, we can't recommend a replacement for the newly deprecated flag. Should we just soft-deprecate the old flag first? Potential solution: Only deprecate the flag under @rfcbot concern insuppressible-warning We currently emit an insuppressible deprecation warning (IIRC it's infeasible or even impossible to make this an early buffered lint warning). However, that'll probably lead to a lot of terminal spam for Cargo users? Idk, does Cargo use this flag under the hood or do users usually pass these explicitly via env var |
GuillaumeGomez
commented
Apr 15, 2025
Should we tie this change to a new edition? |
fmease
commented
Apr 15, 2025
We could. We could deprecate this in all editions (as it's usually done for rustc/rustdoc's flags) and make |
GuillaumeGomez
commented
Apr 15, 2025
Then let's go through deprecation and make the removal in the next edition. |
Well, on a second thought, we could delay the deprecation by only rejecting Re. |
This comment has been minimized.
This comment has been minimized.
Manishearth
commented
Apr 15, 2025
I'm not opposed to this provided we have a nice principled way of doing these flags across the board. So if we spend some time making sure this is what we want, I think we're fine. |
ehuss
commented
Apr 15, 2025
Just FYI, I don't think you'll be able to land this with a warning as-is since it will cause cargo's tests to fail. |
fmease
commented
Apr 15, 2025
Yeah, I noticed that when looking at the CI failure |
7a91871 to
1afe243Comparefmease
commented
Apr 16, 2025
I'll track this in a tracking issue if this FCP goes through successfully. @rfcbot resolve insuppressible-warning |
fmease
commented
Apr 16, 2025
For the upgrade path, the new flag needs to be (insta-) stable. We could meddle with performing the deprecation in the Future Edition only ( @rfcbot resolve insta-stable |
This comment has been minimized.
This comment has been minimized.
4462bde to
4c3b4f4Compare
This comment has been minimized.
This comment has been minimized.
4c3b4f4 to
c262603Comparecamelid
commented
May 16, 2025
@rfcbot concern merging through injection We should block adding any new stable features for doctests until we've figured out the details of the new approach for injecting doctests into crate HIR. |
Nemo157
commented
Jun 9, 2025
I would argue this isn't a new feature, it's simply a bugfix to the existing |
bors
commented
Jul 30, 2025
☔ The latest upstream changes (presumably #144692) made this pull request unmergeable. Please resolve the merge conflicts. |
View all comments
Context: #137096 (comment)