]> git.lizzy.rs Git - rust.git/commit
Merge #1432
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 25 Jun 2019 21:06:17 +0000 (21:06 +0000)
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 25 Jun 2019 21:06:17 +0000 (21:06 +0000)
commit0129790a8f84a0858abcb1448e1052caa01fc41c
treeae3054305d4ee1c610135358e377a2331eaee871
parent4b0c37bd6e4cb3d47614ec6b42fb1deef9bc9324
parent3a2a13756f325b1dd8ddd54a0a0b24b99180fb82
Merge #1432

1432: Make fill_match_arm work with trivial arm r=matklad a=ironyman

Addresses this issue https://github.com/rust-analyzer/rust-analyzer/issues/1399

One minor issue I noticed is that complete_postfix creates an arm like this

```
                match E::X {
                    <|>_ => {},
                }
```

but fill_match_arms creates arms like this
```
                     E::X => (),
```

Co-authored-by: ironyman <ironyman@users.noreply.github.com>
Co-authored-by: Changyu Li <changyl@microsoft.com>