Tracking issue add.

This commit is contained in:
Max Wase 2021-05-27 16:11:54 +03:00
parent 89c0f50b09
commit 2d88c52ab7
2 changed files with 2 additions and 2 deletions

View File

@ -1026,7 +1026,7 @@ impl Metadata {
/// Ok(())
/// }
/// ```
#[unstable(feature = "is_symlink", issue = "none")]
#[unstable(feature = "is_symlink", issue = "85748")]
pub fn is_symlink(&self) -> bool {
self.file_type().is_symlink()
}

View File

@ -2588,7 +2588,7 @@ impl Path {
/// assert_eq!(link_path.is_symlink(), true);
/// assert_eq!(link_path.exists(), false);
/// ```
#[unstable(feature = "is_symlink", issue = "none")]
#[unstable(feature = "is_symlink", issue = "85748")]
pub fn is_symlink(&self) -> bool {
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
}