Skip to content

Commit

Permalink
Auto merge of #10933 - LPardue:cargo-patch-misspell-grammar, r=ehuss
Browse files Browse the repository at this point in the history
Grammar fixup unused patch message

This is a minor grammar fixup to to message printed when patch source URLs mismatch (introduced in #10130).
  • Loading branch information
bors committed Aug 3, 2022
2 parents 5514f1e + 02e606d commit 9803862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cargo/ops/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ fn emit_warnings_of_unused_patches(
writeln!(msg, "Patch `{}` {}", unused, MESSAGE)?;
write!(
msg,
"Perhaps you misspell the source URL being patched.\n\
"Perhaps you misspelled the source URL being patched.\n\
Possible URLs for `[patch.<URL>]`:",
)?;
for id in ids.iter() {
Expand Down
6 changes: 3 additions & 3 deletions tests/testsuite/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ fn unused_with_mismatch_source_being_patched() {
"\
[UPDATING] `dummy-registry` index
[WARNING] Patch `bar v0.2.0 ([CWD]/bar)` was not used in the crate graph.
Perhaps you misspell the source URL being patched.
Perhaps you misspelled the source URL being patched.
Possible URLs for `[patch.<URL>]`:
crates-io
[WARNING] Patch `bar v0.3.0 ([CWD]/baz)` was not used in the crate graph.
Expand Down Expand Up @@ -1769,7 +1769,7 @@ fn two_semver_compatible() {
.with_stderr(
"\
warning: Patch `bar v0.1.1 [..]` was not used in the crate graph.
Perhaps you misspell the source URL being patched.
Perhaps you misspelled the source URL being patched.
Possible URLs for `[patch.<URL>]`:
[CWD]/bar
[FINISHED] [..]",
Expand Down Expand Up @@ -1823,7 +1823,7 @@ fn multipatch_select_big() {
.with_stderr(
"\
warning: Patch `bar v0.1.0 [..]` was not used in the crate graph.
Perhaps you misspell the source URL being patched.
Perhaps you misspelled the source URL being patched.
Possible URLs for `[patch.<URL>]`:
[CWD]/bar
[FINISHED] [..]",
Expand Down

0 comments on commit 9803862

Please sign in to comment.