rust/crates
bors[bot] 6df91a84dc
Merge #6731
6731: Add replace_match_with_if_let assist r=matklad a=Veykril

Basically the counterpart to `replace_if_let_with_match`, I personally sometimes want to replace matches like
```rust
match foo {
    pat => expr,
    _ => (),
}
``` 
into the corresponding
```rust
if let pat = foo {
    expr
}
```
which is the main reasoning behind this.
I put this into the same file as `replace_if_let_with_match` because the are complementing each other and I would probably rename the file to something like `replace_if_let_match` but I didn't do that for now because I was unsure whether git would still view this as a rename or not due to the amount of changes in the file so that the diff is still properly visible for now.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-12-07 15:00:07 +00:00
..
arena
assists Add replace_match_with_if_let assist 2020-12-05 15:41:36 +01:00
base_db
cfg
completion Update attributes completion list 2020-12-06 16:46:24 +01:00
flycheck Pin cargo_metadata 2020-11-25 10:11:53 -05:00
hir Add slightly more profiling details 2020-12-04 20:26:28 +01:00
hir_def Make compile_error! message match upstream rustc 2020-12-03 19:07:37 +01:00
hir_expand Make compile_error! message match upstream rustc 2020-12-03 19:07:37 +01:00
hir_ty Upgrade Chalk 2020-12-07 11:48:58 +01:00
ide Merge #6721 2020-12-04 18:46:44 +00:00
ide_db Add slightly more profiling details 2020-12-04 20:26:28 +01:00
mbe Add dedicated error for "proc macro not found" 2020-11-27 13:50:20 +01:00
parser
paths
proc_macro_api Don't respawn proc macro server on crash 2020-12-04 20:11:56 +01:00
proc_macro_srv Pin cargo_metadata 2020-11-25 10:11:53 -05:00
proc_macro_test
profile
project_model Pin cargo_metadata 2020-11-25 10:11:53 -05:00
rust-analyzer Apply suggestions from code review 2020-12-06 14:23:55 +01:00
ssr
stdx
syntax Add replace_match_with_if_let assist 2020-12-05 15:41:36 +01:00
test_utils
text_edit
toolchain
tt Simplify error formatting 2020-11-26 21:07:15 +02:00
vfs Extract tests module to file in vfs crate 2020-12-01 00:10:12 +09:00
vfs-notify