about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-13 17:09:41 +0800
committerGitHub <noreply@github.com>2017-11-13 17:09:41 +0800
commit563af5d2607d8e7e4205de5a04c9c7e7c4582677 (patch)
tree88b9c665319f2b6904c36e5abea6192ad0e25401 /src/rustllvm/PassWrapper.cpp
parente3ca816d362c3613055aa1e44f1a0caac111db15 (diff)
parentef76ebf28c70d7c68b482295b65be56aaf10588a (diff)
downloadrust-563af5d2607d8e7e4205de5a04c9c7e7c4582677.tar.gz
rust-563af5d2607d8e7e4205de5a04c9c7e7c4582677.zip
Rollup merge of #45892 - redox-os:is_absolute_fix, r=alexcrichton
Redox: Return true from Path::is_absolute if a Path contains root or a scheme

In Redox, different subsystems have different filesystem paths. However, the majority of applications using the `Path::is_absolute` function really only want to know if a path is absolute from the perspective of the scheme it is currently running in, usually `file:`. This makes both `file:/` and `/` return `true` from `Path::is_absolute`, meaning that most code does not have to check if it is running on Redox.

Code that wants to know if a path contains a scheme can implement such a check on its own.

Related to https://github.com/rust-lang/rust/pull/45893
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions