Skip to content

Tracking Issue for #![feature(deprecated_suggestion)] #94785

Open
@jhpratt

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

Unresolved Questions

  • None yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCL-deprecatedLint: deprecatedT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions