From dc61e112da30bb9410c69c5351e1604da69f147a Mon Sep 17 00:00:00 2001 From: jiangying Date: Mon, 26 Sep 2022 15:26:19 +0800 Subject: [PATCH 1/2] Update mod.rs --- src/cargo/core/compiler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/mod.rs b/src/cargo/core/compiler/mod.rs index dac2c0b4d..affd415e3 100644 --- a/src/cargo/core/compiler/mod.rs +++ b/src/cargo/core/compiler/mod.rs @@ -1008,7 +1008,7 @@ fn build_base_args( .env("RUSTC_BOOTSTRAP", "1"); } - // Add `CARGO_BIN_` environment variables for building tests. + // Add `CARGO_BIN_EXE_` environment variables for building tests. if unit.target.is_test() || unit.target.is_bench() { for bin_target in unit .pkg From 260620e755294c167371087cdc8b0b81947c4005 Mon Sep 17 00:00:00 2001 From: jiangying Date: Mon, 26 Sep 2022 15:28:16 +0800 Subject: [PATCH 2/2] Update test.rs --- tests/testsuite/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/test.rs b/tests/testsuite/test.rs index eec479960..495b157cd 100644 --- a/tests/testsuite/test.rs +++ b/tests/testsuite/test.rs @@ -4415,7 +4415,7 @@ fn panic_abort_test_profile_inherits() { #[cargo_test] fn bin_env_for_test() { - // Test for the `CARGO_BIN_` environment variables for tests. + // Test for the `CARGO_BIN_EXE_` environment variables for tests. // // Note: The Unicode binary uses a `[[bin]]` definition because different // filesystems normalize utf-8 in different ways. For example, HFS uses