about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-02 02:40:07 +0000
committerbors <bors@rust-lang.org>2016-03-02 02:40:07 +0000
commit0400d929e8626192ba97b4ec12e52aabc8b476d5 (patch)
tree1d76a2732d288f0076f65b618e3ce17c9411e340 /src/libstd
parent339a409bfdb6c1e9b280388b5d8d9e898217840f (diff)
parentb515bb3b6b6c50539f81bd6e3a1c3c9d92f43e40 (diff)
downloadrust-0400d929e8626192ba97b4ec12e52aabc8b476d5.tar.gz
rust-0400d929e8626192ba97b4ec12e52aabc8b476d5.zip
Auto merge of #32001 - Manishearth:rollup, r=Manishearth
- Successful merges: #31919, #31982, #31985, #31989, #31999
- Failed merges:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/build.rs2
-rw-r--r--src/libstd/sync/mpsc/mod.rs6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs
index 8fb49a1be4e..a1144a964fd 100644
--- a/src/libstd/build.rs
+++ b/src/libstd/build.rs
@@ -23,7 +23,7 @@ fn main() {
 
     let target = env::var("TARGET").unwrap();
     let host = env::var("HOST").unwrap();
-    if !target.contains("apple") && !target.contains("msvc") {
+    if !target.contains("apple") && !target.contains("msvc") && !target.contains("emscripten"){
         build_libbacktrace(&host, &target);
     }
 
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs
index fadca390986..dbcc2bc95bc 100644
--- a/src/libstd/sync/mpsc/mod.rs
+++ b/src/libstd/sync/mpsc/mod.rs
@@ -299,6 +299,9 @@ pub struct Receiver<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 unsafe impl<T: Send> Send for Receiver<T> { }
 
+#[stable(feature = "rust1", since = "1.0.0")]
+impl<T> !Sync for Receiver<T> { }
+
 /// An iterator over messages on a receiver, this iterator will block
 /// whenever `next` is called, waiting for a new message, and `None` will be
 /// returned when the corresponding channel has hung up.
@@ -327,6 +330,9 @@ pub struct Sender<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 unsafe impl<T: Send> Send for Sender<T> { }
 
+#[stable(feature = "rust1", since = "1.0.0")]
+impl<T> !Sync for Sender<T> { }
+
 /// The sending-half of Rust's synchronous channel type. This half can only be
 /// owned by one thread, but it can be cloned to send to other threads.
 #[stable(feature = "rust1", since = "1.0.0")]