Skip to content

feat: add fixes for array length for type_mismatch#22734

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:array-len-fixes
Open

feat: add fixes for array length for type_mismatch#22734
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:array-len-fixes

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Jul 7, 2026

Copy link
Copy Markdown
Member

Example

const VALS: [i32; 2$0] = [1, 2, 3];

Before this PR

No available fixes

After this PR

const VALS: [i32; 3] = [1, 2, 3];
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 7, 2026
@rustbot

rustbot commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Example
---
```rust
const VALS: [i32; 2$0] = [1, 2, 3];
```

**Before this PR**

No available fixes

**After this PR**

```rust
const VALS: [i32; 3] = [1, 2, 3];
```
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.

2 participants