@@ -14,15 +14,15 @@ use crate::db::HirDatabase;
1414
1515use super :: { Canonical , GenericPredicate , HirDisplay , ProjectionTy , TraitRef , Ty , TypeWalk } ;
1616
17- use self :: chalk:: { from_chalk, ToChalk , TypeFamily } ;
17+ use self :: chalk:: { from_chalk, Interner , ToChalk } ;
1818
1919pub ( crate ) mod chalk;
2020mod builtin;
2121
2222#[ derive( Debug , Clone ) ]
2323pub struct TraitSolver {
2424 krate : CrateId ,
25- inner : Arc < Mutex < chalk_solve:: Solver < TypeFamily > > > ,
25+ inner : Arc < Mutex < chalk_solve:: Solver < Interner > > > ,
2626}
2727
2828/// We need eq for salsa
@@ -38,8 +38,8 @@ impl TraitSolver {
3838 fn solve (
3939 & self ,
4040 db : & impl HirDatabase ,
41- goal : & chalk_ir:: UCanonical < chalk_ir:: InEnvironment < chalk_ir:: Goal < TypeFamily > > > ,
42- ) -> Option < chalk_solve:: Solution < TypeFamily > > {
41+ goal : & chalk_ir:: UCanonical < chalk_ir:: InEnvironment < chalk_ir:: Goal < Interner > > > ,
42+ ) -> Option < chalk_solve:: Solution < Interner > > {
4343 let context = ChalkContext { db, krate : self . krate } ;
4444 log:: debug!( "solve goal: {:?}" , goal) ;
4545 let mut solver = match self . inner . lock ( ) {
@@ -110,7 +110,7 @@ pub(crate) fn trait_solver_query(
110110 TraitSolver { krate, inner : Arc :: new ( Mutex :: new ( create_chalk_solver ( ) ) ) }
111111}
112112
113- fn create_chalk_solver ( ) -> chalk_solve:: Solver < TypeFamily > {
113+ fn create_chalk_solver ( ) -> chalk_solve:: Solver < Interner > {
114114 let solver_choice =
115115 chalk_solve:: SolverChoice :: SLG { max_size : CHALK_SOLVER_MAX_SIZE , expected_answers : None } ;
116116 solver_choice. into_solver ( )
@@ -242,9 +242,9 @@ pub(crate) fn trait_solve_query(
242242
243243fn solution_from_chalk (
244244 db : & impl HirDatabase ,
245- solution : chalk_solve:: Solution < TypeFamily > ,
245+ solution : chalk_solve:: Solution < Interner > ,
246246) -> Solution {
247- let convert_subst = |subst : chalk_ir:: Canonical < chalk_ir:: Substitution < TypeFamily > > | {
247+ let convert_subst = |subst : chalk_ir:: Canonical < chalk_ir:: Substitution < Interner > > | {
248248 let value = subst
249249 . value
250250 . into_iter ( )
0 commit comments