mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

Add error message when `cargo fix` on an empty repo ### What does this PR try to resolve? close https://github.com/rust-lang/cargo/issues/11380 Add error message when `cargo fix` on an empty repo. ### How should we test and review this PR? - [x] unit test ```sh set -eux cargo +nightly new repro cd repro echo "fn main() { let _ = 0.clone(); }" > src/main.rs cargo fix ```