about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src
diff options
context:
space:
mode:
authorRyan Levick <me@ryanlevick.com>2021-04-13 16:55:54 +0200
committerRyan Levick <me@ryanlevick.com>2021-04-13 16:55:54 +0200
commitaa4457fa5fd1151a7f7a674373c2f4c0df9a3df4 (patch)
tree14e39ea9aa2232ac831d87c968e6e7e084cb98cf /compiler/rustc_error_codes/src
parentcebc520034d1225c30b92e91834ac15b91cf779c (diff)
downloadrust-aa4457fa5fd1151a7f7a674373c2f4c0df9a3df4.tar.gz
rust-aa4457fa5fd1151a7f7a674373c2f4c0df9a3df4.zip
Add compatibility info to lints
Diffstat (limited to 'compiler/rustc_error_codes/src')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0782.md2
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0783.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0782.md b/compiler/rustc_error_codes/src/error_codes/E0782.md
index 5eddd7ae8d5..0f3253c050e 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0782.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0782.md
@@ -18,7 +18,7 @@ simply a heap allocated type called `Foo`.
 
 To fix this issue, add `dyn` before the trait name.
 
-```
+```edition2021
 trait Foo {}
 fn test(arg: Box<dyn Foo>) {} // ok!
 ```
diff --git a/compiler/rustc_error_codes/src/error_codes/E0783.md b/compiler/rustc_error_codes/src/error_codes/E0783.md
index ee784be35ef..73981e59e0d 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0783.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0783.md
@@ -14,7 +14,7 @@ ranges which are now signified using `..=`.
 
 To make this code compile replace the `...` with `..=`.
 
-```
+```edition2021
 match 2u8 {
     0..=9 => println!("Got a number less than 10"), // ok!
     _ => println!("Got a number 10 or more"),