diff options
| author | Eric Huss <eric@huss.org> | 2025-04-26 14:08:58 -0700 | 
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-04-26 14:08:58 -0700 | 
| commit | 1f108fe08a906b49026cd0aa324b3f9381c052c1 (patch) | |
| tree | 8555e7d9bf29466842c36ceb52262d8d2d8e2698 /compiler/rustc_lint/src/builtin.rs | |
| parent | 8608a3f637871c157b030f5661231f8261ca9797 (diff) | |
| download | rust-1f108fe08a906b49026cd0aa324b3f9381c052c1.tar.gz rust-1f108fe08a906b49026cd0aa324b3f9381c052c1.zip  | |
Update lint-docs to default to Rust 2024
This updates the lint-docs tool to default to the 2024 edition. The lint docs are supposed to illustrate the code with the latest edition, and I just forgot to update this in https://github.com/rust-lang/rust/pull/133349. Some docs needed to add the `edition` attribute since they were assuming a particular edition, but were missing the explicit annotation.
Diffstat (limited to 'compiler/rustc_lint/src/builtin.rs')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index e65f4beab24..41b43f64798 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -948,7 +948,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust,compile_fail + /// ```rust,compile_fail,edition2021 /// #[no_mangle] /// const FOO: i32 = 5; /// ```  | 
