Skip to content

Conversation

A4-Tacks
Copy link
Contributor

@A4-Tacks A4-Tacks commented Oct 2, 2025

Flips two if-else-if branches.

Example

fn foo() {
    let n = if cond1 { 2 } else$0 if cond2 { 3 } else { 0 };
}

->

fn foo() {
    let n = if cond2 { 3 } else if cond1 { 2 } else { 0 };
}

Flips two if-else-if branches.

Example
---
```rust
fn foo() {
    let n = if cond1 { 2 } else$0 if cond2 { 3 } else { 0 };
}
```
->
```rust
fn foo() {
    let n = if cond2 { 3 } else if cond1 { 2 } else { 0 };
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 2, 2025
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