Open
Description
This issue collect various proposals for improvements to the MIR sanity check so that they do not get lost:
- Function calls and
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))