diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-11 16:02:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-11 16:02:50 +0100 |
| commit | bb23d82e6f8548a173dd574fca7f7131a51f534f (patch) | |
| tree | 0251c3bc0171c35b1286e9f3de7a152fdb783154 | |
| parent | bc0269dbed386ace00d1a466a6b613769b3e135f (diff) | |
| parent | 8fafb77af971d8bfd3a38cb73fb548d2a4cdd35c (diff) | |
| download | rust-bb23d82e6f8548a173dd574fca7f7131a51f534f.tar.gz rust-bb23d82e6f8548a173dd574fca7f7131a51f534f.zip | |
Rollup merge of #91782 - maxwase:is_symlink_since_attribute, r=jyn514
Correct since attribute for `is_symlink` feature Follow-up from [89677](https://github.com/rust-lang/rust/pull/89677)
| -rw-r--r-- | library/std/src/fs.rs | 2 | ||||
| -rw-r--r-- | 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 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) } |
