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

Remove unnecessary structhead parameter from render_union #87464

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

camelid
Copy link
Member

@camelid camelid commented Jul 25, 2021

structhead is used for render_struct so that the logic for rendering
structs can be shared between struct variants and struct items. However,
render_union is not used anywhere except for rendering union items, so
its structhead parameter is unnecessary.

`structhead` is used for `render_struct` so that the logic for rendering
structs can be shared between struct variants and struct items. However,
`render_union` is not used anywhere except for rendering union items, so
its `structhead` parameter is unnecessary.
@camelid camelid added C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jul 25, 2021
@rust-highfive
Copy link
Collaborator

r? @CraftSpider

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2021
@camelid
Copy link
Member Author

camelid commented Jul 25, 2021

r? @jyn514

@rust-highfive rust-highfive assigned jyn514 and unassigned CraftSpider Jul 25, 2021
@jyn514
Copy link
Member

jyn514 commented Jul 26, 2021

@bors r+ rollup

@camelid is there a reason you picked me to review instead of CraftSpider? They're pretty active :)

@bors
Copy link
Contributor

bors commented Jul 26, 2021

📌 Commit dbb978a has been approved by jyn514

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 26, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 26, 2021
…laumeGomez

Rollup of 8 pull requests

Successful merges:

 - rust-lang#87436 (Suggest `;` on parse error where applicable)
 - rust-lang#87444 (Flatten nested `format!` calls)
 - rust-lang#87447 (Miri: santiy check that null pointer can never have an AllocId)
 - rust-lang#87457 (freebsd remove compiler workaround.)
 - rust-lang#87458 (Fix help message for modification to &T created by &{t})
 - rust-lang#87464 (Remove unnecessary `structhead` parameter from `render_union`)
 - rust-lang#87473 (Notify the Rust 2021 edition working group in zulip of edition bugs)
 - rust-lang#87474 (Add missing whitespace after attribute in HTML template)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 434223c into rust-lang:master Jul 27, 2021
@rustbot rustbot added this to the 1.56.0 milestone Jul 27, 2021
@camelid camelid deleted the rm-union-structhead branch July 27, 2021 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants