]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #23213 - ipetkov:rustdoc-src-fix, r=huonw
authorbors <bors@rust-lang.org>
Thu, 19 Mar 2015 16:42:16 +0000 (16:42 +0000)
committerbors <bors@rust-lang.org>
Thu, 19 Mar 2015 16:42:16 +0000 (16:42 +0000)
* rustdoc was doubly appending the file name to the path of where to
  generate the source files, meanwhile, the [src] hyperlinks were not
* Added a flag to rustdoc::html::render::clean_srcpath to ignore the
  last path component, i.e. the file name itself to prevent the issue
* This also avoids creating directories with the same name as source
  files, and it makes sure the link to `main.css` is correct as well.

Fixes #23192


Trivial merge