Skip to content

feat: Lower field defaults to rustc_type_ir::Consts#22481

Merged
ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:field-defaults-infer
Jun 4, 2026
Merged

feat: Lower field defaults to rustc_type_ir::Consts#22481
ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:field-defaults-infer

Conversation

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

This is needed so that IDE features can find their anon consts and work with them. We lower them in field_types(), which seemed appropriate (we need to know the type for the const, and creating another query doesn't seem worth it).

We'll also need them for const eval, but currently default expressions are not handled in MIR.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 28, 2026
@rustbot

This comment has been minimized.

This is needed so that IDE features can find their anon consts and work with them. We lower them in `field_types()`, which seemed appropriate (we need to know the type for the const, and creating another query doesn't seem worth it).

We'll also need them for const eval, but currently default expressions are not handled in MIR.
@rustbot

rustbot commented Jun 4, 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.

@ChayimFriedman2 ChayimFriedman2 enabled auto-merge June 4, 2026 08:13
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Jun 4, 2026
Merged via the queue into rust-lang:master with commit 1854319 Jun 4, 2026
18 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the field-defaults-infer branch June 4, 2026 08:30
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 4, 2026
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