diff --git a/src/cargo/ops/resolve.rs b/src/cargo/ops/resolve.rs index f2c38b06ede..abda63d712b 100644 --- a/src/cargo/ops/resolve.rs +++ b/src/cargo/ops/resolve.rs @@ -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.]`:", )?; for id in ids.iter() { diff --git a/tests/testsuite/patch.rs b/tests/testsuite/patch.rs index ca10815b330..5765b1fed1c 100644 --- a/tests/testsuite/patch.rs +++ b/tests/testsuite/patch.rs @@ -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.]`: crates-io [WARNING] Patch `bar v0.3.0 ([CWD]/baz)` was not used in the crate graph. @@ -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.]`: [CWD]/bar [FINISHED] [..]", @@ -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.]`: [CWD]/bar [FINISHED] [..]",