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.
This commit is contained in:
parent
c575885e25
commit
945c50d974
3 changed files with 4 additions and 4 deletions
|
@ -949,7 +949,7 @@ pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<(
|
|||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[deprecated(since = "1.0.0",
|
||||
#[deprecated(since = "1.1.0",
|
||||
reason = "replaced with std::os::unix::fs::symlink and \
|
||||
std::os::windows::fs::{symlink_file, symlink_dir}")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
@ -184,7 +184,7 @@ impl DirEntryExt for fs::DirEntry {
|
|||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[stable(feature = "symlink", since = "1.1.0")]
|
||||
pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
|
||||
{
|
||||
sys::fs::symlink(src.as_ref(), dst.as_ref())
|
||||
|
|
|
@ -122,7 +122,7 @@ impl MetadataExt for Metadata {
|
|||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[stable(feature = "symlink", since = "1.1.0")]
|
||||
pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
|
||||
-> io::Result<()> {
|
||||
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)
|
|||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[stable(feature = "symlink", since = "1.1.0")]
|
||||
pub fn symlink_dir<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
|
||||
-> io::Result<()> {
|
||||
sys::fs::symlink_inner(src.as_ref(), dst.as_ref(), true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue