-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
unused_features false positive on doc_cfg #154487
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsF-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`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.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsF-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
Current output
Desired output
No warning
Rationale and extra context
The feature modifies rustdoc output regardless of whether
#[doc(cfg)]is explicitly used in the source code, so it is not unused.Rust Version
Anything else?
@rustbot label +F-doc_cfg