File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -3774,8 +3774,21 @@ declare_lint! {
37743774}
37753775
37763776declare_lint ! {
3777- #[ doc( hidden) ]
3778- /// Added for testing unsable lints; perma-unstable.
3777+ /// The `test_unstable_lint` lint tests unstable lints and is perma-unstable.
3778+ ///
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.
37793792 pub TEST_UNSTABLE_LINT ,
37803793 Deny ,
37813794 "this unstable lint is only for testing" ,
You can’t perform that action at this time.
0 commit comments