You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #47291 - varkor:unreachable-never-patterns, r=<try>
Eager unreachable blocks for `!` type
This change optimises the generation of MIR in the presence of `!`. Blocks are now immediately marked as unreachable if:
- A function argument is derived from the value of type `!`.
- A match arm binds a value whose type is derived from `!`.
- An rvalue is created whose type is derived from `!`.
This avoids unnecessary MIR generation and also fixes#43061 and #41446.
r? @nikomatsakis
0 commit comments