#95960 is set to be merged soon. It removes the #[rustc_deprecated]
attribute in its entirety. There are diagnostics to help with the transition for a little bit, but I intend on removing these diagnostics after the next bootstrap.
Just use #[deprecated]
like you would in user code. The semantics are now identical to that of #[rustc_deprecated]
— the version of Rust will be validated. The only difference that's a breaking change is renaming reason
to note
, as that's what #[deprecated]
uses. If you need to give a suggestion, you can still do this! It's gated under the new #![feature(deprecated_suggestion)]
feature, though, because it's also available for end users.
Hopefully this isn't too big of a change for people! If I've missed something, please ping me wherever (here, Zulip, or GitHub), and I'll tend to it as necessary.