@@ -64,7 +64,7 @@ async fn rustc_with_bad_rustup_toolchain_env_var() {
6464        . expect_with_env ( [ "rustc" ] ,  [ ( "RUSTUP_TOOLCHAIN" ,  "bogus" ) ] ) 
6565        . await 
6666        . with_stderr ( snapbox:: str![ [ r#" 
67- error: override  toolchain 'bogus' is not installed[..] 
67+ error:[..]  toolchain 'bogus' is not installed[..] 
6868
6969"# ] ] ) 
7070        . is_err ( ) ; 
@@ -1381,7 +1381,10 @@ async fn which_asking_uninstalled_toolchain() {
13811381"# ] ] ) 
13821382        . is_ok ( ) ; 
13831383    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+         ) 
13851388        . await 
13861389        . with_stdout ( snapbox:: str![ [ r#" 
13871390[..]/toolchains/nightly-[HOST_TRIPLE]/bin/rustc[EXE] 
@@ -1512,7 +1515,7 @@ active because: overridden by +toolchain on the command line
15121515        . expect ( [ "rustup" ,  "+foo" ,  "which" ,  "rustc" ] ) 
15131516        . await 
15141517        . 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[..]  
15161519
15171520"# ] ] ) 
15181521        . is_err ( ) ; 
@@ -1753,11 +1756,7 @@ async fn warn_auto_install() {
17531756    cx. config 
17541757        . expect_with_env ( 
17551758            [ "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" ) ] , 
17611760        ) 
17621761        . await 
17631762        . with_stdout ( snapbox:: str![ [ r#" 
0 commit comments