Skip to content
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

Merged
merged 2 commits into from
Apr 19, 2016

Conversation

sanxiyn
Copy link
Member

@sanxiyn sanxiyn commented Mar 28, 2016

Fix #32474.

@rust-highfive
Copy link
Collaborator

r? @steveklabnik

(rust_highfive has picked a reviewer for you, use r? to override)

}
write!(f, "{}{}", self.for_, WhereClause(&self.generics))?;
Ok(())
}
Copy link
Member

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?

@sanxiyn
Copy link
Member Author

sanxiyn commented Mar 29, 2016

Extracted duplicated code to a function.

@alexcrichton
Copy link
Member

Thanks! Can you add a test for this as well?

@sanxiyn
Copy link
Member Author

sanxiyn commented Apr 5, 2016

Added a test.

@sanxiyn
Copy link
Member Author

sanxiyn commented Apr 12, 2016

Ping.

@steveklabnik
Copy link
Member

Gah! Sorry this slipped by.

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Apr 18, 2016

📌 Commit 87030f6 has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 18, 2016
…labnik

Avoid linking to itself in implementors section of trait page

Fix rust-lang#32474.
bors added a commit that referenced this pull request Apr 18, 2016
Rollup of 6 pull requests

- Successful merges: #32558, #32906, #33007, #33008, #33035, #33058
- Failed merges: #32912
@bors bors merged commit 87030f6 into rust-lang:master Apr 19, 2016
@sanxiyn sanxiyn deleted the rustdoc-self-link branch April 19, 2016 01:53
eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
…crichton

rustdoc: Fix missing type parameters on impls

They were broken by rust-lang#32558.

Fixes: rust-lang#33592
bors added a commit that referenced this pull request May 15, 2016
rustdoc: Fix missing type parameters on impls

They were broken by #32558.

Fixes: #33592
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 8, 2021
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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants