File tree 1 file changed +5
-5
lines changed
compiler/rustc_error_codes/src/error_codes
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ fn _stable_fn() {}
13
13
fn _stable_const_fn() {}
14
14
15
15
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
16
- #[rustc_deprecated( // invalid
16
+ #[rustc_deprecated(
17
17
reason = "explanation for deprecation"
18
- )]
18
+ )] // invalid
19
19
fn _deprecated_fn() {}
20
20
```
21
21
@@ -25,17 +25,17 @@ To fix the issue you need to provide the `since` field.
25
25
#![feature(staged_api)]
26
26
#![stable(since = "1.0.0", feature = "test")]
27
27
28
- #[stable(feature = "_stable_fn", since = "1.0.0")]
28
+ #[stable(feature = "_stable_fn", since = "1.0.0")] // ok!
29
29
fn _stable_fn() {}
30
30
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!
32
32
fn _stable_const_fn() {}
33
33
34
34
#[stable(feature = "_deprecated_fn", since = "0.1.0")]
35
35
#[rustc_deprecated(
36
36
since = "1.0.0",
37
37
reason = "explanation for deprecation"
38
- )]
38
+ )] // ok!
39
39
fn _deprecated_fn() {}
40
40
```
41
41
You can’t perform that action at this time.
0 commit comments