Skip to content

Conversation

@A4-Tacks
Copy link
Member

Input:

fn f() {
    i$0f x == 3 {
        if y == 4 {
            1
        }
    }
}

Before this PR:

fn f() {
    if x == 3 && y == 4 {
            1
        }
}

After this PR:

fn f() {
    if x == 3 && y == 4 {
        1
    }
}

**Input**:

```rust
fn f() {
    i$0f x == 3 {
        if y == 4 {
            1
        }
    }
}
```

**Before this PR**:

```rust
fn f() {
    if x == 3 && y == 4 {
            1
        }
}
```

**After this PR**:

```rust
fn f() {
    if x == 3 && y == 4 {
        1
    }
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 30, 2025
@A4-Tacks A4-Tacks mentioned this pull request Nov 19, 2025
41 tasks
@Veykril Veykril added this pull request to the merge queue Dec 21, 2025
Merged via the queue into rust-lang:master with commit 47037ad Dec 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 21, 2025
@A4-Tacks A4-Tacks deleted the nested-if-indent branch December 21, 2025 14:27
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