Repository navigation
Fix 160945 - #163134
Draft
Catskhi wants to merge 3 commits into
Draft
Fix 160945#163134Catskhi wants to merge 3 commits into
Catskhi wants to merge 3 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.