@@ -64,7 +64,7 @@ async fn rustc_with_bad_rustup_toolchain_env_var() {
64
64
. expect_with_env ( [ "rustc" ] , [ ( "RUSTUP_TOOLCHAIN" , "bogus" ) ] )
65
65
. await
66
66
. with_stderr ( snapbox:: str![ [ r#"
67
- error: override toolchain 'bogus' is not installed[..]
67
+ error:[..] toolchain 'bogus' is not installed[..]
68
68
69
69
"# ] ] )
70
70
. is_err ( ) ;
@@ -1381,7 +1381,10 @@ async fn which_asking_uninstalled_toolchain() {
1381
1381
"# ] ] )
1382
1382
. is_ok ( ) ;
1383
1383
cx. config
1384
- . expect ( [ "rustup" , "which" , "--toolchain=nightly" , "rustc" ] )
1384
+ . expect_with_env (
1385
+ [ "rustup" , "which" , "--toolchain=nightly" , "rustc" ] ,
1386
+ [ ( "RUSTUP_AUTO_INSTALL" , "1" ) ] ,
1387
+ )
1385
1388
. await
1386
1389
. with_stdout ( snapbox:: str![ [ r#"
1387
1390
[..]/toolchains/nightly-[HOST_TRIPLE]/bin/rustc[EXE]
@@ -1512,7 +1515,7 @@ active because: overridden by +toolchain on the command line
1512
1515
. expect ( [ "rustup" , "+foo" , "which" , "rustc" ] )
1513
1516
. await
1514
1517
. with_stderr ( snapbox:: str![ [ r#"
1515
- error: override toolchain 'foo' is not installed: the +toolchain on the command line specifies an uninstalled toolchain
1518
+ error:[..] toolchain 'foo' is not installed[..]
1516
1519
1517
1520
"# ] ] )
1518
1521
. is_err ( ) ;
@@ -1753,11 +1756,7 @@ async fn warn_auto_install() {
1753
1756
cx. config
1754
1757
. expect_with_env (
1755
1758
[ "rustc" , "--version" ] ,
1756
- [
1757
- ( "RUSTUP_TOOLCHAIN" , "stable" ) ,
1758
- ( "RUSTUP_AUTO_INSTALL" , "1" ) ,
1759
- ( "RUST_RECURSION_COUNT" , "" ) ,
1760
- ] ,
1759
+ [ ( "RUSTUP_TOOLCHAIN" , "stable" ) , ( "RUSTUP_AUTO_INSTALL" , "1" ) ] ,
1761
1760
)
1762
1761
. await
1763
1762
. with_stdout ( snapbox:: str![ [ r#"
0 commit comments