We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebedfed commit 4046667Copy full SHA for 4046667
library/std/src/os/unix/fs.rs
@@ -934,7 +934,6 @@ impl DirBuilderExt for fs::DirBuilder {
934
/// # Examples
935
///
936
/// ```no_run
937
-/// #![feature(unix_chroot)]
938
/// use std::os::unix::fs;
939
940
/// fn main() -> std::io::Result<()> {
@@ -944,7 +943,7 @@ impl DirBuilderExt for fs::DirBuilder {
944
943
/// Ok(())
945
/// }
946
/// ```
947
-#[unstable(feature = "unix_chroot", issue = "84715")]
+#[stable(feature = "unix_chroot", since = "1.56.0")]
948
#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))]
949
pub fn chroot<P: AsRef<Path>>(dir: P) -> io::Result<()> {
950
sys::fs::chroot(dir.as_ref())
0 commit comments