Rollup merge of #107078 - ehuss:invalid_doc_attributes-docs, r=jackh726
Update wording of invalid_doc_attributes docs. There was a typo in the original docs for `invalid_doc_attributes`. I felt it could use a little rewording to try to clarify the reasoning for the lint. Also, this adds the future-incompatible notice.
This commit is contained in:
commit
77e78e2887
@ -3531,9 +3531,15 @@
|
||||
///
|
||||
/// ### Explanation
|
||||
///
|
||||
/// Previously, there were very like checks being performed on `#[doc(..)]`
|
||||
/// unlike the other attributes. It'll now catch all the issues that it
|
||||
/// silently ignored previously.
|
||||
/// Previously, incorrect usage of the `#[doc(..)]` attribute was not
|
||||
/// being validated. Usually these should be rejected as a hard error,
|
||||
/// but this lint was introduced to avoid breaking any existing
|
||||
/// crates which included them.
|
||||
///
|
||||
/// This is a [future-incompatible] lint to transition this to a hard
|
||||
/// error in the future. See [issue #82730] for more details.
|
||||
///
|
||||
/// [issue #82730]: https://github.com/rust-lang/rust/issues/82730
|
||||
pub INVALID_DOC_ATTRIBUTES,
|
||||
Warn,
|
||||
"detects invalid `#[doc(...)]` attributes",
|
||||
|
Loading…
Reference in New Issue
Block a user