-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rename rustdoc
to rustdoc::all
#82798
Conversation
Oh, let me add a test for this. |
The error is
I can either
@Manishearth which do you prefer? |
I would rename the group to |
Actually I'm in favor of immediately setting the old lint group to empty, and having a special Clippy regularly does this with lints. We keep around old lint names indefinitely, but we empty them and have a warning for deprecated ones. |
What's the difference between this and deprecating the old name? |
When rustdoc lints were changed to be tool lints, the `rustdoc` group was removed, leading to spurious warnings like ``` warning: unknown lint: `rustdoc` ``` The lint group still worked when rustdoc ran, since rustdoc added the group itself. This renames the group to `rustdoc::all` for consistency with `clippy::all` and the rest of the rustdoc lints.
Instead of deprecating we make it stop working immediately (but there's a warning as a breadcrumb). No strong opinion in either direction. |
I think we should keep |
Agreed! |
@Manishearth is this waiting on review or on a team consensus? I'm not sure. |
Unsure, I'm +1 on it |
@bors r=Manishearth,GuillaumeGomez |
📌 Commit 45229b0 has been approved by |
…,GuillaumeGomez Rename `rustdoc` to `rustdoc::all` When rustdoc lints were changed to be tool lints, the `rustdoc` group was removed, leading to spurious warnings like ``` warning: unknown lint: `rustdoc` ``` The lint group still worked when rustdoc ran, since rustdoc added the group itself. This renames the group to `rustdoc::all` for consistency with `clippy::all` and the rest of the rustdoc lints. Follow-up to rust-lang#80527. r? `@Manishearth`
Rollup of 10 pull requests Successful merges: - rust-lang#81465 (Add documentation about formatting `Duration` values) - rust-lang#82121 (Implement Extend and FromIterator for OsString) - rust-lang#82617 (Document `everybody_loops`) - rust-lang#82789 (Get with field index from pattern slice instead of directly indexing) - rust-lang#82798 (Rename `rustdoc` to `rustdoc::all`) - rust-lang#82804 (std: Fix a bug on the wasm32-wasi target opening files) - rust-lang#82943 (Demonstrate best practice for feeding stdin of a child processes) - rust-lang#83066 (Add `reverse` search alias for Iterator::rev()) - rust-lang#83070 (Update cargo) - rust-lang#83081 (Fix panic message of `assert_failed_inner`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
When rustdoc lints were changed to be tool lints, the
rustdoc
group was removed, leading to spurious warnings likeThe lint group still worked when rustdoc ran, since rustdoc added the group itself.
This renames the group to
rustdoc::all
for consistency withclippy::all
and the rest of the rustdoc lints.Follow-up to #80527.
r? @Manishearth