-A `rustc_deprecated` attribute wasn't paired with a `stable`/`unstable`
-attribute.
+A `deprecated` attribute wasn't paired with a `stable`/`unstable` attribute with
+`#![feature(staged_api)]` enabled.
Erroneous code example:
#![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
-#[rustc_deprecated(
+#[deprecated(
since = "1.0.1",
- reason = "explanation for deprecation"
+ note = "explanation for deprecation"
)] // invalid
fn _deprecated_fn() {}
```
#![stable(since = "1.0.0", feature = "test")]
#[stable(since = "1.0.0", feature = "test")]
-#[rustc_deprecated(
+#[deprecated(
since = "1.0.1",
- reason = "explanation for deprecation"
+ note = "explanation for deprecation"
)] // ok!
fn _deprecated_fn() {}
```