@@ -6,7 +6,7 @@ use std::ops::Not;
6
6
use anyhow:: { anyhow, bail, Context , Result } ;
7
7
use path_macro:: path;
8
8
use walkdir:: WalkDir ;
9
- use xshell:: cmd;
9
+ use xshell:: { cmd, Shell } ;
10
10
11
11
use crate :: util:: * ;
12
12
use crate :: Command ;
@@ -91,7 +91,7 @@ impl Command {
91
91
// Make sure rustup-toolchain-install-master is installed.
92
92
which:: which ( "rustup-toolchain-install-master" )
93
93
. context ( "Please install rustup-toolchain-install-master by running 'cargo install rustup-toolchain-install-master'" ) ?;
94
- let sh = shell ( ) ?;
94
+ let sh = Shell :: new ( ) ?;
95
95
sh. change_dir ( miri_dir ( ) ?) ;
96
96
let new_commit = Some ( sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ) ;
97
97
let current_commit = {
@@ -130,7 +130,7 @@ impl Command {
130
130
}
131
131
132
132
fn rustc_pull ( commit : Option < String > ) -> Result < ( ) > {
133
- let sh = shell ( ) ?;
133
+ let sh = Shell :: new ( ) ?;
134
134
sh. change_dir ( miri_dir ( ) ?) ;
135
135
let commit = commit. map ( Result :: Ok ) . unwrap_or_else ( || {
136
136
let rust_repo_head =
@@ -177,7 +177,7 @@ impl Command {
177
177
}
178
178
179
179
fn rustc_push ( github_user : String , branch : String ) -> Result < ( ) > {
180
- let sh = shell ( ) ?;
180
+ let sh = Shell :: new ( ) ?;
181
181
sh. change_dir ( miri_dir ( ) ?) ;
182
182
let base = sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ;
183
183
// Make sure the repo is clean.
@@ -265,7 +265,7 @@ impl Command {
265
265
let Some ( ( command_name, trailing_args) ) = command. split_first ( ) else {
266
266
bail ! ( "expected many-seeds command to be non-empty" ) ;
267
267
} ;
268
- let sh = shell ( ) ?;
268
+ let sh = Shell :: new ( ) ?;
269
269
for seed in seed_start..seed_end {
270
270
println ! ( "Trying seed: {seed}" ) ;
271
271
let mut miriflags = env:: var_os ( "MIRIFLAGS" ) . unwrap_or_default ( ) ;
@@ -293,7 +293,7 @@ impl Command {
293
293
// Make sure we have an up-to-date Miri installed and selected the right toolchain.
294
294
Self :: install ( vec ! [ ] ) ?;
295
295
296
- let sh = shell ( ) ?;
296
+ let sh = Shell :: new ( ) ?;
297
297
sh. change_dir ( miri_dir ( ) ?) ;
298
298
let benches_dir = "bench-cargo-miri" ;
299
299
let benches = if benches. is_empty ( ) {
0 commit comments