Stabilize library features for 1.18.0
Closes #38863 Closes #38980 Closes #38903 Closes #36648
This commit is contained in:
parent
d8215fc238
commit
7c2cd93b2b
12 changed files with 27 additions and 77 deletions
|
@ -905,8 +905,6 @@ impl Child {
|
|||
/// Basic usage:
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(process_try_wait)]
|
||||
///
|
||||
/// use std::process::Command;
|
||||
///
|
||||
/// let mut child = Command::new("ls").spawn().unwrap();
|
||||
|
@ -921,7 +919,7 @@ impl Child {
|
|||
/// Err(e) => println!("error attempting to wait: {}", e),
|
||||
/// }
|
||||
/// ```
|
||||
#[unstable(feature = "process_try_wait", issue = "38903")]
|
||||
#[stable(feature = "process_try_wait", since = "1.18.0")]
|
||||
pub fn try_wait(&mut self) -> io::Result<Option<ExitStatus>> {
|
||||
Ok(self.handle.try_wait()?.map(ExitStatus))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue