Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 for rustdoc [src] links for files with absolute paths #26995

Closed
SimonSapin opened this issue Jul 12, 2015 · 0 comments · Fixed by #31835
Closed

404 for rustdoc [src] links for files with absolute paths #26995

SimonSapin opened this issue Jul 12, 2015 · 0 comments · Fixed by #31835
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@SimonSapin
Copy link
Contributor

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

@steveklabnik steveklabnik added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants