-
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: Downstream implementors are not linked to #78615
Comments
I think this is a duplicate of #76736. |
If you can reproduce outside of rustc, that's a bug though. |
I can reproduce it in a private project, but I'd rather not share the sources. I'll see if I can get an MCVE. |
This reproduces rust-lang/rust#78615.
The code from that repo: // crate a
pub trait MyTrait {}
pub struct MyLocalStruct;
impl MyTrait for MyLocalStruct {}
// crate b
use crate_a::MyTrait;
pub struct MyStruct;
impl MyTrait for MyStruct {} |
Yeah, I just wanted to provide a repo that you can just clone and build to reproduce :) |
Weirdly, the issue seems to be spurious: Sometimes I see EDIT: Never mind, I was sometimes running with |
The output for camelid/rust-issue-78615@3dfc5ea: |
searched nightlies: from nightly-2019-01-01 to nightly-2020-11-01 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-apple-darwin cargo bisect-rustc --preserve --prompt --start=2019-01-01 -- doc This was caused by #73767. |
I think this is unrelated, but I want to note that running I'm guessing this is because rustdoc isn't re-documenting Interestingly, though, the reverse is not true: making |
cc @rust-lang/rustdoc |
This appears to be fixed now, both in the rustc API docs and my MCVE! 🎉 |
Rustdoc doesn't link to implementors of a trait where the implementors are in a downstream crate; e.g.,
rustc_middle::mir::visit::Visitor
:I would think this is a limitation related to #74481, but the implementors are listed, they just aren't linked to, so I'm not sure what the cause is.
The text was updated successfully, but these errors were encountered: