diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-03-05 09:50:20 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-03-05 15:26:55 -0500 |
| commit | 45229b0777e6791625392529c2c9d8eceac28dbd (patch) | |
| tree | 18d23f922c7ab062417c94e6c738f230452d90b4 /src/librustdoc/lint.rs | |
| parent | 8ccc89bc312caa65ca46b55b47492abdd5b6910a (diff) | |
| download | rust-45229b0777e6791625392529c2c9d8eceac28dbd.tar.gz rust-45229b0777e6791625392529c2c9d8eceac28dbd.zip | |
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.
Diffstat (limited to 'src/librustdoc/lint.rs')
| -rw-r--r-- | src/librustdoc/lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/lint.rs b/src/librustdoc/lint.rs index e8806c1b6d7..754ec53b330 100644 --- a/src/librustdoc/lint.rs +++ b/src/librustdoc/lint.rs @@ -175,8 +175,8 @@ crate fn register_lints(_sess: &Session, lint_store: &mut LintStore) { lint_store.register_lints(&**RUSTDOC_LINTS); lint_store.register_group( true, - "rustdoc", - None, + "rustdoc::all", + Some("rustdoc"), RUSTDOC_LINTS.iter().map(|&lint| LintId::of(lint)).collect(), ); for lint in &*RUSTDOC_LINTS { |
