diff --git a/src/libsync/atomic.rs b/src/libsync/atomic.rs index 31b993d8bab4..301d444b1b15 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 44dd63cbf6c0..587827d2bc57 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 \