rust-lang/cargo

`cargo fix`: Automatically try applying non-MachineApplicable suggestions

Opened this issue · 0 comments

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".