8000 Fix not applicable on trailing comma for remove_dbg by A4-Tacks · Pull Request #20714 · rust-lang/rust-analyzer · GitHub
[go: up one dir, main page]

Skip to content

Conversation

A4-Tacks
Copy link
Contributor

remove_dbg not applicable for whitespaces after trailing comma

Example

fn foo() {
    dbg!(
        bar(),
    );
}

Before this PR:

Assist not applicable

After this PR:

fn foo() {
    bar();
}

`remove_dbg` not applicable for whitespaces after trailing comma

Example
---
```rust
fn foo() {
    dbg!(
        bar(),
    );
}
```

**Before this PR**:

Assist not applicable

**After this PR**:

```rust
fn foo() {
    bar();
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 21, 2025
Copy link
Member
@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Sep 21, 2025
Merged via the queue into rust-lang:master with commit e7d7cb4 Sep 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 21, 2025
@A4-Tacks A4-Tacks deleted the rm-dbg-trailing-comma branch September 21, 2025 07:49
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

0