about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-06 00:46:21 +0000
committerbors <bors@rust-lang.org>2023-09-06 00:46:21 +0000
commit25283f4e138866eed649fa6b18728c22662b2224 (patch)
treea129aa595369e76b918a6f131bc25551d18e25ba /compiler/rustc_mir_transform/src
parentff902fff1fcf650c9c33164cf2533e4995637fe1 (diff)
parent89235fd8379d6b1b0bcea704e162ba3d314906da (diff)
downloadrust-25283f4e138866eed649fa6b18728c22662b2224.tar.gz
rust-25283f4e138866eed649fa6b18728c22662b2224.zip
Auto merge of #115371 - matthewjasper:if-let-guard-parsing, r=cjgillot
Make if let guard parsing consistent with normal guards

- Add tests that struct expressions are not allowed in `if let` and `while let` (no change, consistent with `if` and `while`)
- Allow struct expressions in `if let` guards (consistent with `if` guards).

r? `@cjgillot`

Closes #93817
cc #51114
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions