-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: Deprecate option --test-args
in favor of new insta-stable option --test-arg
#139869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
r? @notriddle rustbot has assigned @notriddle. Use |
This PR modifies cc @jieyouxu |
@rfcbot merge |
Team member @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 |
Should we tie this change to a new edition? |
We could. We could deprecate this in all editions (as it's usually done for rustc/rustdoc's flags) and make |
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.
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. |
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. |
Yeah, I noticed that when looking at the CI failure |
7a91871
to
1afe243
Compare
I'll track this in a tracking issue if this FCP goes through successfully. @rfcbot resolve insuppressible-warning |
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
4c3b4f4
Compare
This comment has been minimized.
This comment has been minimized.
4c3b4f4
to
c262603
Compare
Context: #137096 (comment)