]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #19436 : lifthrasiir/rust/rustdoc-short-src-paths, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 1 Dec 2014 17:51:55 +0000 (17:51 +0000)
committerbors <bors@rust-lang.org>
Mon, 1 Dec 2014 17:51:55 +0000 (17:51 +0000)
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.


Trivial merge