diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-08-19 20:12:13 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2021-08-19 20:22:39 -0700 |
| commit | 40466672b5988e8bdbbcf089c788003e3c81b1b3 (patch) | |
| tree | e9f6827571d58172345d565d4f1c1a9c22a15379 | |
| parent | ebedfedcd82678d5b0592227ca5e6ca31a5afb8f (diff) | |
| download | rust-40466672b5988e8bdbbcf089c788003e3c81b1b3.tar.gz rust-40466672b5988e8bdbbcf089c788003e3c81b1b3.zip | |
Stabilize std::os::unix::fs::chroot
| -rw-r--r-- | library/std/src/os/unix/fs.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/os/unix/fs.rs b/library/std/src/os/unix/fs.rs index e4ce788f741..6cf37f23c57 100644 --- a/library/std/src/os/unix/fs.rs +++ b/library/std/src/os/unix/fs.rs @@ -934,7 +934,6 @@ impl DirBuilderExt for fs::DirBuilder { /// # Examples /// /// ```no_run -/// #![feature(unix_chroot)] /// use std::os::unix::fs; /// /// fn main() -> std::io::Result<()> { @@ -944,7 +943,7 @@ impl DirBuilderExt for fs::DirBuilder { /// Ok(()) /// } /// ``` -#[unstable(feature = "unix_chroot", issue = "84715")] +#[stable(feature = "unix_chroot", since = "1.56.0")] #[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))] pub fn chroot<P: AsRef<Path>>(dir: P) -> io::Result<()> { sys::fs::chroot(dir.as_ref()) |
