Skip to content

Rustdoc should report unknown doc(...) attributes #82652

Closed
@jyn514

Description

@jyn514

I tried this code:

#![doc(xxx)]

I expected to see this happen: Rustdoc warns that xxx is 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.

Metadata

Metadata

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions