Commit 2c48c39
committed
Fix missing RestPat for convert_named_struct_to_tuple_struct
Example
---
```rust
struct Inner;
struct A$0 { inner: Inner }
fn foo(A { .. }: A) {}
```
**Before this PR**:
```rust
struct Inner;
struct A(Inner);
fn foo(A(): A) {}
```
**After this PR**:
```rust
struct Inner;
struct A(Inner);
fn foo(A(..): A) {}
```1 parent 7c871c2 commit 2c48c39
File tree
1 file changed
+34
-0
lines changed- src/tools/rust-analyzer/crates/ide-assists/src/handlers
1 file changed
+34
-0
lines changedLines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
349 | 383 | | |
350 | 384 | | |
351 | 385 | | |
| |||
0 commit comments