Skip to content

Support cargo fix for rename deprecations #53802

Closed
@withoutboats

Description

@withoutboats

Ideally, when a deprecation happens because of a rename, cargo fix could rename it for you.

We could make the deprecation warning issue the correct suggestion by adding another field to the rustc_deprecated attribute, as in:

#[rustc_deprecated(renamed = "std::str::str::trim_start")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions