Skip to content

fix: Check coercion, not unification, in "Fill struct fields", as the criteria to use an existing local as the field's value#21971

Merged
Veykril merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:fill-fields-coerce
Apr 9, 2026
Merged

fix: Check coercion, not unification, in "Fill struct fields", as the criteria to use an existing local as the field's value#21971
Veykril merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:fill-fields-coerce

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 6, 2026

Since struct literals allow coercions.

Fixes #21932.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2026
…eria to use an existing local as the field's value

Since struct literals allow coercions.
@Veykril Veykril added this pull request to the merge queue Apr 9, 2026
Merged via the queue into rust-lang:master with commit e75651a Apr 9, 2026
17 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 9, 2026
@ChayimFriedman2 ChayimFriedman2 deleted the fill-fields-coerce branch April 9, 2026 09:06
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.

Fill struct field with todo! never type.

3 participants