Pass interner to ProjectionTy::self_type_parameter

This commit is contained in:
Laurențiu Nicola 2021-04-05 17:37:24 +03:00
parent fab1c06646
commit aefcbf2758
4 changed files with 7 additions and 7 deletions

View file

@ -89,7 +89,7 @@ pub(crate) fn trait_solve_query(
..
})) = &goal.value.goal
{
if let TyKind::BoundVar(_) = projection_ty.self_type_parameter().kind(&Interner) {
if let TyKind::BoundVar(_) = projection_ty.self_type_parameter(&Interner).kind(&Interner) {
// Hack: don't ask Chalk to normalize with an unknown self type, it'll say that's impossible
return Some(Solution::Ambig(Guidance::Unknown));
}