From 8fafb77af971d8bfd3a38cb73fb548d2a4cdd35c Mon Sep 17 00:00:00 2001 From: Maxwase Date: Sat, 11 Dec 2021 13:47:20 +0300 Subject: [PATCH] Correct since attribute for feature --- library/std/src/fs.rs | 2 +- library/std/src/path.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 014d5119b05fd..dae85027b6c29 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1058,7 +1058,7 @@ impl Metadata { /// } /// ``` #[must_use] - #[stable(feature = "is_symlink", since = "1.57.0")] + #[stable(feature = "is_symlink", since = "1.58.0")] pub fn is_symlink(&self) -> bool { self.file_type().is_symlink() } diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 9ade2847e8ea9..7d401cff591c1 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -2817,7 +2817,7 @@ impl Path { /// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call /// [`fs::Metadata::is_symlink`] if it was [`Ok`]. #[must_use] - #[stable(feature = "is_symlink", since = "1.57.0")] + #[stable(feature = "is_symlink", since = "1.58.0")] pub fn is_symlink(&self) -> bool { fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false) }