@@ -3,9 +3,9 @@ use crate::{tls, Identifier, TypeKind};
33use chalk_ir:: { could_match:: CouldMatch , UnificationDatabase } ;
44use chalk_ir:: { debug:: Angle , Variance } ;
55use chalk_ir:: {
6- debug:: SeparatorTraitRef , AdtId , AliasTy , AssocTypeId , Binders , CanonicalVarKinds , ClosureId ,
6+ debug:: SeparatorTraitRef , AdtId , AliasTy , AssocItemId , Binders , CanonicalVarKinds , ClosureId ,
77 FnDefId , ForeignDefId , GeneratorId , GenericArg , Goal , Goals , ImplId , IntTy , Lifetime , OpaqueTy ,
8- OpaqueTyId , ProgramClause , ProgramClauseImplication , ProgramClauses , ProjectionTy , Scalar ,
8+ OpaqueTyId , ProgramClause , ProgramClauseImplication , ProgramClauses , ProjectionTerm , Scalar ,
99 Substitution , TraitId , Ty , TyKind , UintTy , Variances ,
1010} ;
1111use chalk_solve:: rust_ir:: {
@@ -97,7 +97,7 @@ pub struct Program {
9797 pub well_known_traits : BTreeMap < WellKnownTrait , TraitId < ChalkIr > > ,
9898
9999 /// For each associated ty declaration `type Foo` found in a trait:
100- pub associated_ty_data : BTreeMap < AssocTypeId < ChalkIr > , Arc < AssociatedTyDatum < ChalkIr > > > ,
100+ pub associated_ty_data : BTreeMap < AssocItemId < ChalkIr > , Arc < AssociatedTyDatum < ChalkIr > > > ,
101101
102102 /// For each user-specified clause
103103 pub custom_clauses : Vec < ProgramClause < ChalkIr > > ,
@@ -151,13 +151,13 @@ impl tls::DebugContext for Program {
151151
152152 fn debug_assoc_type_id (
153153 & self ,
154- assoc_type_id : AssocTypeId < ChalkIr > ,
154+ assoc_type_id : AssocItemId < ChalkIr > ,
155155 fmt : & mut fmt:: Formatter < ' _ > ,
156156 ) -> Result < ( ) , fmt:: Error > {
157157 if let Some ( d) = self . associated_ty_data . get ( & assoc_type_id) {
158158 write ! ( fmt, "({:?}::{})" , d. trait_id, d. name)
159159 } else {
160- fmt. debug_struct ( "InvalidAssocTypeId " )
160+ fmt. debug_struct ( "InvalidAssocItemId " )
161161 . field ( "index" , & assoc_type_id. 0 )
162162 . finish ( )
163163 }
@@ -204,7 +204,7 @@ impl tls::DebugContext for Program {
204204
205205 fn debug_projection_ty (
206206 & self ,
207- projection_ty : & ProjectionTy < ChalkIr > ,
207+ projection_ty : & ProjectionTerm < ChalkIr > ,
208208 fmt : & mut fmt:: Formatter < ' _ > ,
209209 ) -> Result < ( ) , fmt:: Error > {
210210 let ( associated_ty_data, trait_params, other_params) = self . split_projection ( projection_ty) ;
@@ -386,7 +386,7 @@ impl RustIrDatabase<ChalkIr> for Program {
386386 self . custom_clauses . clone ( )
387387 }
388388
389- fn associated_ty_data ( & self , ty : AssocTypeId < ChalkIr > ) -> Arc < AssociatedTyDatum < ChalkIr > > {
389+ fn associated_ty_data ( & self , ty : AssocItemId < ChalkIr > ) -> Arc < AssociatedTyDatum < ChalkIr > > {
390390 self . associated_ty_data [ & ty] . clone ( )
391391 }
392392
@@ -587,7 +587,7 @@ impl RustIrDatabase<ChalkIr> for Program {
587587 // normally acceptable, but causes the re-parse tests for the .chalk syntax
588588 // writer to fail. This is because they use the `Eq` implementation on
589589 // Program, which checks for name equality.
590- fn assoc_type_name ( & self , assoc_type_id : AssocTypeId < ChalkIr > ) -> String {
590+ fn assoc_type_name ( & self , assoc_type_id : AssocItemId < ChalkIr > ) -> String {
591591 self . associated_ty_data
592592 . get ( & assoc_type_id)
593593 . unwrap ( )
0 commit comments