-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: accept --out-dir
and soft-deprecate --output
#91260
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
Comments
@rfcbot fcp merge |
Team member @jyn514 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. |
Note that this will still leave an inconsistency - rustdoc will treat |
@rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Mentoring instructions:
Feel free to ask for help, but please do so on Zulip or Discord to avoid pinging the whole team :) |
@rustbot claim |
@rfcbot concern consistency with rustc My understanding is that the purpose of this proposal is to increase consistency with rustc. However, I would like to ensure that (1) the new behavior is fully consistent with rustc and (2) the churn and potential confusion of having For example, rustc prefers
I would like to make sure—perhaps by discussing with T-compiler—that making this change won't add more inconsistency. With regards to churn, it seems potentially confusing to have both Overall, I do think this is a good change, but since there hasn't been much discussion about the full implications of this change, I would like to make sure we don't accidentally introduce more inconsistency. So, I would just like to have a bit more discussion about this before we merge it.
In the case of |
I think the better comparison is passing --out-dir twice:
Recall that in rustdoc,
I'm ok with doing this, but I don't know what inconsistency you're worried about. Can you be in charge of asking T-compiler about this?
I'm not suggesting we remove any existing documentation, only document that
Right - I'm saying if I didn't know the existing behavior, I would expect |
I think I won't have enough time in the near future to manage discussing this with T-compiler. I don't feel strongly about this change in either direction, but it seems okay, and I don't want to block it since the rest of the team has signed off. @rfcbot resolve consistency with rustc |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
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. This will be merged soon. |
…yn514 Add --out-dir flag for rustdoc part of rust-lang#91260 Add --out-dir flag for rustdoc and change the `-o` option to point to out-dir. I'm not quite sure if it should be stable, also I'm not sure if this parameter priority is appropriate? Or should I just refuse to pass both parameters at the same time? r? `@jyn514`
Added in #91310. |
Rustc uses
--out-dir
, but rustdoc rejects it. This is an unnecessary incompatibility; rustdoc should accept--out-dir
too. Accepting--output
was a mistake, but it's stable and used in almost literally every run by cargo, so we realistically can't even warn on it. We should document that--out-dir
is the recommended option, though.Once
--out-dir
has been accepted for several releases, we could consider starting to warn on--output
, but I don't suggest committing to that now.The text was updated successfully, but these errors were encountered: