rust/crates
bors[bot] ada51f2ac4
Merge #11195 #11202
11195: Correctly pass through reference modifiers when extracting a variable r=Veykril a=Vannevelj

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10034

This will parse the field expression and look at whether it is marked `&` or `&mut` and include a modifier if appropriate. The original issue only mentions `&mut params` but I've found that this issue also occurs for `&mut locals` as well as `&params` and `&locals` so I've also added tests for them.

I'd definitely be interested in hearing where I can make my code more idiomatic for Rust.

11202: fix: Fix `apply_demorgan` assist hanging for certain binary expressions r=Veykril a=Veykril

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10963
bors r+

Co-authored-by: Jeroen Vannevel <jer_vannevel@outlook.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-01-05 21:30:50 +00:00
..
base_db
cfg
flycheck
hir Merge #11112 2022-01-04 21:51:37 +00:00
hir_def Merge #11157 2022-01-04 16:49:47 +00:00
hir_expand minor: drop dead code 2022-01-02 19:03:38 +03:00
hir_ty Remove unused lifetime 2022-01-05 10:19:10 -05:00
ide Merge #11112 2022-01-04 21:51:37 +00:00
ide_assists Merge #11195 #11202 2022-01-05 21:30:50 +00:00
ide_completion Merge #11201 2022-01-05 20:45:27 +00:00
ide_db Always put a space after dyn in macro pretty-printing 2022-01-05 18:06:50 +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 Rename and use the 1.55 ABI for 1.54 2022-01-04 14:06:26 +02:00
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
text_edit
toolchain
tt
vfs
vfs-notify