@@ -971,15 +971,14 @@ impl DirBuilderExt for fs::DirBuilder {
971971/// # Examples
972972///
973973/// ```no_run
974- /// #![feature(unix_chown)]
975974/// use std::os::unix::fs;
976975///
977976/// fn main() -> std::io::Result<()> {
978977/// fs::chown("/sandbox", Some(0), Some(0))?;
979978/// Ok(())
980979/// }
981980/// ```
982- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
981+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
983982pub fn chown < P : AsRef < Path > > ( dir : P , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
984983 sys:: fs:: chown ( dir. as_ref ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
985984}
@@ -991,7 +990,6 @@ pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::
991990/// # Examples
992991///
993992/// ```no_run
994- /// #![feature(unix_chown)]
995993/// use std::os::unix::fs;
996994///
997995/// fn main() -> std::io::Result<()> {
@@ -1000,7 +998,7 @@ pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::
1000998/// Ok(())
1001999/// }
10021000/// ```
1003- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
1001+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
10041002pub fn fchown < F : AsFd > ( fd : F , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
10051003 sys:: fs:: fchown ( fd. as_fd ( ) . as_raw_fd ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
10061004}
@@ -1013,15 +1011,14 @@ pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<
10131011/// # Examples
10141012///
10151013/// ```no_run
1016- /// #![feature(unix_chown)]
10171014/// use std::os::unix::fs;
10181015///
10191016/// fn main() -> std::io::Result<()> {
10201017/// fs::lchown("/symlink", Some(0), Some(0))?;
10211018/// Ok(())
10221019/// }
10231020/// ```
1024- #[ unstable ( feature = "unix_chown" , issue = "88989 " ) ]
1021+ #[ stable ( feature = "unix_chown" , since = "CURRENT_RUSTC_VERSION " ) ]
10251022pub fn lchown < P : AsRef < Path > > ( dir : P , uid : Option < u32 > , gid : Option < u32 > ) -> io:: Result < ( ) > {
10261023 sys:: fs:: lchown ( dir. as_ref ( ) , uid. unwrap_or ( u32:: MAX ) , gid. unwrap_or ( u32:: MAX ) )
10271024}
0 commit comments