rust/crates
bors[bot] 3a79af7e27
Merge #10491
10491: Support nested type on replace if let with match r=k-nasa a=k-nasa

## Why

close: https://github.com/rust-analyzer/rust-analyzer/issues/8690

Now, Replacing if-let with match cant't output exhaustive patterns code.
This was because the `else` conversion used specific types (ex. Option, Result) instead of wildcards.

I thought it was more of a problem to generate non-exhaustive patterns than the benefits of using the concrete one.

How about using wildcards in `else`? 
Is this change policy acceptable?

## What

- using wildcards on `make_else_arm`
- Change test cases

Co-authored-by: k-nasa <htilcs1115@gmail.com>
2021-10-14 22:41:06 +00:00
..
base_db internal: add integrated test for token censoring 2021-10-10 16:52:21 +03:00
cfg a few clippy fixes 2021-10-14 19:57:21 +01:00
flycheck a few clippy fixes 2021-10-14 19:57:21 +01:00
hir Merge #10546 2021-10-14 19:51:34 +00:00
hir_def internal: add integrated test for token censoring 2021-10-10 16:52:21 +03:00
hir_expand Merge #10514 2021-10-10 18:09:13 +00:00
hir_ty internal: update expect 2021-10-09 17:17:16 +03:00
ide a few clippy fixes 2021-10-14 19:57:21 +01:00
ide_assists Merge #10491 2021-10-14 22:41:06 +00:00
ide_completion Saw a FIXME comment and decided to fix it. 2021-10-12 11:52:31 -04:00
ide_db resolve ControlFlow ourself instead of hard coding. 2021-10-13 21:19:41 +08:00
ide_diagnostics Merge #10504 2021-10-10 07:17:52 +00:00
ide_ssr internal: update expect 2021-10-09 17:17:16 +03:00
limit
mbe internal: clean up code duplication 2021-10-10 21:08:10 +03:00
parser Support let...else 2021-10-07 17:06:24 +02:00
paths
proc_macro_api
proc_macro_srv internal: update expect 2021-10-09 17:17:16 +03:00
proc_macro_test
profile
project_model Merge #10503 2021-10-14 11:42:53 +00:00
rust-analyzer Merge #10517 2021-10-14 11:57:16 +00:00
sourcegen
stdx Kill the child process before waiting in streaming_output 2021-10-14 13:53:25 +02:00
syntax Merge #10545 2021-10-14 20:10:59 +00:00
test_utils internal: move tests 2021-10-10 12:39:58 +03:00
text_edit
toolchain
tt
vfs Merge #10423 2021-10-12 18:35:03 +00:00
vfs-notify