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 (https://github.com/rust-lang/rust/pull/72796#discussion_r446527001) * `SetDiscriminant` could have some invariants checked (https://github.com/rust-lang/rust/pull/72796#discussion_r446624972)
This issue collect various proposals for improvements to the MIR sanity check so that they do not get lost:
DropAndReplacecould test that given and expected type match (MIR sanity check: validate types on assignment #72796 (comment))SetDiscriminantcould have some invariants checked (MIR sanity check: validate types on assignment #72796 (comment))