about summary refs log tree commit diff
path: root/src/libsync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-12 22:01:25 +0000
committerbors <bors@rust-lang.org>2014-08-12 22:01:25 +0000
commit51c7e20d539eaed6e765612a02fbf2865e08a1bc (patch)
tree5b1dcf1dee9cdc745b0d01c0d26295f05a97d04d /src/libsync
parent4bb4a43917bf702fb2c6a614786aa1abe6c1014c (diff)
parentd7484b86fc8936d670c168c9838e188e1bc8047a (diff)
downloadrust-51c7e20d539eaed6e765612a02fbf2865e08a1bc.tar.gz
rust-51c7e20d539eaed6e765612a02fbf2865e08a1bc.zip
auto merge of #16433 : aturon/rust/deprecated-in-crate, r=alexcrichton
Previously the stability lint considered cross-crate items only. That's appropriate for unstable and experimental levels, but not for deprecation.

In addition to changing the lint, this PR takes care of the fallout: a number of deprecated items that were being used throughout libstd.

Closes #16409

Due to deny(deprecated), this is a:

[breaking-change]
Diffstat (limited to 'src/libsync')
-rw-r--r--src/libsync/atomic.rs2
-rw-r--r--src/libsync/comm/duplex.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libsync/atomic.rs b/src/libsync/atomic.rs
index 31b993d8bab..301d444b1b1 100644
--- a/src/libsync/atomic.rs
+++ b/src/libsync/atomic.rs
@@ -101,6 +101,8 @@
 //! }
 //! ```
 
+#![allow(deprecated)]
+
 use core::prelude::*;
 
 use alloc::boxed::Box;
diff --git a/src/libsync/comm/duplex.rs b/src/libsync/comm/duplex.rs
index 44dd63cbf6c..587827d2bc5 100644
--- a/src/libsync/comm/duplex.rs
+++ b/src/libsync/comm/duplex.rs
@@ -15,6 +15,7 @@ Higher level communication abstractions.
 */
 
 #![allow(missing_doc)]
+#![allow(deprecated)]
 #![deprecated = "This type is replaced by having a pair of channels. This type \
                  is not fully composable with other channels in terms of \
                  or possible semantics on a duplex stream. It will be removed \