We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2677eca commit 1593ce8Copy full SHA for 1593ce8
compiler/rustc_lint_defs/src/builtin.rs
@@ -3774,8 +3774,21 @@ declare_lint! {
3774
}
3775
3776
declare_lint! {
3777
- #[doc(hidden)]
3778
- /// Added for testing unsable lints; perma-unstable.
+ /// The `test_unstable_lint` lint tests unstable lints and is perma-unstable.
+ ///
3779
+ /// ### Example
3780
3781
+ /// ```
3782
+ /// #![allow(test_unstable_lint)]
3783
3784
3785
+ /// {{produces}}
3786
3787
+ /// ### Explanation
3788
3789
+ /// In order to test the behavior of unstable traits, a permanently-unstable
3790
+ /// lint is required. This lint can be used to trigger warnings and errors
3791
+ /// from the compiler related to unstable lints.
3792
pub TEST_UNSTABLE_LINT,
3793
Deny,
3794
"this unstable lint is only for testing",
0 commit comments