mirror of
https://github.com/facebookexperimental/reverie.git
synced 2025-01-23 05:06:23 +00:00
Move set_output_capture behind the nightly feature flag
Summary: `std::io::set_output_capture()` is only available in nightly. In order to publish this crate, we can't use unstable features. Reviewed By: rrnewton Differential Revision: D41394375 fbshipit-source-id: d4b6e9310cd6d6925aa9d7b0cd5c4558d6ef7d4c
This commit is contained in:
parent
3a0494e2bc
commit
2a73bdeb1c
2 changed files with 7 additions and 1 deletions
|
@ -782,6 +782,11 @@ impl Container {
|
|||
// be able to call `println!()` and have that output go to stdout.
|
||||
//
|
||||
// See: https://github.com/rust-lang/rust/issues/35136
|
||||
//
|
||||
// Another way around this weirdness is to not use the default
|
||||
// `print!()` and `println!()` macros so that we can completely bypass
|
||||
// this output capturing.
|
||||
#[cfg(feature = "nightly")]
|
||||
let output_capture = std::io::set_output_capture(None);
|
||||
|
||||
let result = clone_with_stack(
|
||||
|
@ -802,6 +807,7 @@ impl Container {
|
|||
&mut stack,
|
||||
);
|
||||
|
||||
#[cfg(feature = "nightly")]
|
||||
std::io::set_output_capture(output_capture);
|
||||
|
||||
let child = WaitGuard::new(result?);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
#![deny(rustdoc::broken_intra_doc_links)]
|
||||
#![feature(internal_output_capture)]
|
||||
#![cfg_attr(feature = "nightly", feature(internal_output_capture))]
|
||||
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
|
||||
|
||||
mod builder;
|
||||
|
|
Loading…
Reference in a new issue