Skip to content

Handle primitive constants in const arguments for MGCA#158590

Open
chenyukang wants to merge 1 commit into
rust-lang:mainfrom
chenyukang:yukang-fix-158506-mgca-primitive-consts
Open

Handle primitive constants in const arguments for MGCA#158590
chenyukang wants to merge 1 commit into
rust-lang:mainfrom
chenyukang:yukang-fix-158506-mgca-primitive-consts

Conversation

@chenyukang

@chenyukang chenyukang commented Jun 29, 2026

Copy link
Copy Markdown
Member

MGCA direct const arg lowering bypasses expression primitive fallback for paths like u8::MAX, so they are treated as ambiguous type-level associated constants instead of primitive associated constants.

Fixes #158506

r? @BoxyUwU

link #149136

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 29, 2026
@rustbot

rustbot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

BoxyUwU is currently at their maximum review capacity.
They may take a while to respond.

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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

min_generic_const_args makes {u,i}*::{MIN, MAX} ambiguous

3 participants