diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-11-04 00:11:14 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-11-10 21:58:13 +0100 |
| commit | aff7bd66e8b97a41d34c221007e12e4bbe535322 (patch) | |
| tree | 546732fa39141338be1e546634a3815f50272d4a /src/test/ui/threads-sendsync/task-stderr.rs | |
| parent | 08b7cb79e0d76aab4d3a68335595c07b238c17b8 (diff) | |
| download | rust-aff7bd66e8b97a41d34c221007e12e4bbe535322.tar.gz rust-aff7bd66e8b97a41d34c221007e12e4bbe535322.zip | |
Merge set_panic and set_print into set_output_capture.
There were no use cases for setting them separately. Merging them simplifies some things.
Diffstat (limited to 'src/test/ui/threads-sendsync/task-stderr.rs')
| -rw-r--r-- | src/test/ui/threads-sendsync/task-stderr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
