From a318b5134667f30395fb0036ea3dd987bf8e1766 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 23 Apr 2015 08:58:47 -0700 Subject: [PATCH] std: Add missing stability for symlink functions These functions were intended to be introduced as `#[stable]` as a stable API was deprecated in favor of them, but they just erroneously forgot the stability attributes. --- src/libstd/sys/unix/ext.rs | 1 + src/libstd/sys/windows/ext.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/libstd/sys/unix/ext.rs b/src/libstd/sys/unix/ext.rs index 9504fe6369788..66aaf26b09b72 100644 --- a/src/libstd/sys/unix/ext.rs +++ b/src/libstd/sys/unix/ext.rs @@ -249,6 +249,7 @@ pub mod fs { /// # Ok(()) /// # } /// ``` + #[stable(feature = "rust1", since = "1.0.0")] pub fn symlink, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { sys::fs2::symlink(src.as_ref(), dst.as_ref()) diff --git a/src/libstd/sys/windows/ext.rs b/src/libstd/sys/windows/ext.rs index eac6496870eab..dd747d202a04b 100644 --- a/src/libstd/sys/windows/ext.rs +++ b/src/libstd/sys/windows/ext.rs @@ -256,6 +256,7 @@ pub mod fs { /// # Ok(()) /// # } /// ``` + #[stable(feature = "rust1", since = "1.0.0")] pub fn symlink_file, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { @@ -278,6 +279,7 @@ pub mod fs { /// # Ok(()) /// # } /// ``` + #[stable(feature = "rust1", since = "1.0.0")] pub fn symlink_dir, Q: AsRef> (src: P, dst: Q) -> io::Result<()> {