Skip to content

Support cargo fix for rename deprecations #53802

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")]

Activity

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

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