X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fstd%2Fsrc%2Ffs.rs;h=431a1efc8d1f64d4e7f3d56e9f3b31e3a0728295;hb=98a8035bedd2c660912d1e6ecfe86c895e588feb;hp=433b4d530136b282a9e84d870039c5b1b07eb3de;hpb=6b4563bf93f4b103ed22507ed825008b89e4f5d9;p=rust.git diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 433b4d53013..431a1efc8d1 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1851,10 +1851,10 @@ pub fn hard_link, Q: AsRef>(original: P, link: Q) -> io::Re /// } /// ``` #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_deprecated( +#[deprecated( since = "1.1.0", - reason = "replaced with std::os::unix::fs::symlink and \ - std::os::windows::fs::{symlink_file, symlink_dir}" + note = "replaced with std::os::unix::fs::symlink and \ + std::os::windows::fs::{symlink_file, symlink_dir}" )] pub fn soft_link, Q: AsRef>(original: P, link: Q) -> io::Result<()> { fs_imp::symlink(original.as_ref(), link.as_ref()) @@ -1930,6 +1930,8 @@ pub fn read_link>(path: P) -> io::Result { /// Ok(()) /// } /// ``` +#[doc(alias = "realpath")] +#[doc(alias = "GetFinalPathNameByHandle")] #[stable(feature = "fs_canonicalize", since = "1.5.0")] pub fn canonicalize>(path: P) -> io::Result { fs_imp::canonicalize(path.as_ref())