Closed
Description
When the path to a source file as known to the compiler is absolute (which can happen with #[path = "/…"] mod foo;
or include!
), rustdoc fails to include the source of these files in its output.
For example, the [src] link on http://doc.servo.org/script/dom/bindings/codegen/Bindings/DOMParserBinding/enum.SupportedType.html goes to http://doc.servo.org/src/script///home/servo/buildbot/slave/doc/build/target/debug/build/script-49135cd7c70c0a0f/out/Bindings/DOMParserBinding.rs.html#99-102 which is a 404.
A simpler test case is hello.rs
in http://doc.crates.io/build-script.html#case-study:-code-generation