The lint unused_doc_comments
classifies all kinds of #[doc …]
attributes as documentation comments
#96009
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-unused_doc_comments
Lint: unused_doc_comments
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The lint
unused_doc_comments
triggers on any#[doc …]
/#![doc …]
(on any token stream inside the attribute) when it should only trigger on actual documentation comments i.e.#[doc = …]
/#![doc = …]
.E.g. the following code incorrectly labels
#[doc(hidden)]
as a doc comment:@rustbot label A-lint
@rustbot claim
The text was updated successfully, but these errors were encountered: