File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ fn _stable_fn() {}
1313fn _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
1919fn _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!
2929fn _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!
3232fn _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!
3939fn _deprecated_fn() {}
4040```
4141
You can’t perform that action at this time.
0 commit comments