Skip to content

[Work Item]: normalize instead of evaluating type const patterns #116

@BoxyUwU

Description

@BoxyUwU

currently using a type const in a pattern, e.g. type const FOO: usize = 1_usize; if let FOO = 1 {} ICEs as we try to invoke const eval on FOO to evaluate the pattern. We should instead check if the constant is a type const and if so call try_normalize_erasing_regions.

Related to #105 in that we'll get this "for free" once const patterns are cleaned up, but we probably don't want to wait for that :)

Metadata

Metadata

Assignees

Labels

C-work-itemSomething that needs to be implemented/done

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