@@ -6,7 +6,7 @@ use std::ops::Not;
66use anyhow:: { anyhow, bail, Context , Result } ;
77use path_macro:: path;
88use walkdir:: WalkDir ;
9- use xshell:: cmd;
9+ use xshell:: { cmd, Shell } ;
1010
1111use crate :: util:: * ;
1212use crate :: Command ;
@@ -91,7 +91,7 @@ impl Command {
9191 // Make sure rustup-toolchain-install-master is installed.
9292 which:: which ( "rustup-toolchain-install-master" )
9393 . context ( "Please install rustup-toolchain-install-master by running 'cargo install rustup-toolchain-install-master'" ) ?;
94- let sh = shell ( ) ?;
94+ let sh = Shell :: new ( ) ?;
9595 sh. change_dir ( miri_dir ( ) ?) ;
9696 let new_commit = Some ( sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ) ;
9797 let current_commit = {
@@ -130,7 +130,7 @@ impl Command {
130130 }
131131
132132 fn rustc_pull ( commit : Option < String > ) -> Result < ( ) > {
133- let sh = shell ( ) ?;
133+ let sh = Shell :: new ( ) ?;
134134 sh. change_dir ( miri_dir ( ) ?) ;
135135 let commit = commit. map ( Result :: Ok ) . unwrap_or_else ( || {
136136 let rust_repo_head =
@@ -177,7 +177,7 @@ impl Command {
177177 }
178178
179179 fn rustc_push ( github_user : String , branch : String ) -> Result < ( ) > {
180- let sh = shell ( ) ?;
180+ let sh = Shell :: new ( ) ?;
181181 sh. change_dir ( miri_dir ( ) ?) ;
182182 let base = sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ;
183183 // Make sure the repo is clean.
@@ -265,7 +265,7 @@ impl Command {
265265 let Some ( ( command_name, trailing_args) ) = command. split_first ( ) else {
266266 bail ! ( "expected many-seeds command to be non-empty" ) ;
267267 } ;
268- let sh = shell ( ) ?;
268+ let sh = Shell :: new ( ) ?;
269269 for seed in seed_start..seed_end {
270270 println ! ( "Trying seed: {seed}" ) ;
271271 let mut miriflags = env:: var_os ( "MIRIFLAGS" ) . unwrap_or_default ( ) ;
@@ -293,7 +293,7 @@ impl Command {
293293 // Make sure we have an up-to-date Miri installed and selected the right toolchain.
294294 Self :: install ( vec ! [ ] ) ?;
295295
296- let sh = shell ( ) ?;
296+ let sh = Shell :: new ( ) ?;
297297 sh. change_dir ( miri_dir ( ) ?) ;
298298 let benches_dir = "bench-cargo-miri" ;
299299 let benches = if benches. is_empty ( ) {
0 commit comments