Fill out documentation for new lint
This commit is contained in:
parent
2677eca237
commit
1593ce8609
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user