process: Hide compat from docs

This commit is contained in:
Alex Crichton
2019-06-24 16:56:48 -07:00
committed by Ivan Petkov
parent ca51ae9651
commit a0c162c0ff
+4
View File
@@ -448,6 +448,7 @@ impl Read for ChildStderr {
#[deprecated(note = "use std::process::Command instead")] #[deprecated(note = "use std::process::Command instead")]
#[allow(deprecated, missing_docs)] #[allow(deprecated, missing_docs)]
#[doc(hidden)]
pub struct Command { pub struct Command {
inner: process::Command, inner: process::Command,
#[allow(dead_code)] #[allow(dead_code)]
@@ -456,12 +457,14 @@ pub struct Command {
#[deprecated(note = "use std::process::Command instead")] #[deprecated(note = "use std::process::Command instead")]
#[allow(deprecated, missing_docs)] #[allow(deprecated, missing_docs)]
#[doc(hidden)]
pub struct Spawn { pub struct Spawn {
inner: Box<Future<Item=Child, Error=io::Error>>, inner: Box<Future<Item=Child, Error=io::Error>>,
} }
#[deprecated(note = "use std::process::Command instead")] #[deprecated(note = "use std::process::Command instead")]
#[allow(deprecated, missing_docs)] #[allow(deprecated, missing_docs)]
#[doc(hidden)]
impl Command { impl Command {
pub fn new<T: AsRef<OsStr>>(exe: T, handle: &Handle) -> Command { pub fn new<T: AsRef<OsStr>>(exe: T, handle: &Handle) -> Command {
Command::_new(exe.as_ref(), handle) Command::_new(exe.as_ref(), handle)
@@ -533,6 +536,7 @@ impl Command {
#[deprecated(note = "use std::process::Command instead")] #[deprecated(note = "use std::process::Command instead")]
#[allow(deprecated)] #[allow(deprecated)]
#[doc(hidden)]
impl Future for Spawn { impl Future for Spawn {
type Item = Child; type Item = Child;
type Error = io::Error; type Error = io::Error;