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) }