rust-analyzer/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 Merge #11069 2021-12-20 16:50:35 +00:00
cfg Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
flycheck Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
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 Merge #11028 2021-12-20 13:45:35 +00:00
ide_ssr compress 2021-12-28 19:17:34 +03:00
limit Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
mbe simplify 2022-01-03 16:27:16 +03:00
parser add empty input tests 2022-01-02 18:50:32 +03:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api Merge #11028 2021-12-20 13:45:35 +00:00
proc_macro_srv Merge #11028 2021-12-20 13:45:35 +00:00
proc_macro_test Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
profile Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
project_model Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
rust-analyzer internal: Handle macro calls better in highlighting 2022-01-02 19:10:10 +01:00
sourcegen Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
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 Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs-notify Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00