Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #58161 - davidtwco:issue-57960, r=arielb1
Lower constant patterns with ascribed types. Fixes #57960. This PR fixes a bug introduced by #55937 which started checking user type annotations for associated type patterns. Where lowering a associated constant expression would previously return a `PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType` with a `PatternKind::Constant` inside, this PR unwraps that to access the constant pattern inside and behaves as before. r? @pnkfelix
- Loading branch information