about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-12-17 17:56:13 +0000
committerbors <bors@rust-lang.org>2019-12-17 17:56:13 +0000
commit3ed3b8bb7b100afecf7d5f52eafbb70fec27f537 (patch)
treea08ae525d2a85b7d8dbbed3a2c86f53353afa73e /src/librustc_data_structures
parent99b89533d4cdf7682ea4054ad0ee36c351d05df1 (diff)
parent5d4e59bc91374e095d9679e76551a06a151bc0b9 (diff)
downloadrust-3ed3b8bb7b100afecf7d5f52eafbb70fec27f537.tar.gz
rust-3ed3b8bb7b100afecf7d5f52eafbb70fec27f537.zip
Auto merge of #67362 - Mark-Simulacrum:par-4-default, r=alexcrichton
4 thread parallelism by default

The Session default here is super unusual but seems to both compile and do what we expect as best as I can tell.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/lib.rs1
-rw-r--r--src/librustc_data_structures/sync.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_data_structures/lib.rs b/src/librustc_data_structures/lib.rs
index fb541637e5f..02611a36aae 100644
--- a/src/librustc_data_structures/lib.rs
+++ b/src/librustc_data_structures/lib.rs
@@ -24,6 +24,7 @@
 #![feature(integer_atomics)]
 #![feature(test)]
 #![feature(associated_type_bounds)]
+#![feature(cfg_target_has_atomic)]
 
 #![cfg_attr(unix, feature(libc))]
 
diff --git a/src/librustc_data_structures/sync.rs b/src/librustc_data_structures/sync.rs
index 6a19f52897e..c4aed0628ba 100644
--- a/src/librustc_data_structures/sync.rs
+++ b/src/librustc_data_structures/sync.rs
@@ -317,7 +317,9 @@ cfg_if! {
         pub use parking_lot::MutexGuard as LockGuard;
         pub use parking_lot::MappedMutexGuard as MappedLockGuard;
 
-        pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};
+        pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32};
+        #[cfg(target_has_atomic = "64")]
+        pub use std::sync::atomic::{AtomicU64};
 
         pub use crossbeam_utils::atomic::AtomicCell;