-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
MIR sanity check improvements #73832
Comments
@oli-obk re: |
Right, so let's check that the local is an |
Actually, does |
It works for all types (returning 0 for things that are neither Adt nor generator). That doesn't mean MIR building ever creates it and I don't think I've seen it before. |
|
MIR building creates it for every |
This issue collect various proposals for improvements to the MIR sanity check so that they do not get lost:
DropAndReplace
could test that given and expected type match (MIR sanity check: validate types on assignment #72796 (comment))SetDiscriminant
could have some invariants checked (MIR sanity check: validate types on assignment #72796 (comment))The text was updated successfully, but these errors were encountered: