fix: actually apply the warning pluralization fix
The previous commit shipped a no-op: cargo fmt had reflowed the match into multiline form, so the scripted replacement never matched and the failing e2e it introduced caught exactly that. Verified with a full cargo test this time (not a grep-masked pipeline).
This commit is contained in:
parent
98e1f4a3d3
commit
47395069cb
1 changed files with 2 additions and 6 deletions
|
|
@ -167,13 +167,9 @@ pub fn report_refs(refs: &[crate::core::refs::NonImportRef]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"warning: {} non-import reference {} may need manual fixing:",
|
"warning: {} non-import reference{} to moved files may need manual fixing:",
|
||||||
refs.len(),
|
refs.len(),
|
||||||
if refs.len() == 1 {
|
if refs.len() == 1 { "" } else { "s" }
|
||||||
"to the moved file"
|
|
||||||
} else {
|
|
||||||
"s to moved files"
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
for r in refs.iter().take(10) {
|
for r in refs.iter().take(10) {
|
||||||
eprintln!(" {}:{}", r.file, r.line);
|
eprintln!(" {}:{}", r.file, r.line);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue