File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,6 @@ impl Metadata {
10211021 ///
10221022 #[ cfg_attr( unix, doc = "```no_run" ) ]
10231023 #[ cfg_attr( not( unix) , doc = "```ignore" ) ]
1024- /// #![feature(is_symlink)]
10251024 /// use std::fs;
10261025 /// use std::path::Path;
10271026 /// use std::os::unix::fs::symlink;
@@ -1036,7 +1035,7 @@ impl Metadata {
10361035 /// Ok(())
10371036 /// }
10381037 /// ```
1039- #[ unstable ( feature = "is_symlink" , issue = "85748 " ) ]
1038+ #[ stable ( feature = "is_symlink" , since = "1.57.0 " ) ]
10401039 pub fn is_symlink ( & self ) -> bool {
10411040 self . file_type ( ) . is_symlink ( )
10421041 }
Original file line number Diff line number Diff line change @@ -2723,7 +2723,7 @@ impl Path {
27232723 fs:: metadata ( self ) . map ( |m| m. is_dir ( ) ) . unwrap_or ( false )
27242724 }
27252725
2726- /// Returns true if the path exists on disk and is pointing at a symbolic link.
2726+ /// Returns ` true` if the path exists on disk and is pointing at a symbolic link.
27272727 ///
27282728 /// This function will not traverse symbolic links.
27292729 /// In case of a broken symbolic link this will also return true.
@@ -2735,7 +2735,6 @@ impl Path {
27352735 ///
27362736 #[ cfg_attr( unix, doc = "```no_run" ) ]
27372737 #[ cfg_attr( not( unix) , doc = "```ignore" ) ]
2738- /// #![feature(is_symlink)]
27392738 /// use std::path::Path;
27402739 /// use std::os::unix::fs::symlink;
27412740 ///
@@ -2744,7 +2743,7 @@ impl Path {
27442743 /// assert_eq!(link_path.is_symlink(), true);
27452744 /// assert_eq!(link_path.exists(), false);
27462745 /// ```
2747- #[ unstable ( feature = "is_symlink" , issue = "85748 " ) ]
2746+ #[ stable ( feature = "is_symlink" , since = "1.57.0 " ) ]
27482747 pub fn is_symlink ( & self ) -> bool {
27492748 fs:: symlink_metadata ( self ) . map ( |m| m. is_symlink ( ) ) . unwrap_or ( false )
27502749 }
You can’t perform that action at this time.
0 commit comments