From b03969cda92661ad67897fee0ba16c1cc61830ea Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Tue, 6 Apr 2021 23:46:32 +0200 Subject: Remove `SolutionVariables`, add ConstrainedSubst analogous to Chalk ... just missing the constraints. --- crates/hir/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/hir') diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 8d00f7401..caa22dace 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -58,9 +58,8 @@ use hir_ty::{ subst_prefix, traits::FnTrait, AliasEq, AliasTy, BoundVar, CallableDefId, CallableSig, Canonical, CanonicalVarKinds, Cast, - DebruijnIndex, InEnvironment, Interner, QuantifiedWhereClause, Scalar, Solution, - SolutionVariables, Substitution, TraitEnvironment, Ty, TyBuilder, TyDefId, TyExt, TyKind, - TyVariableKind, WhereClause, + DebruijnIndex, InEnvironment, Interner, QuantifiedWhereClause, Scalar, Solution, Substitution, + TraitEnvironment, Ty, TyBuilder, TyDefId, TyExt, TyKind, TyVariableKind, WhereClause, }; use itertools::Itertools; use rustc_hash::FxHashSet; @@ -1822,8 +1821,9 @@ impl Type { ); match db.trait_solve(self.krate, goal)? { - Solution::Unique(SolutionVariables(subst)) => subst + Solution::Unique(s) => s .value + .subst .interned() .first() .map(|ty| self.derived(ty.assert_ty_ref(&Interner).clone())), -- cgit v1.2.3