Closed
Description
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Idea