diff options
| author | bors <bors@rust-lang.org> | 2015-04-25 05:43:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-25 05:43:39 +0000 |
| commit | 54d65092a49eba959b5cd7a1c4b2e43b3fedba1f (patch) | |
| tree | 444342b11ef7f4eba33a93d2c564ebeb27b37c24 /src/libstd/sys | |
| parent | a40261ac91dd80b21830cc94de6132744e0c5078 (diff) | |
| parent | a318b5134667f30395fb0036ea3dd987bf8e1766 (diff) | |
| download | rust-54d65092a49eba959b5cd7a1c4b2e43b3fedba1f.tar.gz rust-54d65092a49eba959b5cd7a1c4b2e43b3fedba1f.zip | |
Auto merge of #24724 - alexcrichton:symlink-stable, r=aturon
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.
Diffstat (limited to 'src/libstd/sys')
| -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<()> { |
