Skip to content

Commit 80f6922

Browse files
committed
Auto merge of #5790 - dwijnand:dependabot/cargo/crossbeam-0.4, r=alexcrichton
Upgrade to crossbeam 0.4 Supersedes #5789
2 parents 2cd36b4 + 8ea90e9 commit 80f6922

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ path = "src/cargo/lib.rs"
1919
[dependencies]
2020
atty = "0.2"
2121
crates-io = { path = "src/crates-io", version = "0.18" }
22-
crossbeam = "0.3"
22+
crossbeam-utils = "0.4"
2323
crypto-hash = "0.3.1"
2424
curl = "0.4.13"
2525
env_logger = "0.5.4"

src/cargo/core/compiler/job_queue.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use std::mem;
66
use std::sync::mpsc::{channel, Receiver, Sender};
77
use std::sync::Arc;
88

9-
use crossbeam::{self, Scope};
9+
use crossbeam_utils;
10+
use crossbeam_utils::scoped::Scope;
1011
use jobserver::{Acquired, HelperThread};
1112

1213
use core::profiles::Profile;
@@ -165,7 +166,7 @@ impl<'a> JobQueue<'a> {
165166
srv.start(move |msg| drop(tx2.send(Message::FixDiagnostic(msg))))
166167
});
167168

168-
crossbeam::scope(|scope| self.drain_the_queue(cx, plan, scope, &helper))
169+
crossbeam_utils::scoped::scope(|scope| self.drain_the_queue(cx, plan, scope, &helper))
169170
}
170171

171172
fn drain_the_queue(

src/cargo/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern crate clap;
1515
#[cfg(target_os = "macos")]
1616
extern crate core_foundation;
1717
extern crate crates_io as registry;
18-
extern crate crossbeam;
18+
extern crate crossbeam_utils;
1919
extern crate curl;
2020
#[macro_use]
2121
extern crate failure;

0 commit comments

Comments
 (0)