From 60a26668ce91a6574b957ec3a1fbf52912563c6b Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Mon, 15 Dec 2025 16:49:49 -0700 Subject: [PATCH 1/2] test: Add default term width to tests --- crates/cargo-test-support/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/cargo-test-support/src/lib.rs b/crates/cargo-test-support/src/lib.rs index adee716923f..32bd0ab07e5 100644 --- a/crates/cargo-test-support/src/lib.rs +++ b/crates/cargo-test-support/src/lib.rs @@ -1423,6 +1423,7 @@ pub trait TestEnvCommandExt: Sized { .env("__CARGO_TEST_DISABLE_GLOBAL_KNOWN_HOST", "1") // Set retry sleep to 1 millisecond. .env("__CARGO_TEST_FIXED_RETRY_SLEEP_MS", "1") + .env("__CARGO_TEST_TTY_WIDTH_DO_NOT_USE_THIS", "140") // Incremental generates a huge amount of data per test, which we // don't particularly need. Tests that specifically need to check // the incremental behavior should turn this back on. From 3ed083194c4b7c52b87845b3a38fce05cfaaafc1 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Mon, 15 Dec 2025 16:57:44 -0700 Subject: [PATCH 2/2] test: Use a larger default term width --- crates/cargo-test-support/src/lib.rs | 2 +- tests/testsuite/lints/implicit_minimum_version_req.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cargo-test-support/src/lib.rs b/crates/cargo-test-support/src/lib.rs index 32bd0ab07e5..1a749007b78 100644 --- a/crates/cargo-test-support/src/lib.rs +++ b/crates/cargo-test-support/src/lib.rs @@ -1423,7 +1423,7 @@ pub trait TestEnvCommandExt: Sized { .env("__CARGO_TEST_DISABLE_GLOBAL_KNOWN_HOST", "1") // Set retry sleep to 1 millisecond. .env("__CARGO_TEST_FIXED_RETRY_SLEEP_MS", "1") - .env("__CARGO_TEST_TTY_WIDTH_DO_NOT_USE_THIS", "140") + .env("__CARGO_TEST_TTY_WIDTH_DO_NOT_USE_THIS", "200") // Incremental generates a huge amount of data per test, which we // don't particularly need. Tests that specifically need to check // the incremental behavior should turn this back on. diff --git a/tests/testsuite/lints/implicit_minimum_version_req.rs b/tests/testsuite/lints/implicit_minimum_version_req.rs index 2ae17921e9b..80044e20f31 100644 --- a/tests/testsuite/lints/implicit_minimum_version_req.rs +++ b/tests/testsuite/lints/implicit_minimum_version_req.rs @@ -717,8 +717,8 @@ implicit_minimum_version_req = "warn" [WARNING] dependency version requirement without an explicit minimum version --> Cargo.toml:7:[..] | -7 | [..]/bar', version = "0.1" } - | [..]^^^^^ missing full version components +7 | bar = { git = '[ROOTURL]/bar', version = "0.1" } + | [..]^^^^^ missing full version components | [HELP] consider specifying full `major.minor.patch` version components |