diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-23 08:58:47 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-23 08:58:47 -0700 |
| commit | a318b5134667f30395fb0036ea3dd987bf8e1766 (patch) | |
| tree | 7d01efcadd05c9403dea473b2fde570e5ec0c4dc | |
| parent | 1114fcd945f6e979660053aeed561bcfb5da669e (diff) | |
| download | rust-a318b5134667f30395fb0036ea3dd987bf8e1766.tar.gz rust-a318b5134667f30395fb0036ea3dd987bf8e1766.zip | |
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.
| -rw-r--r-- | src/libstd/sys/unix/ext.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/windows/ext.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/ext.rs b/src/libstd/sys/unix/ext.rs index 9504fe63697..66aaf26b09b 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<P: AsRef<Path>, Q: AsRef<Path>>(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 eac6496870e..dd747d202a0 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<P: AsRef<Path>, Q: AsRef<Path>>(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<P: AsRef<Path>, Q: AsRef<Path>> (src: P, dst: Q) -> io::Result<()> { |
