Skip to content

Commit

Permalink
std: Add missing stability for symlink functions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Apr 23, 2015
1 parent 1114fcd commit a318b51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys/unix/ext.rs
Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/sys/windows/ext.rs
Expand Up @@ -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<()>
{
Expand All @@ -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<()>
{
Expand Down

0 comments on commit a318b51

Please sign in to comment.