diff options
| author | bors <bors@rust-lang.org> | 2017-04-15 12:13:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-04-15 12:13:27 +0000 |
| commit | c67cf5fddc1d2807e9942c1f9793c3230367332b (patch) | |
| tree | 47e19bda06f63dda3841c82d74f60cfa9ae8859f /src/test/run-pass/thinlto | |
| parent | 5f13a3b540ab6024665322d716e487c800645f24 (diff) | |
| parent | 5649b3796fa3f8b32116f13e81b44361169ec686 (diff) | |
| download | rust-c67cf5fddc1d2807e9942c1f9793c3230367332b.tar.gz rust-c67cf5fddc1d2807e9942c1f9793c3230367332b.zip | |
Auto merge of #41316 - suchithjn225:issue-41272, r=eddyb
Do not desugar if-let-else to match arm guards
Fixes #41272
Changed the desugaring code
**Before**
```rust
match <sub_expr> {
<pat> => <body>,
[_ if <else_opt_if_cond> => <else_opt_if_body>,]
_ => [<else_opt> | ()]
}
```
**After**
```rust
match <sub_expr> {
<pat> => <body>,
_ => [<else_opt> | ()]
}
```
With this fix, it doesn't cause E0301
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
