Skip to content

Commit 55d3d65

Browse files
committed
fix(add): Don't talk about rustc version as if its msrv
1 parent 910f56b commit 55d3d65

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/cargo/ops/cargo_add/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ help: pass `--ignore-rust-version` to select {dep_name}@{latest_version} which r
661661
} else {
662662
anyhow::format_err!(
663663
"\
664-
no version of crate `{dep_name}` can maintain {name}'s rust-version of {req_msrv}
664+
no version of crate `{dep_name}` is compatible with rustc {req_msrv}
665665
help: pass `--ignore-rust-version` to select {dep_name}@{latest_version} which requires rustc {latest_msrv}"
666666
)
667667
}
@@ -679,7 +679,7 @@ ignoring {dependency}@{latest_version} (which requires rustc {latest_rust_versio
679679
} else {
680680
gctx.shell().warn(format_args!(
681681
"\
682-
ignoring {dependency}@{latest_version} (which requires rustc {latest_rust_version}) to maintain {name}'s rust-version of {req_msrv}",
682+
ignoring {dependency}@{latest_version} (which requires rustc {latest_rust_version}) as it is incompatible with rustc {req_msrv}",
683683
))?;
684684
}
685685

tests/testsuite/cargo_add/rustc_incompatible/stderr.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_add/rustc_latest/stderr.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_add/rustc_older/stderr.term.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)