-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[src] links in beta and nightly documentation are broken #37684
Comments
Seems to affect some items that libstd reexports from libcore. |
I'd also be interested in investigating why CI isn't catching this... |
The |
Ok, good news, this bug did not migrate to stable when beta did? |
Something looks off-by-one in the gotosrc links (which is why linkchecker didn't catch this). libstd thinks the iterator trait is 3636 and libcore thinks it's 3637. Sounds like the ids used by rustdoc are perhaps no longer valid? |
Taking a look. |
Fix invalid src url Fixes rust-lang#37684. Thanks to @eddyb's help. r? @eddyb
Thanks for fixing this! rustdoc improvements = ❤️ |
This isn't fixed. See |
Taking another look then. |
rustdoc: link to cross-crate sources directly. Fixes #37684 by implementing proper support for getting the `Span` of definitions across crates. In rustdoc this is used to generate direct links to the original source instead of fragile redirects. This functionality could be expanded further for making error reporting code more uniform and seamless across crates, although at the moment there is no actual source to print, only file/line/column information. Closes #37870 which is also "fixes" #37684 by throwing away the builtin macro docs from libcore. After this lands, #37727 could be reverted, although it doesn't matter much either way.
At least some of the
[src]
links in the beta standard library documentation are currently broken. I tried https://doc.rust-lang.org/beta/std/iter/trait.Iterator.html and https://doc.rust-lang.org/beta/std/iter/trait.IntoIterator.html.The text was updated successfully, but these errors were encountered: