Skip to content

Commit 1593ce8

Browse files
author
David Koloski
committed
Fill out documentation for new lint
1 parent 2677eca commit 1593ce8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+15-2
Original file line numberDiff line numberDiff line change
@@ -3774,8 +3774,21 @@ declare_lint! {
37743774
}
37753775

37763776
declare_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",

0 commit comments

Comments
 (0)