rust/compiler
Dylan DPC 0083cd2fd4
Rollup merge of #98574 - dingxiangfei2009:let-else-thir, r=oli-obk
Lower let-else in MIR

This MR will switch to lower let-else statements in MIR building instead.

To lower let-else in MIR, we build a mini-switch two branches. One branch leads to the matching case, and the other leads to the `else` block. This arrangement will allow temporary lifetime analysis running as-is so that the temporaries are properly extended according to the same rule applied to regular `let` statements.

cc https://github.com/rust-lang/rust/issues/87335

Fix #98672
2022-07-13 19:32:33 +05:30
..
2022-07-02 23:30:03 +01:00
2022-07-02 02:11:49 -05:00
2022-07-11 23:20:39 +02:00
2022-07-11 23:20:39 +02:00
2022-07-13 04:49:32 +00:00
2022-07-11 23:20:39 +02:00
2022-07-11 23:20:36 +02:00
2022-07-06 06:41:53 +01:00
2022-07-06 06:41:53 +01:00