Skip to content

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

Closed

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.

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    A-diagnosticsArea: Messages for errors, warnings, and lints
    C-bugCategory: This is a bug.
    on Mar 1, 2021
  2. GuillaumeGomez commented on Mar 1, 2021

    @GuillaumeGomez
    Member

    Oh funny! Gonna fix it then. :)

  3. added a commit that references this issue on Mar 1, 2021
    0c6b69a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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