Normalize before computing ConstArgHasType goal

This commit is contained in:
Michael Goulet
2025-06-20 19:43:17 +00:00
parent 2801f9aaf9
commit 87c8aa1ff6
4 changed files with 29 additions and 6 deletions

View File

@@ -191,6 +191,7 @@ where
goal: Goal<I, (I::Const, I::Ty)>,
) -> QueryResult<I> {
let (ct, ty) = goal.predicate;
let ct = self.structurally_normalize_const(goal.param_env, ct)?;
let ct_ty = match ct.kind() {
ty::ConstKind::Infer(_) => {