rust-analyzer/crates
A4-Tacks 6d85fd739f
Fix expand rest pattern in tuple and slice pattern
Assist: expand_tuple_rest_pattern

Fills fields by replacing rest pattern in tuple patterns.

Example
---
```
fn foo(bar: (char, i32, i32)) {
    let (ch, ..$0) = bar;
}
```
->
```
fn foo(bar: (char, i32, i32)) {
    let (ch, _1, _2) = bar;
}
```

---

Assist: expand_slice_rest_pattern

Fills fields by replacing rest pattern in slice patterns.

Example
---
```
fn foo(bar: [i32; 3]) {
    let [first, ..$0] = bar;
}
```
->
```
fn foo(bar: [i32; 3]) {
    let [first, _1, _2] = bar;
}
```
2025-09-26 14:44:05 +08:00
..
base-db Expand target info to include the architecture 2025-09-09 13:47:26 +03:00
cfg cargo clippy --fix 2025-07-31 10:55:10 +02:00
edition chore: Bump Edition::CURRENT to 2024 2025-03-17 12:29:19 +01:00
hir Merge pull request #20738 from jackh726/next-trait-solver-next4 2025-09-25 10:30:54 +00:00
hir-def Switch next-solver related rustc dependencies of r-a to crates.io ones 2025-09-24 21:28:50 +09:00
hir-expand When renaming a parameter to self, change callers to use method call syntax 2025-08-02 21:39:22 +03:00
hir-ty Merge pull request #20738 from jackh726/next-trait-solver-next4 2025-09-25 10:30:54 +00:00
ide Merge pull request #20738 from jackh726/next-trait-solver-next4 2025-09-25 10:30:54 +00:00
ide-assists Fix expand rest pattern in tuple and slice pattern 2025-09-26 14:44:05 +08:00
ide-completion Remove non-ns version of impl_self_ty and impl_trait 2025-09-24 05:45:12 +00:00
ide-db Merge pull request #20736 from A4-Tacks/fix-invert-if-let-chain 2025-09-26 05:36:52 +00:00
ide-diagnostics Fix fixes for unused raw variables 2025-09-25 19:58:45 +08:00
ide-ssr Merge pull request #20517 from Veykril/veykril/push-wrurmtqppzus 2025-09-16 07:28:47 +00:00
intern Implement fallback properly 2025-09-24 20:42:06 +03:00
load-cargo cargo clippy --fix 2025-07-31 10:55:10 +02:00
mbe cargo clippy --fix 2025-07-31 10:55:10 +02:00
parser Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
paths Don't run doctests 2025-06-23 00:50:22 +03:00
proc-macro-api Add version command to proc-macro-srv 2025-07-31 10:10:50 +02:00
proc-macro-srv Reorganize proc-macro-srv 2025-07-31 09:55:07 +02:00
proc-macro-srv-cli Add version command to proc-macro-srv 2025-07-31 10:10:50 +02:00
profile Implement next trait solver 2025-08-09 16:08:58 +00:00
project-model fix: Make flycheck clearing dependency-aware 2025-09-20 01:35:35 +09:00
query-group-macro Implement next trait solver 2025-08-09 16:08:58 +00:00
rust-analyzer Clarify rust-analyzer.inlayHints.maxLength is not a hard guarantee 2025-09-22 04:16:50 +03:00
span Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
stdx Add some test for stdx::replace 2025-09-20 21:15:12 +08:00
syntax Merge pull request #20624 from A4-Tacks/fix-syn-lifetime-bounds 2025-09-09 07:35:19 +00:00
syntax-bridge remove P 2025-08-09 15:47:01 +08:00
test-fixture Expand target info to include the architecture 2025-09-09 13:47:26 +03:00
test-utils Port a bunch of stuff from rustc and fix a bunch of type mismatches/diagnostics 2025-09-15 18:56:17 +03:00
toolchain Don't run doctests 2025-06-23 00:50:22 +03:00
tt cargo clippy --fix 2025-07-31 10:55:10 +02:00
vfs Bump salsa 2025-07-03 10:05:16 +02:00
vfs-notify cargo clippy --fix 2025-07-31 10:55:10 +02:00