about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-13 12:03:52 +0000
committerbors <bors@rust-lang.org>2022-02-13 12:03:52 +0000
commit1f4681ad7a132755452c32a987ad0f0d075aa6aa (patch)
tree078e06add300f2bacb4b586e544f391bb9583f63 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc26fbf857f82b2d0cb919c633ba0e3a90e5b9426 (diff)
parent81cc3afe20d994d9c7cba4e75c3eed92bf98a402 (diff)
downloadrust-1f4681ad7a132755452c32a987ad0f0d075aa6aa.tar.gz
rust-1f4681ad7a132755452c32a987ad0f0d075aa6aa.zip
Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum
`std::path::absolute`

Implements #59117 by adding a `std::path::absolute` function that creates an absolute path without reading the filesystem. This is intended to be a drop-in replacement for [`std::fs::canonicalize`](https://doc.rust-lang.org/std/fs/fn.canonicalize.html) in cases where it isn't necessary to resolve symlinks. It can be used on paths that don't exist or where resolving symlinks is unwanted. It can also be used to avoid circumstances where `canonicalize` might otherwise fail.

On Windows this is a wrapper around [`GetFullPathNameW`](https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew). On Unix it partially implements the POSIX [pathname resolution](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13) specification, stopping just short of actually resolving symlinks.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions