-
Notifications
You must be signed in to change notification settings - Fork 198
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
Cross-crate intra doc links to transitive dependencies are not getting interpreted #2081
Comments
I guess this has something to do with the fact that
So this might still be either a rustdoc issue or a docs.rs issue:
|
Mentioning @GuillaumeGomez @notriddle since this sounds like a similar sort of situation to the ones described in https://blog.guillaume-gomez.fr/articles/2023-03-08+rustdoc+and+the+re-exports and rust-lang/rust#104292. Assuming my "mimic what docs.rs might be doing" in #2081 (comment) is reasonably representative, if rustdoc in
|
rust-lang/rust#106011 might also be at play. 😿 |
yes, this is the problem. see rust-lang/cargo#8296 (comment) (I think |
Duplicate of #1588. |
I am trying to reproduce why https://docs.rs/tracing-opentelemetry/0.18.0/tracing_opentelemetry/index.html#special-fields has a broken "span kinds" link. The rendered HTML has
<a href="opentelemetry::trace::SpanKind">span kinds</a>
which is obviously not what was intended.According to https://docs.rs/crate/tracing-opentelemetry/0.18.0/builds/632715, the build ran using
rustc 1.66.0-nightly (a37499ae6 2022-09-18)
. I attempted to reproduce the issue as follows:I put
--cfg docs.rs
and--all-features
based upon the crate's Cargo.toml: https://docs.rs/crate/tracing-opentelemetry/0.18.0/source/Cargo.tomlAs you can see, it reproduces the warnings seen in the docs.rs log. However, the generated HTML has a correct link
<a href="../opentelemetry_api/trace/span/enum.SpanKind.html">span kinds</a>
.Is docs.rs's build doing something that is materially different from this? In order to make the link work, is this a rustdoc bug or a docs.rs bug? If rustdoc is working correctly, what would need to change in docs.rs to support this kind of link?
cc: @chriskonstad
The text was updated successfully, but these errors were encountered: