@@ -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
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
118
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
119
119
pub use crate :: sys_common:: process:: CommandEnvs ;
120
120
use crate :: sys_common:: { AsInner , AsInnerMut , FromInner , IntoInner } ;
121
121
@@ -948,7 +948,7 @@ impl Command {
948
948
/// let cmd = Command::new("echo");
949
949
/// assert_eq!(cmd.get_program(), "echo");
950
950
/// ```
951
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
951
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
952
952
pub fn get_program ( & self ) -> & OsStr {
953
953
self . inner . get_program ( )
954
954
}
@@ -970,7 +970,7 @@ impl Command {
970
970
/// let args: Vec<&OsStr> = cmd.get_args().collect();
971
971
/// assert_eq!(args, &["first", "second"]);
972
972
/// ```
973
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
973
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
974
974
pub fn get_args ( & self ) -> CommandArgs < ' _ > {
975
975
CommandArgs { inner : self . inner . get_args ( ) }
976
976
}
@@ -1001,7 +1001,7 @@ impl Command {
1001
1001
/// (OsStr::new("TZ"), None)
1002
1002
/// ]);
1003
1003
/// ```
1004
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
1004
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
1005
1005
pub fn get_envs ( & self ) -> CommandEnvs < ' _ > {
1006
1006
self . inner . get_envs ( )
1007
1007
}
@@ -1021,7 +1021,7 @@ impl Command {
1021
1021
/// cmd.current_dir("/bin");
1022
1022
/// assert_eq!(cmd.get_current_dir(), Some(Path::new("/bin")));
1023
1023
/// ```
1024
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
1024
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
1025
1025
pub fn get_current_dir ( & self ) -> Option < & Path > {
1026
1026
self . inner . get_current_dir ( )
1027
1027
}
@@ -1053,13 +1053,13 @@ impl AsInnerMut<imp::Command> for Command {
1053
1053
///
1054
1054
/// This struct is created by [`Command::get_args`]. See its documentation for
1055
1055
/// more.
1056
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
1056
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
1057
1057
#[ derive( Debug ) ]
1058
1058
pub struct CommandArgs < ' a > {
1059
1059
inner : imp:: CommandArgs < ' a > ,
1060
1060
}
1061
1061
1062
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
1062
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
1063
1063
impl < ' a > Iterator for CommandArgs < ' a > {
1064
1064
type Item = & ' a OsStr ;
1065
1065
fn next ( & mut self ) -> Option < & ' a OsStr > {
@@ -1070,7 +1070,7 @@ impl<'a> Iterator for CommandArgs<'a> {
1070
1070
}
1071
1071
}
1072
1072
1073
- #[ stable( feature = "command_access" , since = "1.56 .0" ) ]
1073
+ #[ stable( feature = "command_access" , since = "1.57 .0" ) ]
1074
1074
impl < ' a > ExactSizeIterator for CommandArgs < ' a > {
1075
1075
fn len ( & self ) -> usize {
1076
1076
self . inner . len ( )
0 commit comments