Skip to content

Commit 945c50d

Browse files
committed
Fix stability and deprecation markers on soft_link and symlink
The change to split up soft_link to OS-specific symlink, symlink_file, and symlink_dir didn't actually land in 1.0.0. Update the stability and deprecation attributes to correctly indicate that these changes happend in 1.1.0.
1 parent c575885 commit 945c50d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/libstd/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<(
949949
/// # Ok(())
950950
/// # }
951951
/// ```
952-
#[deprecated(since = "1.0.0",
952+
#[deprecated(since = "1.1.0",
953953
reason = "replaced with std::os::unix::fs::symlink and \
954954
std::os::windows::fs::{symlink_file, symlink_dir}")]
955955
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/sys/unix/ext/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl DirEntryExt for fs::DirEntry {
184184
/// # Ok(())
185185
/// # }
186186
/// ```
187-
#[stable(feature = "rust1", since = "1.0.0")]
187+
#[stable(feature = "symlink", since = "1.1.0")]
188188
pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
189189
{
190190
sys::fs::symlink(src.as_ref(), dst.as_ref())

src/libstd/sys/windows/ext/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl MetadataExt for Metadata {
122122
/// # Ok(())
123123
/// # }
124124
/// ```
125-
#[stable(feature = "rust1", since = "1.0.0")]
125+
#[stable(feature = "symlink", since = "1.1.0")]
126126
pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
127127
-> io::Result<()> {
128128
sys::fs::symlink_inner(src.as_ref(), dst.as_ref(), false)
@@ -143,7 +143,7 @@ pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
143143
/// # Ok(())
144144
/// # }
145145
/// ```
146-
#[stable(feature = "rust1", since = "1.0.0")]
146+
#[stable(feature = "symlink", since = "1.1.0")]
147147
pub fn symlink_dir<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
148148
-> io::Result<()> {
149149
sys::fs::symlink_inner(src.as_ref(), dst.as_ref(), true)

0 commit comments

Comments
 (0)