Skip to content

Commit 77a0156

Browse files
Merge pull request #1557 from Mark-Simulacrum/revert-panic
Revert "Report errors during crate preparation in collector"
2 parents 7ed2817 + 4c79626 commit 77a0156

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

collector/src/benchmark/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,15 @@ impl Benchmark {
253253
for (profile, prep_dir) in &profile_dirs {
254254
let server = server.clone();
255255
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.
258256
self.mk_cargo_process(compiler, prep_dir.path(), *profile)
259257
.jobserver(server)
260-
.run_rustc(false)
261-
.unwrap();
258+
.run_rustc(false)?;
262259
Ok(())
263260
});
264261
}
265262
Ok(())
266263
})
267-
.expect("Preparation has failed")?;
264+
.unwrap()?;
268265

269266
for (profile, prep_dir) in profile_dirs {
270267
eprintln!("Running {}: {:?} + {:?}", self.name, profile, scenarios);

0 commit comments

Comments
 (0)