-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
MIR sanity check improvements #73832
Copy link
Copy link
Open
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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))