about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2018-02-27 17:00:01 +0100
committerStjepan Glavina <stjepang@gmail.com>2018-02-28 12:41:36 +0100
commitc99f4c4c5b9f968b82037cf643b6662b140d9b1f (patch)
tree56e38b4172ad4e4899f0a29aff53e40165d23935 /src/libstd/io
parent29f5c699b11a6a148f097f82eaa05202f8799bbc (diff)
downloadrust-c99f4c4c5b9f968b82037cf643b6662b140d9b1f.tar.gz
rust-c99f4c4c5b9f968b82037cf643b6662b140d9b1f.zip
Stabilize LocalKey::try_with
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/stdio.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index 831688bb73d..f01ca18851d 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -17,7 +17,9 @@ use io::{self, Initializer, BufReader, LineWriter};
 use sync::{Arc, Mutex, MutexGuard};
 use sys::stdio;
 use sys_common::remutex::{ReentrantMutex, ReentrantMutexGuard};
-use thread::{LocalKey, LocalKeyState};
+use thread::LocalKey;
+#[allow(deprecated)]
+use thread::LocalKeyState;
 
 /// Stdout used by print! and println! macros
 thread_local! {
@@ -668,6 +670,7 @@ pub fn set_print(sink: Option<Box<Write + Send>>) -> Option<Box<Write + Send>> {
 /// thread, it will just fall back to the global stream.
 ///
 /// However, if the actual I/O causes an error, this function does panic.
+#[allow(deprecated)]
 fn print_to<T>(args: fmt::Arguments,
                local_s: &'static LocalKey<RefCell<Option<Box<Write+Send>>>>,
                global_s: fn() -> T,