Skip to content

Commit 41f773c

Browse files
committed
Remove dependency on crossbeam-utils
1 parent 9dfaa35 commit 41f773c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

collector/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ intern = { path = "../intern" }
2727
futures = "0.3.5"
2828
num_cpus = "1.13"
2929
jobserver = "0.1.21"
30-
crossbeam-utils = "0.8"
3130
snap = "1"
3231
filetime = "0.2.14"
3332
walkdir = "2"

collector/src/benchmark/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,23 +248,22 @@ impl Benchmark {
248248
// to do this in Cargo today. We would also ideally build in the same
249249
// target directory, but that's also not possible, as Cargo takes a
250250
// target-directory global lock during compilation.
251-
crossbeam_utils::thread::scope::<_, anyhow::Result<()>>(|s| {
251+
std::thread::scope::<_, anyhow::Result<()>>(|s| {
252252
let server = jobserver::Client::new(num_cpus::get()).context("jobserver::new")?;
253253
for (profile, prep_dir) in &profile_dirs {
254254
let server = server.clone();
255-
s.spawn::<_, anyhow::Result<()>>(move |_| {
255+
s.spawn::<_, anyhow::Result<()>>(move || {
256256
// Panic the thread if an error occurs to make sure that the whole scope will
257257
// also panic if there was some error.
258258
self.mk_cargo_process(compiler, prep_dir.path(), *profile)
259259
.jobserver(server)
260260
.run_rustc(false)
261-
.unwrap();
261+
.expect("Preparation failed");
262262
Ok(())
263263
});
264264
}
265265
Ok(())
266-
})
267-
.expect("Preparation has failed")?;
266+
})?;
268267

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

0 commit comments

Comments
 (0)