-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fix rustdoc generic param order #74992
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
Conversation
for param in &mut params { | ||
match param.kind { | ||
clean::GenericParamDefKind::Type { ref mut bounds, .. } => { | ||
*bounds = mem::take(bounds); | ||
} | ||
_ => panic!("expected only type parameters"), | ||
} | ||
} |
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.
Am I missing something here?
Looks good to me! It even simplifies the code so that's great. 👍 @bors: r+ |
📌 Commit b90bc8d has been approved by |
⌛ Testing commit b90bc8d with merge 5720e5675920c1f6ca4664c8f13ce75af150bcab... |
Hmm, surprised that CI builds are taking three hours again |
💥 Test timed out |
Let's see if this was spurious I guess @bors r=GuillaumeGomez |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit b90bc8d has been approved by |
…arth Rollup of 5 pull requests Successful merges: - rust-lang#74602 (Clarify the doc for MaybeUninit::zeroed on incorrect use) - rust-lang#74720 (Clean up E0728 explanation) - rust-lang#74992 (fix rustdoc generic param order) - rust-lang#75015 (Add Vec::spare_capacity_mut) - rust-lang#75022 (Use a slice pattern instead of rchunks_exact(_).next()) Failed merges: r? @ghost
fixes #61292
r? @varkor cc @GuillaumeGomez