Skip to content

Commit 99aaa89

Browse files
committed
text (patch): (cr review) same wording for same error context of patch resolve
1 parent 8b8070a commit 99aaa89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/core/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ impl<'gctx> PackageRegistry<'gctx> {
491491
name,
492492
duplicate_locations.join(", ")
493493
))
494-
.context(format!("failed to resolve patches in `{}`", url));
494+
.context(format!("failed to resolve patches for `{}`", url));
495495
}
496496
}
497497

tests/testsuite/patch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ fn patch_same_version() {
18901890
.with_status(101)
18911891
.with_stderr_data(str![[r#"
18921892
[UPDATING] git repository `[ROOTURL]/override`
1893-
[ERROR] failed to resolve patches in `https://github.com/rust-lang/crates.io-index`
1893+
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
18941894
18951895
Caused by:
18961896
cannot have two `[patch]` entries which both resolve to `bar v0.1.0`.
@@ -1950,7 +1950,7 @@ fn patch_same_version_different_patch_locations() {
19501950
.with_status(101)
19511951
.with_stderr_data(str![[r#"
19521952
[UPDATING] git repository `[ROOTURL]/override`
1953-
[ERROR] failed to resolve patches in `https://github.com/rust-lang/crates.io-index`
1953+
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
19541954
19551955
Caused by:
19561956
cannot have two `[patch]` entries which both resolve to `bar v0.1.0`.

0 commit comments

Comments
 (0)