From cefde408fb5578e2ce5095969f4fc56fad97eaf3 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 30 Aug 2024 09:26:56 -0500 Subject: [PATCH] fix(resolve): Generalize term describing updates `latest` was easy. `latest compatible` was ok. But how do I talk about "latest compatible with your MSRV". That gets messy. --- src/cargo/ops/cargo_update.rs | 4 +-- .../default_features/stderr.term.svg | 2 +- .../list_features_path/stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../cargo_add/namever/stderr.term.svg | 2 +- .../no_default_features/stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../stderr.term.svg | 4 +-- .../stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../stderr.term.svg | 2 +- .../overwrite_with_rename/stderr.term.svg | 2 +- .../cargo_add/preserve_sorted/stderr.term.svg | 4 +-- .../preserve_unsorted/stderr.term.svg | 4 +-- .../rust_version_older/stderr.term.svg | 2 +- .../cargo_add/rustc_latest/stderr.term.svg | 2 +- .../cargo_add/rustc_older/stderr.term.svg | 2 +- .../stderr.term.svg | 6 ++--- .../stderr.term.svg | 2 +- tests/testsuite/cfg.rs | 2 +- tests/testsuite/collisions.rs | 2 +- tests/testsuite/direct_minimal_versions.rs | 6 ++--- tests/testsuite/directory.rs | 2 +- tests/testsuite/install.rs | 2 +- tests/testsuite/minimal_versions.rs | 2 +- tests/testsuite/patch.rs | 8 +++--- tests/testsuite/paths.rs | 2 +- tests/testsuite/registry_overlay.rs | 2 +- tests/testsuite/replace.rs | 2 +- tests/testsuite/rust_version.rs | 16 ++++++------ tests/testsuite/tree.rs | 2 +- tests/testsuite/update.rs | 26 +++++++++---------- tests/testsuite/workspaces.rs | 2 +- 36 files changed, 66 insertions(+), 66 deletions(-) diff --git a/src/cargo/ops/cargo_update.rs b/src/cargo/ops/cargo_update.rs index a12310fa6f54..89e999096ba1 100644 --- a/src/cargo/ops/cargo_update.rs +++ b/src/cargo/ops/cargo_update.rs @@ -765,7 +765,7 @@ fn report_latest(possibilities: &[IndexSummary], change: &PackageChange) -> Opti { let warn = style::WARN; let version = summary.version(); - let report = format!(" {warn}(latest compatible: v{version}){warn:#}"); + let report = format!(" {warn}(available: v{version}){warn:#}"); return Some(report); } @@ -781,7 +781,7 @@ fn report_latest(possibilities: &[IndexSummary], change: &PackageChange) -> Opti style::WARN }; let version = summary.version(); - let report = format!(" {warn}(latest: v{version}){warn:#}"); + let report = format!(" {warn}(available: v{version}){warn:#}"); return Some(report); } diff --git a/tests/testsuite/cargo_add/default_features/stderr.term.svg b/tests/testsuite/cargo_add/default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/list_features_path/stderr.term.svg b/tests/testsuite/cargo_add/list_features_path/stderr.term.svg index c2bfc437b63d..e11208264562 100644 --- a/tests/testsuite/cargo_add/list_features_path/stderr.term.svg +++ b/tests/testsuite/cargo_add/list_features_path/stderr.term.svg @@ -37,7 +37,7 @@ Locking 1 package to latest compatible version - Adding my-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding my-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/stderr.term.svg b/tests/testsuite/cargo_add/list_features_path_no_default/stderr.term.svg index 00f0c40d3e63..4e71147a29c1 100644 --- a/tests/testsuite/cargo_add/list_features_path_no_default/stderr.term.svg +++ b/tests/testsuite/cargo_add/list_features_path_no_default/stderr.term.svg @@ -37,7 +37,7 @@ Locking 1 package to latest compatible version - Adding my-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding my-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/namever/stderr.term.svg b/tests/testsuite/cargo_add/namever/stderr.term.svg index b9b7272d8260..b2faa90be48d 100644 --- a/tests/testsuite/cargo_add/namever/stderr.term.svg +++ b/tests/testsuite/cargo_add/namever/stderr.term.svg @@ -30,7 +30,7 @@ Locking 3 packages to latest compatible versions - Adding my-package2 v0.2.3+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.2.3+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/no_default_features/stderr.term.svg b/tests/testsuite/cargo_add/no_default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/no_default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/no_default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_default_features/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/overwrite_default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_no_default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/overwrite_no_default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_no_default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/stderr.term.svg index dac62f4c1663..dd0680b5e704 100644 --- a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/stderr.term.svg @@ -28,7 +28,7 @@ Locking 2 packages to latest compatible versions - Adding my-package2 v0.4.1+my-package (latest: v99999.0.0+my-package) + Adding my-package2 v0.4.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_path_with_version/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_path_with_version/stderr.term.svg index 0755e89c410d..97f168c0d65a 100644 --- a/tests/testsuite/cargo_add/overwrite_path_with_version/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_path_with_version/stderr.term.svg @@ -1,4 +1,4 @@ - + Locking 1 package to latest compatible version - Adding cargo-list-test-fixture-dependency v20.0.0+my-package (latest: v99999.0.0+my-package) + Adding cargo-list-test-fixture-dependency v20.0.0+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/stderr.term.svg index e3302b700b63..a0bf3f7f4dd6 100644 --- a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/stderr.term.svg @@ -26,7 +26,7 @@ Locking 2 packages to latest compatible versions - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_rename_with_rename/stderr.term.svg index e3302b700b63..a0bf3f7f4dd6 100644 --- a/tests/testsuite/cargo_add/overwrite_rename_with_rename/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename/stderr.term.svg @@ -26,7 +26,7 @@ Locking 2 packages to latest compatible versions - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/stderr.term.svg index 526addf300cc..021168bfb840 100644 --- a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/stderr.term.svg @@ -28,7 +28,7 @@ Locking 1 package to latest compatible version - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/overwrite_with_rename/stderr.term.svg b/tests/testsuite/cargo_add/overwrite_with_rename/stderr.term.svg index e3302b700b63..a0bf3f7f4dd6 100644 --- a/tests/testsuite/cargo_add/overwrite_with_rename/stderr.term.svg +++ b/tests/testsuite/cargo_add/overwrite_with_rename/stderr.term.svg @@ -26,7 +26,7 @@ Locking 2 packages to latest compatible versions - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/preserve_sorted/stderr.term.svg b/tests/testsuite/cargo_add/preserve_sorted/stderr.term.svg index 05dabbe02ef6..95a0398e8cad 100644 --- a/tests/testsuite/cargo_add/preserve_sorted/stderr.term.svg +++ b/tests/testsuite/cargo_add/preserve_sorted/stderr.term.svg @@ -26,9 +26,9 @@ Locking 3 packages to latest compatible versions - Adding my-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding my-package v0.1.1+my-package (available: v99999.0.0+my-package) - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/preserve_unsorted/stderr.term.svg b/tests/testsuite/cargo_add/preserve_unsorted/stderr.term.svg index 05dabbe02ef6..95a0398e8cad 100644 --- a/tests/testsuite/cargo_add/preserve_unsorted/stderr.term.svg +++ b/tests/testsuite/cargo_add/preserve_unsorted/stderr.term.svg @@ -26,9 +26,9 @@ Locking 3 packages to latest compatible versions - Adding my-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding my-package v0.1.1+my-package (available: v99999.0.0+my-package) - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_add/rust_version_older/stderr.term.svg b/tests/testsuite/cargo_add/rust_version_older/stderr.term.svg index 88ed26b72a2d..19c491f8029b 100644 --- a/tests/testsuite/cargo_add/rust_version_older/stderr.term.svg +++ b/tests/testsuite/cargo_add/rust_version_older/stderr.term.svg @@ -28,7 +28,7 @@ Locking 1 package to latest Rust 1.70 compatible version - Adding rust-version-user v0.1.0 (latest: v0.2.1) + Adding rust-version-user v0.1.0 (available: v0.2.1) diff --git a/tests/testsuite/cargo_add/rustc_latest/stderr.term.svg b/tests/testsuite/cargo_add/rustc_latest/stderr.term.svg index 2bc90ebbf6b8..849120b58322 100644 --- a/tests/testsuite/cargo_add/rustc_latest/stderr.term.svg +++ b/tests/testsuite/cargo_add/rustc_latest/stderr.term.svg @@ -28,7 +28,7 @@ Locking 1 package to latest Rust [..] compatible version - Adding rust-version-user v0.1.1 (latest: v0.2.1) + Adding rust-version-user v0.1.1 (available: v0.2.1) diff --git a/tests/testsuite/cargo_add/rustc_older/stderr.term.svg b/tests/testsuite/cargo_add/rustc_older/stderr.term.svg index 2bc90ebbf6b8..849120b58322 100644 --- a/tests/testsuite/cargo_add/rustc_older/stderr.term.svg +++ b/tests/testsuite/cargo_add/rustc_older/stderr.term.svg @@ -28,7 +28,7 @@ Locking 1 package to latest Rust [..] compatible version - Adding rust-version-user v0.1.1 (latest: v0.2.1) + Adding rust-version-user v0.1.1 (available: v0.2.1) diff --git a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/stderr.term.svg b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/stderr.term.svg index 451f56deed9f..f2f293d6cc15 100644 --- a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/stderr.term.svg +++ b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/stderr.term.svg @@ -26,11 +26,11 @@ Locking 4 packages to latest compatible versions - Adding my-build-package1 v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding my-build-package1 v0.1.1+my-package (available: v99999.0.0+my-package) - Adding toml v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding toml v0.1.1+my-package (available: v99999.0.0+my-package) - Adding versioned-package v0.1.1+my-package (latest: v99999.0.0+my-package) + Adding versioned-package v0.1.1+my-package (available: v99999.0.0+my-package) diff --git a/tests/testsuite/cargo_info/within_ws_without_lockfile/stderr.term.svg b/tests/testsuite/cargo_info/within_ws_without_lockfile/stderr.term.svg index f797e3af750f..f7ead9ed0720 100644 --- a/tests/testsuite/cargo_info/within_ws_without_lockfile/stderr.term.svg +++ b/tests/testsuite/cargo_info/within_ws_without_lockfile/stderr.term.svg @@ -24,7 +24,7 @@ Locking 1 package to latest compatible version - Adding my-package v0.2.3+my-package (latest: v0.4.1+my-package) + Adding my-package v0.2.3+my-package (available: v0.4.1+my-package) Downloading crates ... diff --git a/tests/testsuite/cfg.rs b/tests/testsuite/cfg.rs index a6a0aa24f7a5..0b71e861b583 100644 --- a/tests/testsuite/cfg.rs +++ b/tests/testsuite/cfg.rs @@ -145,7 +145,7 @@ fn ignore_version_from_other_platform() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest compatible versions -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v0.1.0 (registry `dummy-registry`) [CHECKING] bar v0.1.0 diff --git a/tests/testsuite/collisions.rs b/tests/testsuite/collisions.rs index 0d311d1edd0c..89f160f2304f 100644 --- a/tests/testsuite/collisions.rs +++ b/tests/testsuite/collisions.rs @@ -207,7 +207,7 @@ fn collision_doc_multiple_versions() { str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 3 packages to latest compatible versions -[ADDING] bar v1.0.0 (latest: v2.0.0) +[ADDING] bar v1.0.0 (available: v2.0.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v2.0.0 (registry `dummy-registry`) [DOWNLOADED] bar v1.0.0 (registry `dummy-registry`) diff --git a/tests/testsuite/direct_minimal_versions.rs b/tests/testsuite/direct_minimal_versions.rs index fb750f654d9d..ec5e5f53e7c2 100644 --- a/tests/testsuite/direct_minimal_versions.rs +++ b/tests/testsuite/direct_minimal_versions.rs @@ -33,7 +33,7 @@ fn simple() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package -[ADDING] dep v1.0.0 (latest compatible: v1.1.0) +[ADDING] dep v1.0.0 (available: v1.1.0) "#]]) .run(); @@ -122,7 +122,7 @@ fn yanked() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package -[ADDING] dep v1.1.0 (latest compatible: v1.2.0) +[ADDING] dep v1.1.0 (available: v1.2.0) "#]]) .run(); @@ -176,7 +176,7 @@ fn indirect() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages -[ADDING] direct v1.0.0 (latest compatible: v1.1.0) +[ADDING] direct v1.0.0 (available: v1.1.0) "#]]) .run(); diff --git a/tests/testsuite/directory.rs b/tests/testsuite/directory.rs index 0a030703abc0..1db19eeb655b 100644 --- a/tests/testsuite/directory.rs +++ b/tests/testsuite/directory.rs @@ -329,7 +329,7 @@ fn multiple() { p.cargo("check") .with_stderr_data(str![[r#" [LOCKING] 1 package to latest compatible version -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [CHECKING] bar v0.1.0 [CHECKING] foo v0.1.0 ([ROOT]/foo) [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s diff --git a/tests/testsuite/install.rs b/tests/testsuite/install.rs index a0487dbfd745..6d5a40c707e6 100644 --- a/tests/testsuite/install.rs +++ b/tests/testsuite/install.rs @@ -2514,7 +2514,7 @@ fn self_referential() { [DOWNLOADED] foo v0.0.2 (registry `dummy-registry`) [INSTALLING] foo v0.0.2 [LOCKING] 1 package to latest compatible version -[ADDING] foo v0.0.1 (latest: v0.0.2) +[ADDING] foo v0.0.1 (available: v0.0.2) [DOWNLOADING] crates ... [DOWNLOADED] foo v0.0.1 (registry `dummy-registry`) [COMPILING] foo v0.0.1 diff --git a/tests/testsuite/minimal_versions.rs b/tests/testsuite/minimal_versions.rs index a7fea29026b1..ef565b0f6341 100644 --- a/tests/testsuite/minimal_versions.rs +++ b/tests/testsuite/minimal_versions.rs @@ -35,7 +35,7 @@ fn minimal_version_cli() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to earliest compatible version -[ADDING] dep v1.0.0 (latest compatible: v1.1.0) +[ADDING] dep v1.0.0 (available: v1.1.0) "#]]) .run(); diff --git a/tests/testsuite/patch.rs b/tests/testsuite/patch.rs index 67e795a53765..c919e1184ec5 100644 --- a/tests/testsuite/patch.rs +++ b/tests/testsuite/patch.rs @@ -392,7 +392,7 @@ with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. [LOCKING] 1 package to latest compatible version -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v0.1.0 (registry `dummy-registry`) [CHECKING] bar v0.1.0 @@ -469,7 +469,7 @@ with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. [LOCKING] 1 package to latest compatible version -[ADDING] bar v0.1.0 (latest: v0.3.0) +[ADDING] bar v0.1.0 (available: v0.3.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v0.1.0 (registry `dummy-registry`) [CHECKING] bar v0.1.0 @@ -568,7 +568,7 @@ with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. [LOCKING] 1 package to latest compatible version -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v0.1.0 (registry `dummy-registry`) [CHECKING] bar v0.1.0 @@ -642,7 +642,7 @@ with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. [LOCKING] 1 package to latest compatible version -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [DOWNLOADING] crates ... [DOWNLOADED] bar v0.1.0 (registry `dummy-registry`) [CHECKING] bar v0.1.0 diff --git a/tests/testsuite/paths.rs b/tests/testsuite/paths.rs index 93babce7432f..f1d5f55659e1 100644 --- a/tests/testsuite/paths.rs +++ b/tests/testsuite/paths.rs @@ -60,7 +60,7 @@ fn broken_path_override_warns() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest compatible versions -[ADDING] bar v0.1.0 (latest: v0.2.0) +[ADDING] bar v0.1.0 (available: v0.2.0) [WARNING] path override for crate `a` has altered the original list of dependencies; the dependency on `bar` was either added or modified to not match the previously resolved version diff --git a/tests/testsuite/registry_overlay.rs b/tests/testsuite/registry_overlay.rs index 59252ef4b814..65acb8f7ed8d 100644 --- a/tests/testsuite/registry_overlay.rs +++ b/tests/testsuite/registry_overlay.rs @@ -252,7 +252,7 @@ fn registry_dep_depends_on_new_local_package() { "\ [UPDATING] [..] [LOCKING] 3 packages to latest compatible versions -[ADDING] workspace-package v0.0.1 (latest: v0.1.1) +[ADDING] workspace-package v0.0.1 (available: v0.1.1) [DOWNLOADING] crates ... [UNPACKING] [..] [DOWNLOADED] [..] diff --git a/tests/testsuite/replace.rs b/tests/testsuite/replace.rs index f1e88fda4bd6..e80341d93f02 100644 --- a/tests/testsuite/replace.rs +++ b/tests/testsuite/replace.rs @@ -465,7 +465,7 @@ fn use_a_spec_to_select() { [UPDATING] `dummy-registry` index [UPDATING] git repository `[ROOTURL]/override` [LOCKING] 4 packages to latest compatible versions -[ADDING] baz v0.1.1 (latest: v0.2.0) +[ADDING] baz v0.1.1 (available: v0.2.0) [DOWNLOADING] crates ... [DOWNLOADED] baz v0.1.1 (registry `dummy-registry`) [DOWNLOADED] bar v0.1.1 (registry `dummy-registry`) diff --git a/tests/testsuite/rust_version.rs b/tests/testsuite/rust_version.rs index 1129a1928e8a..a93d478addf7 100644 --- a/tests/testsuite/rust_version.rs +++ b/tests/testsuite/rust_version.rs @@ -242,7 +242,7 @@ foo v0.0.1 ([ROOT]/foo) .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.60.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.65.0) "#]]) @@ -319,7 +319,7 @@ foo v0.0.1 ([ROOT]/foo) .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.60.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.2345) "#]]) @@ -490,7 +490,7 @@ higher v0.0.1 ([ROOT]/foo) .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.50.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.65.0) "#]]) @@ -619,7 +619,7 @@ fn resolve_edition2024() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.60.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.65.0) "#]]) @@ -723,7 +723,7 @@ fn resolve_v3() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.60.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.65.0) "#]]) @@ -871,7 +871,7 @@ fn update_msrv_resolve() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to latest Rust 1.60.0 compatible version -[ADDING] bar v1.5.0 (latest compatible: v1.6.0) +[ADDING] bar v1.5.0 (available: v1.6.0) "#]]) .run(); @@ -932,7 +932,7 @@ fn update_precise_overrides_msrv_resolver() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to latest Rust 1.60.0 compatible version -[ADDING] bar v1.5.0 (latest compatible: v1.6.0) +[ADDING] bar v1.5.0 (available: v1.6.0) "#]]) .run(); @@ -1019,7 +1019,7 @@ foo v0.0.1 ([ROOT]/foo) .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 2 packages to latest Rust 1.60.0 compatible versions -[ADDING] newer-and-older v1.5.0 (latest compatible: v1.6.0) +[ADDING] newer-and-older v1.5.0 (available: v1.6.0) [ADDING] only-newer v1.6.0 (requires Rust 1.65.0) [DOWNLOADING] crates ... [DOWNLOADED] newer-and-older v1.5.0 (registry `dummy-registry`) diff --git a/tests/testsuite/tree.rs b/tests/testsuite/tree.rs index 02c63592132d..60374bb59dd6 100644 --- a/tests/testsuite/tree.rs +++ b/tests/testsuite/tree.rs @@ -1625,7 +1625,7 @@ fn ambiguous_name() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 3 packages to latest compatible versions -[ADDING] dep v1.0.0 (latest: v2.0.0) +[ADDING] dep v1.0.0 (available: v2.0.0) [DOWNLOADING] crates ... [DOWNLOADED] dep v2.0.0 (registry `dummy-registry`) [DOWNLOADED] dep v1.0.0 (registry `dummy-registry`) diff --git a/tests/testsuite/update.rs b/tests/testsuite/update.rs index 1d2c937b5961..ee5942a697c3 100644 --- a/tests/testsuite/update.rs +++ b/tests/testsuite/update.rs @@ -1522,7 +1522,7 @@ fn report_behind() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to latest compatible version -[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0) +[UPDATING] breaking v0.1.0 -> v0.1.1 (available: v0.2.0) [NOTE] pass `--verbose` to see 2 unchanged dependencies behind latest [WARNING] not updating lockfile due to dry run @@ -1533,9 +1533,9 @@ fn report_behind() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to latest compatible version -[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0) -[UNCHANGED] pre v1.0.0-alpha.0 (latest compatible: v1.0.0-alpha.1) -[UNCHANGED] two-ver v0.1.0 (latest: v0.2.0) +[UPDATING] breaking v0.1.0 -> v0.1.1 (available: v0.2.0) +[UNCHANGED] pre v1.0.0-alpha.0 (available: v1.0.0-alpha.1) +[UNCHANGED] two-ver v0.1.0 (available: v0.2.0) [NOTE] to see how you depend on a package, run `cargo tree --invert --package @` [WARNING] not updating lockfile due to dry run @@ -1558,9 +1558,9 @@ fn report_behind() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 0 packages to latest compatible versions -[UNCHANGED] breaking v0.1.1 (latest: v0.2.0) -[UNCHANGED] pre v1.0.0-alpha.0 (latest compatible: v1.0.0-alpha.1) -[UNCHANGED] two-ver v0.1.0 (latest: v0.2.0) +[UNCHANGED] breaking v0.1.1 (available: v0.2.0) +[UNCHANGED] pre v1.0.0-alpha.0 (available: v1.0.0-alpha.1) +[UNCHANGED] two-ver v0.1.0 (available: v0.2.0) [NOTE] to see how you depend on a package, run `cargo tree --invert --package @` [WARNING] not updating lockfile due to dry run @@ -2008,8 +2008,8 @@ fn update_breaking() { [LOCKING] 4 packages to latest compatible versions [UPDATING] compatible v1.0.0 -> v1.0.1 [UPDATING] less-than v1.0.0 -> v2.0.0 -[UPDATING] pinned v1.0.0 -> v1.0.1 (latest: v2.0.0) -[UPDATING] renamed-from v1.0.0 -> v1.0.1 (latest: v2.0.0) +[UPDATING] pinned v1.0.0 -> v1.0.1 (available: v2.0.0) +[UPDATING] renamed-from v1.0.0 -> v1.0.1 (available: v2.0.0) "#]]) .run(); @@ -2180,10 +2180,10 @@ fn update_breaking_specific_packages_that_wont_update() { [UPDATING] `[..]` index [LOCKING] 5 packages to latest compatible versions [UPDATING] compatible v1.0.0 -> v1.0.1 -[UPDATING] non-semver v1.0.0 -> v1.0.1 (latest: v2.0.0) -[UPDATING] renamed-from v1.0.0 -> v1.0.1 (latest: v2.0.0) +[UPDATING] non-semver v1.0.0 -> v1.0.1 (available: v2.0.0) +[UPDATING] renamed-from v1.0.0 -> v1.0.1 (available: v2.0.0) [UPDATING] transitive-compatible v1.0.0 -> v1.0.1 -[UPDATING] transitive-incompatible v1.0.0 -> v1.0.1 (latest: v2.0.0) +[UPDATING] transitive-incompatible v1.0.0 -> v1.0.1 (available: v2.0.0) "#]]) .run(); @@ -2397,7 +2397,7 @@ fn update_breaking_spec_version_transitive() { .with_stderr_data(str![[r#" [UPDATING] `[..]` index [LOCKING] 1 package to latest compatible version -[UPDATING] dep v1.1.0 -> v1.1.1 (latest: v2.0.0) +[UPDATING] dep v1.1.0 -> v1.1.1 (available: v2.0.0) "#]]) .run(); diff --git a/tests/testsuite/workspaces.rs b/tests/testsuite/workspaces.rs index b03fa0e60bb8..9e831fa394f4 100644 --- a/tests/testsuite/workspaces.rs +++ b/tests/testsuite/workspaces.rs @@ -697,7 +697,7 @@ fn share_dependencies() { .with_stderr_data(str![[r#" [UPDATING] `dummy-registry` index [LOCKING] 1 package to latest compatible version -[ADDING] dep1 v0.1.3 (latest compatible: v0.1.8) +[ADDING] dep1 v0.1.3 (available: v0.1.8) [DOWNLOADING] crates ... [DOWNLOADED] dep1 v0.1.3 (registry `dummy-registry`) [CHECKING] dep1 v0.1.3