Skip to content

Conversation

@A4-Tacks
Copy link
Member

Flips operands of a range expression.

Example

fn main() {
    let _ = 90..$02;
}

->

fn main() {
    let _ = 2..90;
}

fn main() {
    let _ = 90..$0;
}

->

fn main() {
    let _ = ..90;
}

Flips operands of a range expression.

Example
---
```rust
fn main() {
    let _ = 90..$02;
}
```
->
```rust
fn main() {
    let _ = 2..90;
}
```
---
```rust
fn main() {
    let _ = 90..$0;
}
```
->
```rust
fn main() {
    let _ = ..90;
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

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

Thanks!

@Veykril Veykril added this pull request to the merge queue Oct 26, 2025
Merged via the queue into rust-lang:master with commit ea2c027 Oct 26, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 26, 2025
@lnicola lnicola changed the title Add ide-assist: flip_range_expr feat: add "Flip range expression" assist Oct 26, 2025
@A4-Tacks A4-Tacks deleted the flip-range branch October 26, 2025 09: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