We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ed2817 + 4c79626 commit 77a0156Copy full SHA for 77a0156
collector/src/benchmark/mod.rs
@@ -253,18 +253,15 @@ impl Benchmark {
253
for (profile, prep_dir) in &profile_dirs {
254
let server = server.clone();
255
s.spawn::<_, anyhow::Result<()>>(move |_| {
256
- // Panic the thread if an error occurs to make sure that the whole scope will
257
- // also panic if there was some error.
258
self.mk_cargo_process(compiler, prep_dir.path(), *profile)
259
.jobserver(server)
260
- .run_rustc(false)
261
- .unwrap();
+ .run_rustc(false)?;
262
Ok(())
263
});
264
}
265
266
})
267
- .expect("Preparation has failed")?;
+ .unwrap()?;
268
269
for (profile, prep_dir) in profile_dirs {
270
eprintln!("Running {}: {:?} + {:?}", self.name, profile, scenarios);
0 commit comments