Skip to content

Commit 5621077

Browse files
committed
Update unstable lint docs to include required feature attributes
1 parent 12445e0 commit 5621077

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_lint/src/unqualified_local_imports.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare_lint! {
1212
/// ### Example
1313
///
1414
/// ```rust,edition2018
15+
/// #![feature(unqualified_local_imports)]
1516
/// #![warn(unqualified_local_imports)]
1617
///
1718
/// mod localmod {

compiler/rustc_lint_defs/src/builtin.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,7 @@ declare_lint! {
26712671
/// ### Example
26722672
///
26732673
/// ```rust
2674+
/// #![feature(strict_provenance_lints)]
26742675
/// #![warn(fuzzy_provenance_casts)]
26752676
///
26762677
/// fn main() {
@@ -2714,6 +2715,7 @@ declare_lint! {
27142715
/// ### Example
27152716
///
27162717
/// ```rust
2718+
/// #![feature(strict_provenance_lints)]
27172719
/// #![warn(lossy_provenance_casts)]
27182720
///
27192721
/// fn main() {
@@ -4033,6 +4035,7 @@ declare_lint! {
40334035
/// ### Example
40344036
///
40354037
/// ```rust
4038+
/// #![feature(test_unstable_lint)]
40364039
/// #![allow(test_unstable_lint)]
40374040
/// ```
40384041
///

0 commit comments

Comments
 (0)