Skip to content

Support ConstArgKind::Paths for const struct/variant constructors #132985

@camelid

Description

@camelid

Requires encoding const ctors in MIR metadata (not currently done for some reason). May affect perf. cc #131081.

edit: BoxyUwU

We probably want to lower paths to const ctors directly to a ConstKind::Value to avoid needing to encode the MIR for const ctors. This is technically "lossy" lowering in some sense but it seems fine to me.

Metadata

Metadata

Assignees

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.F-min_generic_const_args`#![feature(min_generic_const_args)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions