Skip to content

Commit bb23d82

Browse files
authored
Rollup merge of rust-lang#91782 - maxwase:is_symlink_since_attribute, r=jyn514
Correct since attribute for `is_symlink` feature Follow-up from [89677](rust-lang#89677)
2 parents bc0269d + 8fafb77 commit bb23d82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ impl Metadata {
10581058
/// }
10591059
/// ```
10601060
#[must_use]
1061-
#[stable(feature = "is_symlink", since = "1.57.0")]
1061+
#[stable(feature = "is_symlink", since = "1.58.0")]
10621062
pub fn is_symlink(&self) -> bool {
10631063
self.file_type().is_symlink()
10641064
}

library/std/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ impl Path {
28172817
/// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call
28182818
/// [`fs::Metadata::is_symlink`] if it was [`Ok`].
28192819
#[must_use]
2820-
#[stable(feature = "is_symlink", since = "1.57.0")]
2820+
#[stable(feature = "is_symlink", since = "1.58.0")]
28212821
pub fn is_symlink(&self) -> bool {
28222822
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
28232823
}

0 commit comments

Comments
 (0)