rust/crates
bors[bot] 7409880a07
Merge #11061
11061: Support "move if to guard" for if else chains r=weirane a=weirane

The idea is to first parse the if else chain into a vector of `(Condition, BlockExpr)`s until we reach an iflet branch, an else branch, or the end (the tail). Then add the match arms with guard for the vector, and add the tail with no if guard.

Because the whole original match arm is replaced and the generated code doesn't have redundent commas, I removed redundent commas in some test cases.

Closes #11033.

Co-authored-by: Wang Ruochen <wrc@ruo-chen.wang>
2022-01-03 17:59:00 +00:00
..
base_db
cfg
flycheck
hir Fix tool module classification not working correctly 2022-01-02 23:14:18 +01:00
hir_def minor: add missing test 2022-01-03 17:21:43 +03:00
hir_expand minor: drop dead code 2022-01-02 19:03:38 +03:00
hir_ty Merge #11115 2022-01-03 16:00:05 +00:00
ide Merge #11177 2022-01-03 02:03:03 +00:00
ide_assists Merge #11061 2022-01-03 17:59:00 +00:00
ide_completion fix: Enable completions for <_>::$0 2022-01-01 22:20:03 +01:00
ide_db minor: Cleanup syntax highlighting 2022-01-02 22:23:05 +01:00
ide_diagnostics
ide_ssr compress 2021-12-28 19:17:34 +03:00
limit
mbe simplify 2022-01-03 16:27:16 +03:00
parser add empty input tests 2022-01-02 18:50:32 +03:00
paths
proc_macro_api
proc_macro_srv
proc_macro_test
profile
project_model
rust-analyzer internal: Handle macro calls better in highlighting 2022-01-02 19:10:10 +01:00
sourcegen
stdx minor: replace panics with types 2022-01-02 19:05:37 +03:00
syntax Migrate to SyntaxNodePtr in new rowan 2021-12-29 23:48:53 -08:00
test_utils fix: Do not complete Drop::drop, complete std::mem::drop instead 2021-12-22 02:25:38 +01:00
text_edit
toolchain
tt
vfs
vfs-notify