rust/src/librustc/hir
bors c67cf5fddc 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
2017-04-15 12:13:27 +00:00
..
map First attempt at global_asm! macro 2017-04-12 19:12:49 -05:00
check_attr.rs Refactor Attribute to use Path and TokenStream instead of MetaItem. 2017-03-14 04:03:43 +00:00
def_id.rs Allocate numerical values of DefIndexes from two seperate ranges. 2017-03-22 17:07:19 +01:00
def.rs First attempt at global_asm! macro 2017-04-12 19:12:49 -05:00
intravisit.rs Ensure walk_item visits GlobalAsm NodeId 2017-04-12 19:12:49 -05:00
itemlikevisit.rs rustc: rename TyCtxt's map field to hir. 2017-01-26 13:41:28 +02:00
lowering.rs Auto merge of #41316 - suchithjn225:issue-41272, r=eddyb 2017-04-15 12:13:27 +00:00
mod.rs First attempt at global_asm! macro 2017-04-12 19:12:49 -05:00
pat_util.rs rustc: embed path resolutions into the HIR instead of keeping DefMap. 2016-11-28 04:18:10 +02:00
print.rs First attempt at global_asm! macro 2017-04-12 19:12:49 -05:00
svh.rs Implement copy-on-write scheme for managing the incremental compilation cache. 2016-08-29 14:27:40 -04:00