Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

Reviewing commit-by-commit is recommended.

Fixes 1 type mismatch on self.

…inferred type of the pattern

The inferred type is reconstructed with match ergonomics, e.g. matching against `(&&i32, &&i32)` could give `(i32, i32)`), but we of course cannot bind to that.
It was subtly incorrect in how it handles the expected type.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 19, 2025
@Veykril
Copy link
Member

Veykril commented Nov 19, 2025

IF you feel like it, feel free to pick up #21026 as its also pattern inference stuff and I don't have the time to investigate the missing parts there right now :D

@Veykril Veykril added this pull request to the merge queue Nov 19, 2025
Merged via the queue into rust-lang:master with commit 0a798a0 Nov 19, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 19, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the adjust-last branch November 19, 2025 09:09
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