Skip to content

Commit 023c6d2

Browse files
committed
Comments updated to keep the consistency
1 parent 9be5d2d commit 023c6d2

File tree

1 file changed

+5
-5
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+5
-5
lines changed

compiler/rustc_error_codes/src/error_codes/E0542.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ fn _stable_fn() {}
1313
fn _stable_const_fn() {}
1414
1515
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
16-
#[rustc_deprecated( // invalid
16+
#[rustc_deprecated(
1717
reason = "explanation for deprecation"
18-
)]
18+
)] // invalid
1919
fn _deprecated_fn() {}
2020
```
2121

@@ -25,17 +25,17 @@ To fix the issue you need to provide the `since` field.
2525
#![feature(staged_api)]
2626
#![stable(since = "1.0.0", feature = "test")]
2727
28-
#[stable(feature = "_stable_fn", since = "1.0.0")]
28+
#[stable(feature = "_stable_fn", since = "1.0.0")] // ok!
2929
fn _stable_fn() {}
3030
31-
#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")]
31+
#[rustc_const_stable(feature = "_stable_const_fn", since = "1.0.0")] // ok!
3232
fn _stable_const_fn() {}
3333
3434
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
3535
#[rustc_deprecated(
3636
since = "1.0.0",
3737
reason = "explanation for deprecation"
38-
)]
38+
)] // ok!
3939
fn _deprecated_fn() {}
4040
```
4141

0 commit comments

Comments
 (0)