1
Fork 0
rust/compiler/rustc_middle/src
bors b7404c898a Auto merge of #88572 - matthewjasper:if-let-scoping-fix, r=oli-obk
Fix drop handling for `if let` expressions

MIR lowering for `if let` expressions is now more complicated now that
`if let` exists in HIR. This PR adds a scope for the variables bound in
an `if let` expression and then uses an approach similar to how we
handle loops to ensure that we reliably drop the correct variables.

Closes #88307
cc `@flip1995` `@richkadel` `@c410-f3r`
2021-09-03 20:31:43 +00:00
..
dep_graph Update DepNode's size 2021-07-10 21:46:31 +08:00
hir Compute all_traits_impls during resolution. 2021-09-01 20:13:16 +02:00
ich rename assert_matches module 2021-07-16 09:18:14 -07:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Fix drop handling for if let expressions 2021-09-01 23:47:41 +01:00
mir Rollup merge of #88532 - ptrojahn:single_use, r=davidtwco 2021-09-02 19:10:16 +02:00
query Auto merge of #88121 - camelid:better-recursive-alias-error, r=estebank 2021-09-01 03:43:37 +00:00
traits Enforce diverging let...else 2021-08-30 20:18:42 -05:00
ty Compute proc_macros in resolutions. 2021-09-01 20:13:16 +02:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Remove unused arena macro args 2021-08-30 13:09:38 +02:00
lib.rs Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
lint.rs Rename force-warns to force-warn 2021-07-21 15:41:10 +02:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs
thir.rs Fix drop handling for if let expressions 2021-09-01 23:47:41 +01:00