Skip to content

Commit fc790e7

Browse files
committed
Auto merge of #12781 - dvdhrm:pr/target-typo, r=epage
cargo/targets: fix error-message typo Fix typo: "with with" -> "with"
2 parents cacebf8 + 4aa1a95 commit fc790e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/util/toml/targets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn clean_bins(
309309
if restricted_names::is_conflicting_artifact_name(&name) {
310310
anyhow::bail!(
311311
"the binary target name `{}` is forbidden, \
312-
it conflicts with with cargo's build directory names",
312+
it conflicts with cargo's build directory names",
313313
name
314314
)
315315
}

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ fn cargo_compile_with_forbidden_bin_target_name() {
488488
[ERROR] failed to parse manifest at `[..]`
489489
490490
Caused by:
491-
the binary target name `build` is forbidden, it conflicts with with cargo's build directory names
491+
the binary target name `build` is forbidden, it conflicts with cargo's build directory names
492492
",
493493
)
494494
.run();

0 commit comments

Comments
 (0)