diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/library-features/internal-output-capture.md (renamed from src/doc/unstable-book/src/library-features/libstd-io-internals.md) | 2 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/library-features/set-stdio.md | 5 | ||||
| -rw-r--r-- | src/test/ui/panic-while-printing.rs | 6 | ||||
| -rw-r--r-- | src/test/ui/threads-sendsync/task-stderr.rs | 4 |
4 files changed, 6 insertions, 11 deletions
diff --git a/src/doc/unstable-book/src/library-features/libstd-io-internals.md b/src/doc/unstable-book/src/library-features/internal-output-capture.md index 8bcc2769db7..7e1241fce98 100644 --- a/src/doc/unstable-book/src/library-features/libstd-io-internals.md +++ b/src/doc/unstable-book/src/library-features/internal-output-capture.md @@ -1,4 +1,4 @@ -# `libstd_io_internals` +# `internal_output_capture` This feature is internal to the Rust compiler and is not intended for general use. diff --git a/src/doc/unstable-book/src/library-features/set-stdio.md b/src/doc/unstable-book/src/library-features/set-stdio.md deleted file mode 100644 index 7dbdcdaa1a2..00000000000 --- a/src/doc/unstable-book/src/library-features/set-stdio.md +++ /dev/null @@ -1,5 +0,0 @@ -# `set_stdio` - -This feature is internal to the Rust compiler and is not intended for general use. - ------------------------- diff --git a/src/test/ui/panic-while-printing.rs b/src/test/ui/panic-while-printing.rs index fa740c5baa8..96b35e45535 100644 --- a/src/test/ui/panic-while-printing.rs +++ b/src/test/ui/panic-while-printing.rs @@ -1,11 +1,11 @@ // run-pass // ignore-emscripten no subprocess support -#![feature(set_stdio)] +#![feature(internal_output_capture)] use std::fmt; use std::fmt::{Display, Formatter}; -use std::io::set_panic; +use std::io::set_output_capture; use std::sync::{Arc, Mutex}; pub struct A; @@ -17,7 +17,7 @@ impl Display for A { } fn main() { - set_panic(Some(Arc::new(Mutex::new(Vec::new())))); + set_output_capture(Some(Arc::new(Mutex::new(Vec::new())))); assert!(std::panic::catch_unwind(|| { eprintln!("{}", A); }) diff --git a/src/test/ui/threads-sendsync/task-stderr.rs b/src/test/ui/threads-sendsync/task-stderr.rs index 8bd78158b54..78145e337da 100644 --- a/src/test/ui/threads-sendsync/task-stderr.rs +++ b/src/test/ui/threads-sendsync/task-stderr.rs @@ -1,7 +1,7 @@ // run-pass // ignore-emscripten no threads support -#![feature(set_stdio)] +#![feature(internal_output_capture)] use std::io; use std::str; @@ -13,7 +13,7 @@ fn main() { let res = thread::Builder::new().spawn({ let data = data.clone(); move || { - io::set_panic(Some(data)); + io::set_output_capture(Some(data)); panic!("Hello, world!") } }).unwrap().join(); |
