@@ -178,7 +178,7 @@ impl Command {
178
178
. context ( "Please install rustup-toolchain-install-master by running 'cargo install rustup-toolchain-install-master'" ) ?;
179
179
let sh = Shell :: new ( ) ?;
180
180
sh. change_dir ( miri_dir ( ) ?) ;
181
- let new_commit = Some ( sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ) ;
181
+ let new_commit = sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ;
182
182
let current_commit = {
183
183
let rustc_info = cmd ! ( sh, "rustc +miri --version -v" ) . read ( ) ;
184
184
if rustc_info. is_err ( ) {
@@ -193,7 +193,7 @@ impl Command {
193
193
}
194
194
} ;
195
195
// Check if we already are at that commit.
196
- if current_commit == new_commit {
196
+ if current_commit. as_ref ( ) == Some ( & new_commit) {
197
197
if active_toolchain ( ) ? != "miri" {
198
198
cmd ! ( sh, "rustup override set miri" ) . run ( ) ?;
199
199
}
@@ -202,7 +202,7 @@ impl Command {
202
202
// Install and setup new toolchain.
203
203
cmd ! ( sh, "rustup toolchain uninstall miri" ) . run ( ) ?;
204
204
205
- cmd ! ( sh, "rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt -c clippy {flags...} -- {new_commit... }" ) . run ( ) ?;
205
+ cmd ! ( sh, "rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt -c clippy {flags...} -- {new_commit}" ) . run ( ) ?;
206
206
cmd ! ( sh, "rustup override set miri" ) . run ( ) ?;
207
207
// Cleanup.
208
208
cmd ! ( sh, "cargo clean" ) . run ( ) ?;
@@ -380,9 +380,9 @@ impl Command {
380
380
. env ( "MIRIFLAGS" , miriflags)
381
381
. quiet ( )
382
382
. run ( ) ;
383
- if status . is_err ( ) {
383
+ if let Err ( err ) = status {
384
384
println ! ( "Failing seed: {seed}" ) ;
385
- break ;
385
+ return Err ( err . into ( ) ) ;
386
386
}
387
387
}
388
388
Ok ( ( ) )
0 commit comments