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

Don't lint *_interior_mutable_const on unions due to potential ICE. #9539

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Sep 25, 2022

fixes #9445
cc rust-lang/rust#101113

This started ICE'ing sometime last month due to stricter UB checks. I'm not sure how we could check the value of a union as MIRI doesn't seem to store which field is currently active.

changelog: Don't ICE on const unions containing a !Freeze type.

@rust-highfive
Copy link

r? @flip1995

(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 Sep 25, 2022
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Sep 26, 2022

📌 Commit b180d95 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 27, 2022

⌛ Testing commit b180d95 with merge c153bd6...

@bors
Copy link
Collaborator

bors commented Sep 27, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing c153bd6 to master...

@bors bors merged commit c153bd6 into rust-lang:master Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: thread 'rustc' panicked at 'normalization works on validated constants...'
4 participants