-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCL-deprecatedLint: deprecatedLint: deprecatedT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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.
bluss and lolbinarycat
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCL-deprecatedLint: deprecatedLint: deprecatedT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.