Tracking Issue for #![feature(deprecated_suggestion)]
#94785
Open
Description
opened on Mar 9, 2022
Feature gate: #![feature(deprecated_suggestion)]
This is a tracking issue for suggested replacements on deprecations. This has been used as part of the #[rustc_deprecated]
attribute since 2019-01-31. The suggestions are machine-applicable, in that cargo fix
is capable of making the replacement without further user intervention. As such, the suggestion must be valid Rust (though this is not enforced).
Public API
#![feature(deprecated_suggestion)]
struct Foo;
impl Foo {
#[deprecated(suggestion = "baz")]
fn bar() {}
fn baz() {}
}
Steps / History
- Implementation:
- for
#[rustc_deprecated]
in Add suggestions to deprecation lints #58002 (merged 2019-01-31) - for
#[deprecated]
in Merge#[deprecated]
and#[rustc_deprecated]
#94635 (merged 2022-03-10)
- for
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.
Activity