-
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
Avoid linking to itself in implementors section of trait page #32558
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
} | ||
write!(f, "{}{}", self.for_, WhereClause(&self.generics))?; | ||
Ok(()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is just duplicating the code above, can the implementations be refactored?
d33b64d
to
b308a8c
Compare
Extracted duplicated code to a function. |
Thanks! Can you add a test for this as well? |
Added a test. |
Ping. |
Gah! Sorry this slipped by. @bors: r+ rollup |
📌 Commit 87030f6 has been approved by |
…labnik Avoid linking to itself in implementors section of trait page Fix rust-lang#32474.
…crichton rustdoc: Fix missing type parameters on impls They were broken by rust-lang#32558. Fixes: rust-lang#33592
Restore linking to itself in implementors section of trait page Reverts rust-lang#32558 as proposed in [this Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Trait.20implementation.20self-links/near/223773273) r? `@jyn514` cc `@camelid`
Fix #32474.