Skip to content

Do not promote union field accesses #51328

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

Merged
merged 2 commits into from
Jun 4, 2018
Merged

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Jun 3, 2018

r? @eddyb

technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.

@oli-obk oli-obk added beta-nominated Nominated for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 3, 2018
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 3, 2018
@eddyb
Copy link
Member

eddyb commented Jun 4, 2018

@bors try

cc @rust-lang/infra
We probably don't need to block on it, but a check-only crater run could help.

@bors
Copy link
Collaborator

bors commented Jun 4, 2018

⌛ Trying commit eb31ae2 with merge 837532cd7e0efb12179afcab1098798e97dd5fab...

@eddyb
Copy link
Member

eddyb commented Jun 4, 2018

@bors r+

cc @rust-lang/compiler

@bors
Copy link
Collaborator

bors commented Jun 4, 2018

📌 Commit eb31ae2 has been approved by eddyb

@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 Jun 4, 2018
@bors
Copy link
Collaborator

bors commented Jun 4, 2018

⌛ Testing commit eb31ae2 with merge cdc193d...

bors added a commit that referenced this pull request Jun 4, 2018
Do not promote union field accesses

r? @eddyb

technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.
@bors
Copy link
Collaborator

bors commented Jun 4, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing cdc193d to master...

@bors bors merged commit eb31ae2 into rust-lang:master Jun 4, 2018
@oli-obk oli-obk deleted the no_union_promotion branch June 4, 2018 14:24
@nikomatsakis nikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jun 7, 2018
@Mark-Simulacrum
Copy link
Member

Looks like the crater run had 0 reported regressions: https://cargobomb-reports.s3.amazonaws.com/pr-51328/index.html.

@kennytm kennytm removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 9, 2018
bors added a commit that referenced this pull request Jun 9, 2018
[beta] Rollup backports

Merged and accepted:

* #51417: Revert #49719
* #51283: Deny #[cfg] and #[cfg_attr] on generic parameters
* #51328: Do not promote union field accesses

r? @ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants