Skip to content

Commit 33452b0

Browse files
committed
warn about deprecated-in-future in most of libstd
1 parent fe499a7 commit 33452b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
// Don't link to std. We are std.
206206
#![no_std]
207207

208-
//#![warn(deprecated_in_future)] // FIXME: std still has quite a few uses of `mem::uninitialized`
208+
#![warn(deprecated_in_future)]
209209
#![warn(missing_docs)]
210210
#![warn(missing_debug_implementations)]
211211
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings

src/libstd/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub use self::condvar::{Condvar, WaitTimeoutResult};
163163
#[stable(feature = "rust1", since = "1.0.0")]
164164
pub use self::mutex::{Mutex, MutexGuard};
165165
#[stable(feature = "rust1", since = "1.0.0")]
166-
#[allow(deprecated)]
166+
#[allow(deprecated_in_future)]
167167
pub use self::once::{Once, OnceState, ONCE_INIT};
168168
#[stable(feature = "rust1", since = "1.0.0")]
169169
pub use crate::sys_common::poison::{PoisonError, TryLockError, TryLockResult, LockResult};

src/libstd/sys/cloudabi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(deprecated)] // mem::uninitialized
1+
#![allow(deprecated_in_future)] // mem::uninitialized; becomes `deprecated` when nightly is 1.39
22

33
use crate::io::ErrorKind;
44
use crate::mem;

0 commit comments

Comments
 (0)