diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-01-05 21:30:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-05 21:30:50 +0000 |
| commit | ada51f2ac499b9746d619a98afbccdec0212b5d6 (patch) | |
| tree | 929976c6d4ec7e6c9e86f698e93c1ac8e219608a /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 735b542146eb729bbef90bdb50841ccc99ab46c5 (diff) | |
| parent | 035a373a6a025bd9b2f115adbe0884861ca2a9e4 (diff) | |
| parent | b92ed115c1b4760c33eaa0005fec1e85f9e18206 (diff) | |
| download | rust-ada51f2ac499b9746d619a98afbccdec0212b5d6.tar.gz rust-ada51f2ac499b9746d619a98afbccdec0212b5d6.zip | |
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 `¶ms` 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>
