Fill out documentation for new lint

This commit is contained in:
David Koloski 2022-02-28 22:28:45 +00:00
parent 2677eca237
commit 1593ce8609

View File

@ -3774,8 +3774,21 @@
} }
declare_lint! { declare_lint! {
#[doc(hidden)] /// The `test_unstable_lint` lint tests unstable lints and is perma-unstable.
/// Added for testing unsable lints; perma-unstable. ///
/// ### Example
///
/// ```
/// #![allow(test_unstable_lint)]
/// ```
///
/// {{produces}}
///
/// ### Explanation
///
/// In order to test the behavior of unstable traits, a permanently-unstable
/// lint is required. This lint can be used to trigger warnings and errors
/// from the compiler related to unstable lints.
pub TEST_UNSTABLE_LINT, pub TEST_UNSTABLE_LINT,
Deny, Deny,
"this unstable lint is only for testing", "this unstable lint is only for testing",