-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc regression: inter-crate links not being generated where they previously were #120983
Comments
I see that this needs a mcve. The provided example seems relatively minimal. What would constitute a mcve and how would one go about testing this without playing around with an actual crate on docs.rs? |
@JustAnotherCodemonkey, while the example is a nice reproducer, it's far from minimal: The incorrectly documented item Note that @GuillaumeGomez wrote here that they would look into a very similar (if not a duplicate of this) issue. They may or may not try to the find a reproducer themself now. An MCVE isn't always necessary to find the root cause but it's still necessary to be able to add a regression test. Sometimes someone very familiar with the code base may already have a hunch what went wrong even without an MCVE or they may remember a recent PR that touched relevant parts of the code base or they may bisect a commit range to search for a regressing commit.
Well typically you download or git-clone (with a depth of 1) the relevant crate and try to minimize it which is a bit of an art form or trial-and-error. Check out http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/ for example (note that Crate stats were taken from https://lib.rs/. |
@fmease I'd agree the problem looks related to |
The problem shows up with |
I opened rust-lang/cargo#13481, it should fix this issue. |
It looks like that PR is merged. Can I expect the changes to be live on docs.rs then? |
If the new cargo nightly has been released, you should be able to. |
I think this issue can be closed? We probably should ask the docs.rs team to re-generate docs, but I wonder if it can be done automatically (i.e. all dependencies of |
Indeed! Closing then. |
We recently received multiple reports in the @RustCrypto project of missing links in the docs.rs documentation, and did manage to find a somewhat minimal illustration of the problem/
We previously had documentation which linked to types in the
generic-array
crate: https://docs.rs/digest/0.10.1/digest/type.Output.htmlAt some point those links broke. Here is where I first observed it: https://docs.rs/digest/0.10.2/digest/type.Output.html
Not sure how to properly file this issue, especially as I often experience these links not working on local rustdoc builds but being present on docs.rs. I can at least confirm I reproduced how the v0.10.2+ docs.rs builds appear via a local rustdoc build.
The text was updated successfully, but these errors were encountered: