diff options
| author | bors <bors@rust-lang.org> | 2019-07-06 06:15:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-07-06 06:15:44 +0000 |
| commit | 254f2014954bd66da206232490824975c0c662f1 (patch) | |
| tree | 0692cdd08d580f827d1ee5b7837cf2a2f3c4ce52 /src/test/ui/structs-enums/tuple-struct-construct.rs | |
| parent | b820c761744db080ff7a4ba3ac88d259065cb836 (diff) | |
| parent | 9b1d513e47b22180f5b73f64bb97ef7390efe7a0 (diff) | |
| download | rust-254f2014954bd66da206232490824975c0c662f1.tar.gz rust-254f2014954bd66da206232490824975c0c662f1.zip | |
Auto merge of #61988 - Centril:there-is-only-loop, r=matthewjasper
[let_chains, 3/6] And then there was only Loop
Here we remove `hir::ExprKind::While`.
Instead, we desugar: `'label: while $cond $body` into:
```rust
'label: loop {
match DropTemps($cond) {
true => $body,
_ => break,
}
}
```
Per https://github.com/rust-lang/rust/issues/53667#issuecomment-471583239.
This is a follow up to https://github.com/rust-lang/rust/pull/59288 which did the same for `if` expressions.
r? @matthewjasper
Diffstat (limited to 'src/test/ui/structs-enums/tuple-struct-construct.rs')
0 files changed, 0 insertions, 0 deletions
