Skip to content

Fix complete semicolon in array expression#21402

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:no-semicolon-array
Feb 12, 2026
Merged

Fix complete semicolon in array expression#21402
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:no-semicolon-array

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

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

Partial of #21032

Example

fn foo() {}
fn bar() {
    let _ = [fo$0];
}

Before this PR

fn foo() {}
fn bar() {
    let _ = [foo();$0];
}

After this PR

fn foo() {}
fn bar() {
    let _ = [foo()$0];
}

Example
---
```rust
fn foo() {}
fn bar() {
    let _ = [fo$0];
}
```

**Before this PR**

```rust
fn foo() {}
fn bar() {
    let _ = [foo();$0];
}
```

**After this PR**

```rust
fn foo() {}
fn bar() {
    let _ = [foo()$0];
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 4, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Feb 12, 2026
Merged via the queue into rust-lang:master with commit 2a16118 Feb 12, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 12, 2026
@A4-Tacks A4-Tacks deleted the no-semicolon-array branch February 13, 2026 03:44
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