@@ -115,7 +115,7 @@ use crate::path::Path;
115
115
use crate :: str;
116
116
use crate :: sys:: pipe:: { read2, AnonPipe } ;
117
117
use crate :: sys:: process as imp;
118
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
118
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
119
119
pub use crate :: sys_common:: process:: CommandEnvs ;
120
120
use crate :: sys_common:: { AsInner , AsInnerMut , FromInner , IntoInner } ;
121
121
@@ -943,13 +943,12 @@ impl Command {
943
943
/// # Examples
944
944
///
945
945
/// ```
946
- /// # #![feature(command_access)]
947
946
/// use std::process::Command;
948
947
///
949
948
/// let cmd = Command::new("echo");
950
949
/// assert_eq!(cmd.get_program(), "echo");
951
950
/// ```
952
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
951
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
953
952
pub fn get_program ( & self ) -> & OsStr {
954
953
self . inner . get_program ( )
955
954
}
@@ -963,7 +962,6 @@ impl Command {
963
962
/// # Examples
964
963
///
965
964
/// ```
966
- /// # #![feature(command_access)]
967
965
/// use std::ffi::OsStr;
968
966
/// use std::process::Command;
969
967
///
@@ -972,7 +970,7 @@ impl Command {
972
970
/// let args: Vec<&OsStr> = cmd.get_args().collect();
973
971
/// assert_eq!(args, &["first", "second"]);
974
972
/// ```
975
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
973
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
976
974
pub fn get_args ( & self ) -> CommandArgs < ' _ > {
977
975
CommandArgs { inner : self . inner . get_args ( ) }
978
976
}
@@ -992,7 +990,6 @@ impl Command {
992
990
/// # Examples
993
991
///
994
992
/// ```
995
- /// # #![feature(command_access)]
996
993
/// use std::ffi::OsStr;
997
994
/// use std::process::Command;
998
995
///
@@ -1004,7 +1001,7 @@ impl Command {
1004
1001
/// (OsStr::new("TZ"), None)
1005
1002
/// ]);
1006
1003
/// ```
1007
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
1004
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
1008
1005
pub fn get_envs ( & self ) -> CommandEnvs < ' _ > {
1009
1006
self . inner . get_envs ( )
1010
1007
}
@@ -1016,7 +1013,6 @@ impl Command {
1016
1013
/// # Examples
1017
1014
///
1018
1015
/// ```
1019
- /// # #![feature(command_access)]
1020
1016
/// use std::path::Path;
1021
1017
/// use std::process::Command;
1022
1018
///
@@ -1025,7 +1021,7 @@ impl Command {
1025
1021
/// cmd.current_dir("/bin");
1026
1022
/// assert_eq!(cmd.get_current_dir(), Some(Path::new("/bin")));
1027
1023
/// ```
1028
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
1024
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
1029
1025
pub fn get_current_dir ( & self ) -> Option < & Path > {
1030
1026
self . inner . get_current_dir ( )
1031
1027
}
@@ -1057,13 +1053,13 @@ impl AsInnerMut<imp::Command> for Command {
1057
1053
///
1058
1054
/// This struct is created by [`Command::get_args`]. See its documentation for
1059
1055
/// more.
1060
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
1056
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
1061
1057
#[ derive( Debug ) ]
1062
1058
pub struct CommandArgs < ' a > {
1063
1059
inner : imp:: CommandArgs < ' a > ,
1064
1060
}
1065
1061
1066
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
1062
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
1067
1063
impl < ' a > Iterator for CommandArgs < ' a > {
1068
1064
type Item = & ' a OsStr ;
1069
1065
fn next ( & mut self ) -> Option < & ' a OsStr > {
@@ -1074,7 +1070,7 @@ impl<'a> Iterator for CommandArgs<'a> {
1074
1070
}
1075
1071
}
1076
1072
1077
- #[ unstable ( feature = "command_access" , issue = "44434 " ) ]
1073
+ #[ stable ( feature = "command_access" , since = "1.56.0 " ) ]
1078
1074
impl < ' a > ExactSizeIterator for CommandArgs < ' a > {
1079
1075
fn len ( & self ) -> usize {
1080
1076
self . inner . len ( )
0 commit comments