about summary refs log tree commit diff
path: root/compiler/rustc_lint_defs/src
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2024-05-24 23:58:00 -0300
committerSantiago Pastorino <spastorino@gmail.com>2024-05-24 23:58:27 -0300
commit41d4a95fcaa49560a8b6cd2048ed5ef4bfdfa7c1 (patch)
tree9a729fcb514d8dd87a18742cd4e87542dee74a8f /compiler/rustc_lint_defs/src
parent698293518de49ac79eb7874e97557f8e2eabda06 (diff)
downloadrust-41d4a95fcaa49560a8b6cd2048ed5ef4bfdfa7c1.tar.gz
rust-41d4a95fcaa49560a8b6cd2048ed5ef4bfdfa7c1.zip
Add "better" edition handling on lint-docs tool
Diffstat (limited to 'compiler/rustc_lint_defs/src')
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index 53694545772..8727dcfad9a 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -3803,7 +3803,7 @@ declare_lint! {
     ///
     /// ### Example
     ///
-    /// ```rust,compile_fail
+    /// ```rust,edition2018,compile_fail
     /// #![deny(rust_2021_incompatible_or_patterns)]
     ///
     /// macro_rules! match_any {
@@ -3843,7 +3843,7 @@ declare_lint! {
     ///
     /// ### Example
     ///
-    /// ```rust,compile_fail
+    /// ```rust,edition2018,compile_fail
     /// #![deny(rust_2021_prelude_collisions)]
     ///
     /// trait Foo {