Rollup merge of #96586 - ear7h:master, r=joshtriplett
Add aliases for std::fs::canonicalize The aliases are `realpath` and `GetFinalPathNameByHandle` which are explicitly mentioned in `canonicalize`'s documentation.
This commit is contained in:
commit
eecc0469f5
@ -1930,6 +1930,8 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[doc(alias = "realpath")]
|
||||
#[doc(alias = "GetFinalPathNameByHandle")]
|
||||
#[stable(feature = "fs_canonicalize", since = "1.5.0")]
|
||||
pub fn canonicalize<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
|
||||
fs_imp::canonicalize(path.as_ref())
|
||||
|
Loading…
Reference in New Issue
Block a user