1
Fork 0

Remove generalization over projection

Instead, just use a term everywhere.
This commit is contained in:
kadmin 2022-01-26 17:02:58 +00:00
parent 1c4fe64bdc
commit bd03d8167f
9 changed files with 160 additions and 325 deletions

View file

@ -36,7 +36,10 @@ fn normalize_projection_ty<'tcx>(
&mut obligations,
);
fulfill_cx.register_predicate_obligations(infcx, obligations);
Ok(NormalizationResult { normalized_ty: answer })
// FIXME(associated_const_equality): All users of normalize_projection_ty expected
// a type, but there is the possibility it could've been a const now. Maybe change
// it to a Term later?
Ok(NormalizationResult { normalized_ty: answer.ty().unwrap() })
},
)
}