1 The `reason` value is missing in a stability attribute.
3 Erroneous code example:
6 #![feature(staged_api)]
7 #![stable(since = "1.0.0", feature = "test")]
9 #[stable(since = "0.1.0", feature = "_deprecated_fn")]
13 fn _deprecated_fn() {}
16 To fix this issue, you need to provide the `reason` field. Example:
19 #![feature(staged_api)]
20 #![stable(since = "1.0.0", feature = "test")]
22 #[stable(since = "0.1.0", feature = "_deprecated_fn")]
25 reason = "explanation for deprecation"
27 fn _deprecated_fn() {}
30 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix
31 of the Book and the [Stability attributes][stability-attributes] section of the
32 Rustc Dev Guide for more details.
34 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html
35 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html