Rustc doesn't emit unused_doc_comments
warning for documentation on generic parameters
#90610
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Either rustdoc adds "bar" somewhere in the documentation, or rustc gives a warning that the doc-comment does nothing.
Instead, this happened: The doc-comment is silently discarded.
Meta
rustc --version --verbose
: rustc 1.58.0-nightly (4961b10 2021-11-04)The text was updated successfully, but these errors were encountered: