Skip to content

Fix 160945 - #163134

Draft
Catskhi wants to merge 3 commits into
rust-lang:mainfrom
Catskhi:fix-160945
Draft

Fix 160945#163134
Catskhi wants to merge 3 commits into
rust-lang:mainfrom
Catskhi:fix-160945

Conversation

@Catskhi

@Catskhi Catskhi commented Sep 21, 2026

Copy link
Copy Markdown

LLM disclosure: I used LLM to understand the project and concepts around it, understand Rust code, help me to investigate possible solutions and to review my code, giving me tips about my implementation.

Hello there, this is my first contribution to the Rust community, this PR aims to solve the issue #160945.

First of all, the ICE occurs when we have some relevant SimplifyCfg passes disabled, which leaves unreachable MIR blocks in the MIR, so a drop elaboration can query one of them and the ResultsCursor rejection of that query will lead to an ICE.

My solution for that is to make ResultsCursor to track reachability internally through the use of MaybeReachable, so an unreachable block will not have its effects applied when the ResultsCursor access it.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 21, 2026
@rust-log-analyzer

This comment has been minimized.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

3 participants