Seal the CommandExt, OsStrExt and OsStringExt traits
This commit is contained in:
parent
07194ffcd2
commit
bfd1ccfb27
7 changed files with 54 additions and 30 deletions
|
@ -498,6 +498,10 @@ pub struct Command {
|
|||
inner: imp::Command,
|
||||
}
|
||||
|
||||
/// Allows extension traits within `std`.
|
||||
#[unstable(feature = "sealed", issue = "none")]
|
||||
impl crate::sealed::Sealed for Command {}
|
||||
|
||||
impl Command {
|
||||
/// Constructs a new `Command` for launching the program at
|
||||
/// path `program`, with the following default configuration:
|
||||
|
@ -1375,6 +1379,10 @@ impl From<fs::File> for Stdio {
|
|||
#[stable(feature = "process", since = "1.0.0")]
|
||||
pub struct ExitStatus(imp::ExitStatus);
|
||||
|
||||
/// Allows extension traits within `std`.
|
||||
#[unstable(feature = "sealed", issue = "none")]
|
||||
impl crate::sealed::Sealed for ExitStatus {}
|
||||
|
||||
impl ExitStatus {
|
||||
/// Was termination successful? Signal termination is not considered a
|
||||
/// success, and success is defined as a zero exit status.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue