Skip to content

minor: remove whitespaces in remove use-tree braces#22721

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:use-tree-whitespaces
Open

minor: remove whitespaces in remove use-tree braces#22721
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:use-tree-whitespaces

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Jul 4, 2026

Copy link
Copy Markdown
Member

Example

struct X; struct Y;
mod z {
    $0use super::{
        X, Y,
    };$0
    fn w() { let x = X; }
}

Before this PR

struct X; struct Y;
mod z {
    use super::
        X
    ;
    fn w() { let x = X; }
}

After this PR

struct X; struct Y;
mod z {
    use super::X;
    fn w() { let x = X(); }
}

Example
---
```rust
struct X; struct Y;
mod z {
    $0use super::{
        X, Y,
    };$0
    fn w() { let x = X; }
}
```

**Before this PR**

```rust
struct X; struct Y;
mod z {
    use super::
        X
    ;
    fn w() { let x = X; }
}
```

**After this PR**

```rust
struct X; struct Y;
mod z {
    use super::X;
    fn w() { let x = X(); }
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 4, 2026
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.

2 participants