Skip to content

borrow_interior_mutable_const ICE into FN #13877

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

blyxyas
Copy link
Member

@blyxyas blyxyas commented Dec 25, 2024

This PR just makes sure that we exit the function before getting an ICE and adds a regression test. Related to #12979. We would need to keep researching the issue, but as the ICEing code isn't that complicated, getting a hotfix into nightly is urgent.

changelog:[borrow_interior_mutable_const] Fix ICE #12979

@rustbot
Copy link
Collaborator

rustbot commented Dec 25, 2024

r? @xFrednet

rustbot has assigned @xFrednet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 25, 2024
Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tiny suggestion, but then we can r-merge-queue-it xP

Convert the ICE reported in rust-lang#12979 into a false negative.
We prefer a false negative to a ICE (because the ICE could
still affect the user even when not activating the lint).
Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tack!

Roses are red,
Violets are blue,
Nitpicky comments,
as always :D Thanks queen!

@xFrednet xFrednet added this pull request to the merge queue Dec 29, 2024
Merged via the queue into rust-lang:master with commit f5f1abd Dec 29, 2024
9 checks passed
@blyxyas blyxyas deleted the fix-non_copy_const branch December 29, 2024 16:33
# for free to join this conversation on GitHub. Already have an account? # 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.

3 participants