Skip to content

mGCA: Track whether a const is a type const as part of DefKind #152940

@BoxyUwU

Description

@BoxyUwU

When replacing #[type_const] with proper type const syntax in #152324, a query was introduced to check whether a const item is a type const or not. This (may have) caused the perf regression (#152324 (comment)), we should experiment with replacing this query with a flag in DefKind::Const/AssocConst.

This would probably be a nice cleanup regardless of whether it fixes the perf regression

Metadata

Metadata

Assignees

Labels

A-const-genericsArea: const generics (parameters and arguments)E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions