-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Rustdoc should report unknown doc(...) attributes #82652
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc 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 lintsC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
#![doc(xxx)]I expected to see this happen: Rustdoc warns that
xxxis an unknown doc attribute.Instead, this happened: Rustdoc silently ignores the attribute.
Meta
rustdoc --version: rustdoc 1.52.0-nightly (0148b97 2021-02-18)Found while working on #82651.