Skip to content

Conversation

A4-Tacks
Copy link
Contributor

@A4-Tacks A4-Tacks commented Sep 8, 2025

Adds a stub struct with a definition matching the expression under the cursor.

Close #8665

Example

fn foo() {
    let bar = Bar$0 { x: 2, y: 3, force: true };
}

->

fn foo() {
    let bar = Bar { x: 2, y: 3, force: true };
}

struct Bar { x: i32, y: i32, force: bool }

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 8, 2025
Adds a stub struct with a definition matching the expression under the cursor.

Example
---
```rust
fn foo() {
    let bar = Bar$0 { x: 2, y: 3, force: true };
}
```
->
```rust
fn foo() {
    let bar = Bar { x: 2, y: 3, force: true };
}

struct Bar { x: i32, y: i32, force: bool }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assist: Create struct from unresolved struct literal
2 participants