diff options
| author | Aditya-PS-05 <adityapratapsjnhh7654@gmail.com> | 2025-01-12 19:31:05 +0530 |
|---|---|---|
| committer | Aditya-PS-05 <adityapratapsjnhh7654@gmail.com> | 2025-01-12 19:31:05 +0530 |
| commit | 562107760d6fdbe77bbcb8e1b251ef54e2bb9c7d (patch) | |
| tree | 63b1e5232de362a2a03697dacd729fc3b3c0d313 | |
| parent | 12445e0b2c532e389b8293924ed7c2b6fad5238f (diff) | |
| download | rust-562107760d6fdbe77bbcb8e1b251ef54e2bb9c7d.tar.gz rust-562107760d6fdbe77bbcb8e1b251ef54e2bb9c7d.zip | |
Update unstable lint docs to include required feature attributes
| -rw-r--r-- | compiler/rustc_lint/src/unqualified_local_imports.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/unqualified_local_imports.rs b/compiler/rustc_lint/src/unqualified_local_imports.rs index c9dd6b32d88..b27398a950c 100644 --- a/compiler/rustc_lint/src/unqualified_local_imports.rs +++ b/compiler/rustc_lint/src/unqualified_local_imports.rs @@ -12,6 +12,7 @@ declare_lint! { /// ### Example /// /// ```rust,edition2018 + /// #![feature(unqualified_local_imports)] /// #![warn(unqualified_local_imports)] /// /// mod localmod { diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 8399f4c12f4..8fbafe9c883 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2671,6 +2671,7 @@ declare_lint! { /// ### Example /// /// ```rust + /// #![feature(strict_provenance_lints)] /// #![warn(fuzzy_provenance_casts)] /// /// fn main() { @@ -2714,6 +2715,7 @@ declare_lint! { /// ### Example /// /// ```rust + /// #![feature(strict_provenance_lints)] /// #![warn(lossy_provenance_casts)] /// /// fn main() { @@ -4033,6 +4035,7 @@ declare_lint! { /// ### Example /// /// ```rust + /// #![feature(test_unstable_lint)] /// #![allow(test_unstable_lint)] /// ``` /// |
