Skip to content

Commit 4046667

Browse files
committed
Stabilize std::os::unix::fs::chroot
1 parent ebedfed commit 4046667

File tree

1 file changed

+1
-2
lines changed
  • library/std/src/os/unix

1 file changed

+1
-2
lines changed

library/std/src/os/unix/fs.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ impl DirBuilderExt for fs::DirBuilder {
934934
/// # Examples
935935
///
936936
/// ```no_run
937-
/// #![feature(unix_chroot)]
938937
/// use std::os::unix::fs;
939938
///
940939
/// fn main() -> std::io::Result<()> {
@@ -944,7 +943,7 @@ impl DirBuilderExt for fs::DirBuilder {
944943
/// Ok(())
945944
/// }
946945
/// ```
947-
#[unstable(feature = "unix_chroot", issue = "84715")]
946+
#[stable(feature = "unix_chroot", since = "1.56.0")]
948947
#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))]
949948
pub fn chroot<P: AsRef<Path>>(dir: P) -> io::Result<()> {
950949
sys::fs::chroot(dir.as_ref())

0 commit comments

Comments
 (0)