File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,6 @@ impl Metadata {
1021
1021
///
1022
1022
#[ cfg_attr( unix, doc = "```no_run" ) ]
1023
1023
#[ cfg_attr( not( unix) , doc = "```ignore" ) ]
1024
- /// #![feature(is_symlink)]
1025
1024
/// use std::fs;
1026
1025
/// use std::path::Path;
1027
1026
/// use std::os::unix::fs::symlink;
@@ -1036,7 +1035,7 @@ impl Metadata {
1036
1035
/// Ok(())
1037
1036
/// }
1038
1037
/// ```
1039
- #[ unstable ( feature = "is_symlink" , issue = "85748 " ) ]
1038
+ #[ stable ( feature = "is_symlink" , since = "1.57.0 " ) ]
1040
1039
pub fn is_symlink ( & self ) -> bool {
1041
1040
self . file_type ( ) . is_symlink ( )
1042
1041
}
Original file line number Diff line number Diff line change @@ -2723,7 +2723,7 @@ impl Path {
2723
2723
fs:: metadata ( self ) . map ( |m| m. is_dir ( ) ) . unwrap_or ( false )
2724
2724
}
2725
2725
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.
2727
2727
///
2728
2728
/// This function will not traverse symbolic links.
2729
2729
/// In case of a broken symbolic link this will also return true.
@@ -2735,7 +2735,6 @@ impl Path {
2735
2735
///
2736
2736
#[ cfg_attr( unix, doc = "```no_run" ) ]
2737
2737
#[ cfg_attr( not( unix) , doc = "```ignore" ) ]
2738
- /// #![feature(is_symlink)]
2739
2738
/// use std::path::Path;
2740
2739
/// use std::os::unix::fs::symlink;
2741
2740
///
@@ -2744,7 +2743,7 @@ impl Path {
2744
2743
/// assert_eq!(link_path.is_symlink(), true);
2745
2744
/// assert_eq!(link_path.exists(), false);
2746
2745
/// ```
2747
- #[ unstable ( feature = "is_symlink" , issue = "85748 " ) ]
2746
+ #[ stable ( feature = "is_symlink" , since = "1.57.0 " ) ]
2748
2747
pub fn is_symlink ( & self ) -> bool {
2749
2748
fs:: symlink_metadata ( self ) . map ( |m| m. is_symlink ( ) ) . unwrap_or ( false )
2750
2749
}
You can’t perform that action at this time.
0 commit comments