-
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
Fix duplicated bounds printing in rustdoc #59033
Conversation
Fix duplicated bounds printing in rustdoc Fixes #56331. Once again, I couldn't find out how to reproduce it with a small code so no test... :-/ r? @QuietMisdreavus
☀️ Try build successful - checks-travis |
What is the Anyway, you can trigger the bug by using the following crate and then running docs on another crate that re-exports use std::marker::PhantomData;
pub struct SomeStruct<'a, T: 'a> {
_marker: PhantomData<&'a T>,
} The bug seems to be related to #58894 (comment), and the proposed fix in that comment seems like a better fix than the one in this PR. |
Rustdoc-UI tests ended successfully (and I know that through (not so dark) magic)! Click to expand the log.
|
Ping from triage... @GuillaumeGomez @QuietMisdreavus |
This is still my opinion on this PR. It also does not include the test proposed in that comment. |
I didn't update this PR since then. However I intend to add the test into the other PR. |
ping from triage @QuietMisdreavus any updates? |
Did #58894 fix the issue this PR tried to fix? This PR may not be necessary any more since that other one was generalized. |
ping from triage @GuillaumeGomez @QuietMisdreavus any updates on this? |
@bors: r+ |
📌 Commit 140bb5d has been approved by |
Fix duplicated bounds printing in rustdoc Fixes #56331. Once again, I couldn't find out how to reproduce it with a small code so no test... :-/ r? @QuietMisdreavus
☀️ Test successful - checks-travis, status-appveyor |
Fixes #56331.
Once again, I couldn't find out how to reproduce it with a small code so no test... :-/
r? @QuietMisdreavus