about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxwase <max.vvase@gmail.com>2021-12-11 13:47:20 +0300
committerMaxwase <max.vvase@gmail.com>2021-12-11 13:47:20 +0300
commit8fafb77af971d8bfd3a38cb73fb548d2a4cdd35c (patch)
tree4f0f3db0496e30d72af1ff426a2e88d67aa1f575
parent4a66a704b2c3d30ff07d89380ebb9ba3de3b3182 (diff)
downloadrust-8fafb77af971d8bfd3a38cb73fb548d2a4cdd35c.tar.gz
rust-8fafb77af971d8bfd3a38cb73fb548d2a4cdd35c.zip
Correct since attribute for feature
-rw-r--r--library/std/src/fs.rs2
-rw-r--r--library/std/src/path.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 014d5119b05..dae85027b6c 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 9ade2847e8e..7d401cff591 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)
     }