1 A `rustc_deprecated` attribute wasn't paired with a `stable`/`unstable`
4 Erroneous code example:
7 #![feature(staged_api)]
8 #![stable(since = "1.0.0", feature = "test")]
12 reason = "explanation for deprecation"
14 fn _deprecated_fn() {}
17 To fix this issue, you need to add also an attribute `stable` or `unstable`.
21 #![feature(staged_api)]
22 #![stable(since = "1.0.0", feature = "test")]
24 #[stable(since = "1.0.0", feature = "test")]
27 reason = "explanation for deprecation"
29 fn _deprecated_fn() {}
32 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix
33 of the Book and the [Stability attributes][stability-attributes] section of the
34 Rustc Dev Guide for more details.
36 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html
37 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html