about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorKang Seonghoon <public+git@mearie.org>2014-12-01 20:46:51 +0900
committerKang Seonghoon <public+git@mearie.org>2014-12-01 20:53:11 +0900
commit08fb9aa2d218399ed6d246c97fb6cdd0d1150b59 (patch)
tree568aa3e6c255e0c8d3f4eef376ec96adc902cbe3 /src/rustllvm/RustWrapper.cpp
parent09f04bf2c919725d5ee69b8cbb34cdcbb3433e25 (diff)
downloadrust-08fb9aa2d218399ed6d246c97fb6cdd0d1150b59.tar.gz
rust-08fb9aa2d218399ed6d246c97fb6cdd0d1150b59.zip
rustdoc: Use relative paths in source renders.
Before: doc/src/collections/home/lifthrasiir/git/rust/src/libcollections/vec.rs.html
After: doc/src/collections/vec.rs.html

If the source code is in the parent dirs relative to the crate root,
`..` is replaced with `up` as expected. Any other error like non-UTF-8
paths or drive-relative paths falls back to the absolute path.

There might be a way to improve on false negatives, but this alone
should be enough for fixing #18370.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions