Skip to content

cargo fix: Automatically try applying non-MachineApplicable suggestions #13023

Open
@estebank

Description

@estebank

In the same spirit as the following environment variable

let fix_mode = env::var_os("__CARGO_FIX_YOLO")

cargo fix could try first applying all suggestions and if it fails applying only the MachineApplicable ones. This could be problematic depending on the codebase size due to compilation times, but may be it could be worked around by keeping rustc statistics of prior runs and only do this if compile times are short "enough".

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-fixS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions