Skip to content

Conversation

@A4-Tacks
Copy link
Member

@A4-Tacks A4-Tacks commented Dec 5, 2025

Example

fn main() {
    let foobar = 1;
    format_args!("{{{f$0");
}

Before this PR

No complete

After this PR

fn main() {
    let foobar = 1;
    format_args!("{{{foobar");
}

fn main() {
    let foo_bar = 1;
    format_args!("{foo_$0}");
}

Before this PR

No complete

After this PR

fn main() {
    let foo_bar = 1;
    format_args!("{foo_bar}");
}

Example
---
```rust
fn main() {
    let foobar = 1;
    format_args!("{{{f$0");
}
```

**Before this PR**

No complete

**After this PR**

```rust
fn main() {
    let foobar = 1;
    format_args!("{{{foobar");
}
```
---
```rust
fn main() {
    let foo_bar = 1;
    format_args!("{foo_$0}");
}
```

**Before this PR**

No complete

**After this PR**

```rust
fn main() {
    let foo_bar = 1;
    format_args!("{foo_bar}");
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2025
@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Dec 9, 2025
Merged via the queue into rust-lang:master with commit 5375f11 Dec 9, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 9, 2025
@A4-Tacks A4-Tacks deleted the comp-unescaped-brace-fmt-str branch December 9, 2025 04:37
@lnicola lnicola changed the title Fix not complete format!("{{{$0") and underscore fix: fix completion in format strings Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants