-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried renaming rustdoc
to rustdoc::all
. I expected this to continue denying rustdoc warnings when I use deny(rustdoc)
. Instead, it warned that the lint name was outdated, but did not apply the lint level.
#![deny(rustdoc)]
//! [x]
warning: lint `rustdoc` has been removed: use `rustdoc::all` instead
--> ../test-rustdoc/lints.rs:1:9
|
1 | #![deny(rustdoc)]
| ^^^^^^^
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
warning: unresolved link to `x`
--> ../test-rustdoc/lints.rs:2:6
|
2 | //! [x]
| ^ no item named `x` in scope
|
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: 2 warnings emitted
This is #82615, but for lint groups instead of individual lints. cc #82798
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.