Skip to content

Commit

Permalink
Auto merge of #6307 - alexcrichton:upgrade-crossbeam-utils, r=alexcri…
Browse files Browse the repository at this point in the history
…chton

Upgrade crossbeam-utils to 0.6.0
  • Loading branch information
bors committed Nov 13, 2018
2 parents e48153e + 5e71ad6 commit 438c55d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ path = "src/cargo/lib.rs"
atty = "0.2"
bytesize = "1.0"
crates-io = { path = "src/crates-io", version = "0.21" }
crossbeam-utils = "0.5"
crossbeam-utils = "0.6"
crypto-hash = "0.3.1"
curl = { version = "0.4.19", features = ['http2'] }
curl-sys = "0.4.15"
Expand Down
6 changes: 4 additions & 2 deletions src/cargo/core/compiler/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ impl<'a> JobQueue<'a> {
srv.start(move |msg| drop(tx2.send(Message::FixDiagnostic(msg))))
});

crossbeam_utils::thread::scope(|scope| self.drain_the_queue(cx, plan, scope, &helper))
crossbeam_utils::thread::scope(|scope| {
self.drain_the_queue(cx, plan, scope, &helper)
}).expect("child threads should't panic")
}

fn drain_the_queue(
Expand Down Expand Up @@ -409,7 +411,7 @@ impl<'a> JobQueue<'a> {
match fresh {
Freshness::Fresh => doit(),
Freshness::Dirty => {
scope.spawn(doit);
scope.spawn(move |_| doit());
}
}

Expand Down

0 comments on commit 438c55d

Please sign in to comment.