about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src
diff options
context:
space:
mode:
authorJesus Rubio <jesusprubio@gmail.com>2021-02-06 19:41:03 +0100
committerJesus Rubio <jesusprubio@gmail.com>2021-02-06 19:41:03 +0100
commit023c6d2e041da85313b7190a0d10285c3632ade1 (patch)
tree8733e97c36da5afadcf9d7fc2c1b2c966f21a855 /compiler/rustc_error_codes/src
parent9be5d2d01f3600af0664279d8d8facaa2bb8bfbb (diff)
downloadrust-023c6d2e041da85313b7190a0d10285c3632ade1.tar.gz
rust-023c6d2e041da85313b7190a0d10285c3632ade1.zip
Comments updated to keep the consistency
Diffstat (limited to 'compiler/rustc_error_codes/src')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0542.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0542.md b/compiler/rustc_error_codes/src/error_codes/E0542.md
index 929b21b8b12..dbbc34a71be 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0542.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0542.md
@@ -13,9 +13,9 @@ fn _stable_fn() {}
 fn _stable_const_fn() {}
 
 #[stable(feature = "_deprecated_fn", since = "0.1.0")]
-#[rustc_deprecated( // invalid
+#[rustc_deprecated(
     reason = "explanation for deprecation"
-)]
+)] // invalid
 fn _deprecated_fn() {}
 ```
 
@@ -25,17 +25,17 @@ To fix the issue you need to provide the `since` field.
 #![feature(staged_api)]
 #![stable(since = "1.0.0", feature = "test")]
 
-#[stable(feature = "_stable_fn", since = "1.0.0")]
+#[stable(feature = "_stable_fn", since = "1.0.0")] // ok!
 fn _stable_fn() {}
 
-#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")]
+#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")] // ok!
 fn _stable_const_fn() {}
 
 #[stable(feature = "_deprecated_fn", since = "0.1.0")]
 #[rustc_deprecated(
     since = "1.0.0",
     reason = "explanation for deprecation"
-)]
+)] // ok!
 fn _deprecated_fn() {}
 ```