Skip to content

Tracking Issue for invalid_doc_attributes lint #82730

Description

@Manishearth

What is this lint about

The invalid_doc_attributes lint detects incorrect uses of #[doc(...)] attributes or uses of non-existent #[doc(...)] attributes. For example, #[doc(alias = 42)] will trigger this lint, since 42 is not a string. Also, #[doc(foobar)] will trigger this lint.

If you are here because of a warning about doc(primitive), see #88070 instead.


Original issue

From #82702: Currently the warning reuses the existing unknown_attributes lint, but to properly do future incompatibility we need to use the special infrastructure that exists for it.

We should also consider sticking this into the edition (see #80165), though I'm not sure if it can be automatically upgraded. This might be one of the cases where it doesn't matter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-future-incompatibilityCategory: Future-incompatibility lintsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions