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

Fix normalization of ZST #116445

Closed
wants to merge 1 commit into from
Closed

Fix normalization of ZST #116445

wants to merge 1 commit into from

Conversation

ouz-a
Copy link
Contributor

@ouz-a ouz-a commented Oct 5, 2023

Before this change we were trying to normalize aliased generic type, which caused normalization err now, we reveal all and, get type behind the alias.

Fixes rust-lang/project-stable-mir#38

r? @oli-obk

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 5, 2023
@rustbot
Copy link
Collaborator

rustbot commented Oct 5, 2023

This PR changes Stable MIR

cc @oli-obk, @celinval, @spastorino

@oli-obk
Copy link
Contributor

oli-obk commented Oct 5, 2023

This avoids an ICE, but that's just because you're dropping information on the floor. You could just replace all FnDefs with Bool and it would also stop ICEing.

This PR cannot be merged with its current solution, it will just cause us problems later because now there's invalid data somewhere silently.

@ouz-a
Copy link
Contributor Author

ouz-a commented Oct 5, 2023

This avoids an ICE, but that's just because you're dropping information on the floor. You could just replace all FnDefs with Bool and it would also stop ICEing.

This PR cannot be merged with its current solution, it will just cause us problems later because now there's invalid data somewhere silently.

Okay, will investigate more and come up with better solution

@ouz-a ouz-a closed this Oct 5, 2023
@ouz-a ouz-a deleted the smir_smir branch October 5, 2023 18:22
@ouz-a ouz-a restored the smir_smir branch October 6, 2023 09:45
@ouz-a ouz-a deleted the smir_smir branch October 6, 2023 14:06
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. 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.

Panic while trying to get item body due to NormalizationFailure
3 participants