mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
Tracking issue add.
This commit is contained in:
parent
89c0f50b09
commit
2d88c52ab7
@ -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()
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user