From 02e606d7999a8847b0381dfb8e9df73f35188cd7 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 3 Aug 2022 02:22:50 +0100 Subject: [PATCH] Grammar fixup unused patch message --- src/cargo/ops/resolve.rs | 2 +- tests/testsuite/patch.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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] [..]",