We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b2ddd commit cc3b6cbCopy full SHA for cc3b6cb
src/cargo/ops/cargo_package.rs
@@ -824,7 +824,7 @@ fn check_repo_state(
824
// Find the intersection of dirty in git, and the src_files that would
825
// be packaged. This is a lazy n^2 check, but seems fine with
826
// thousands of files.
827
- let dirty_src_files: Vec<String> = src_files
+ let mut dirty_src_files: Vec<_> = src_files
828
.iter()
829
.filter(|src_file| dirty_files.iter().any(|path| src_file.starts_with(path)))
830
.map(|path| {
@@ -847,6 +847,7 @@ fn check_repo_state(
847
dirty,
848
}))
849
} else {
850
+ dirty_src_files.sort_unstable();
851
anyhow::bail!(
852
"{} files in the working directory contain changes that were \
853
not yet committed into git:\n\n{}\n\n\
0 commit comments