@@ -971,15 +971,14 @@ impl DirBuilderExt for fs::DirBuilder {
971
971
/// # Examples
972
972
///
973
973
/// ```no_run
974
- /// #![feature(unix_chown)]
975
974
/// use std::os::unix::fs;
976
975
///
977
976
/// fn main() -> std::io::Result<()> {
978
977
/// fs::chown("/sandbox", Some(0), Some(0))?;
979
978
/// Ok(())
980
979
/// }
981
980
/// ```
982
- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
981
+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
983
982
pub fn chown < P : AsRef < Path > > ( dir : P , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
984
983
sys:: fs:: chown ( dir. as_ref ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
985
984
}
@@ -991,7 +990,6 @@ pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::
991
990
/// # Examples
992
991
///
993
992
/// ```no_run
994
- /// #![feature(unix_chown)]
995
993
/// use std::os::unix::fs;
996
994
///
997
995
/// fn main() -> std::io::Result<()> {
@@ -1000,7 +998,7 @@ pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::
1000
998
/// Ok(())
1001
999
/// }
1002
1000
/// ```
1003
- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
1001
+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
1004
1002
pub fn fchown < F : AsFd > ( fd : F , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
1005
1003
sys:: fs:: fchown ( fd. as_fd ( ) . as_raw_fd ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
1006
1004
}
@@ -1013,15 +1011,14 @@ pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<
1013
1011
/// # Examples
1014
1012
///
1015
1013
/// ```no_run
1016
- /// #![feature(unix_chown)]
1017
1014
/// use std::os::unix::fs;
1018
1015
///
1019
1016
/// fn main() -> std::io::Result<()> {
1020
1017
/// fs::lchown("/symlink", Some(0), Some(0))?;
1021
1018
/// Ok(())
1022
1019
/// }
1023
1020
/// ```
1024
- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
1021
+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
1025
1022
pub fn lchown < P : AsRef < Path > > ( dir : P , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
1026
1023
sys:: fs:: lchown ( dir. as_ref ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
1027
1024
}
0 commit comments