Skip to content

fix: do not complete semicolon in match-expr place#22408

Merged
ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
A4-Tacks:no-semi-match-expr
May 20, 2026
Merged

fix: do not complete semicolon in match-expr place#22408
ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
A4-Tacks:no-semi-match-expr

Conversation

@A4-Tacks

Copy link
Copy Markdown
Member

Example

fn foo() {}
fn bar() {
    match fo$0 {}
}

Before this PR

fn foo() {}
fn bar() {
    match foo();$0 {}
}

After this PR

fn foo() {}
fn bar() {
    match foo()$0 {}
}

Example
---
```rust
fn foo() {}
fn bar() {
    match fo$0 {}
}
```

**Before this PR**

```rust
fn foo() {}
fn bar() {
    match foo();$0 {}
}
```

**After this PR**

```rust
fn foo() {}
fn bar() {
    match foo()$0 {}
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 20, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue May 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue May 20, 2026
Merged via the queue into rust-lang:master with commit 7f916ab May 20, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 20, 2026
@A4-Tacks A4-Tacks deleted the no-semi-match-expr branch May 24, 2026 01:35
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