@@ -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:: {
@@ -95,7 +95,7 @@ pub struct Program {
9595 pub well_known_traits : BTreeMap < WellKnownTrait , TraitId < ChalkIr > > ,
9696
9797 /// For each associated ty declaration `type Foo` found in a trait:
98- pub associated_ty_data : BTreeMap < AssocTypeId < ChalkIr > , Arc < AssociatedTyDatum < ChalkIr > > > ,
98+ pub associated_ty_data : BTreeMap < AssocItemId < ChalkIr > , Arc < AssociatedTyDatum < ChalkIr > > > ,
9999
100100 /// For each user-specified clause
101101 pub custom_clauses : Vec < ProgramClause < ChalkIr > > ,
@@ -149,13 +149,13 @@ impl tls::DebugContext for Program {
149149
150150 fn debug_assoc_type_id (
151151 & self ,
152- assoc_type_id : AssocTypeId < ChalkIr > ,
152+ assoc_type_id : AssocItemId < ChalkIr > ,
153153 fmt : & mut fmt:: Formatter < ' _ > ,
154154 ) -> Result < ( ) , fmt:: Error > {
155155 if let Some ( d) = self . associated_ty_data . get ( & assoc_type_id) {
156156 write ! ( fmt, "({:?}::{})" , d. trait_id, d. name)
157157 } else {
158- fmt. debug_struct ( "InvalidAssocTypeId " )
158+ fmt. debug_struct ( "InvalidAssocItemId " )
159159 . field ( "index" , & assoc_type_id. 0 )
160160 . finish ( )
161161 }
@@ -202,7 +202,7 @@ impl tls::DebugContext for Program {
202202
203203 fn debug_projection_ty (
204204 & self ,
205- projection_ty : & ProjectionTy < ChalkIr > ,
205+ projection_ty : & ProjectionTerm < ChalkIr > ,
206206 fmt : & mut fmt:: Formatter < ' _ > ,
207207 ) -> Result < ( ) , fmt:: Error > {
208208 let ( associated_ty_data, trait_params, other_params) = self . split_projection ( projection_ty) ;
@@ -384,7 +384,7 @@ impl RustIrDatabase<ChalkIr> for Program {
384384 self . custom_clauses . clone ( )
385385 }
386386
387- fn associated_ty_data ( & self , ty : AssocTypeId < ChalkIr > ) -> Arc < AssociatedTyDatum < ChalkIr > > {
387+ fn associated_ty_data ( & self , ty : AssocItemId < ChalkIr > ) -> Arc < AssociatedTyDatum < ChalkIr > > {
388388 self . associated_ty_data [ & ty] . clone ( )
389389 }
390390
@@ -582,7 +582,7 @@ impl RustIrDatabase<ChalkIr> for Program {
582582 // normally acceptable, but causes the re-parse tests for the .chalk syntax
583583 // writer to fail. This is because they use the `Eq` implementation on
584584 // Program, which checks for name equality.
585- fn assoc_type_name ( & self , assoc_type_id : AssocTypeId < ChalkIr > ) -> String {
585+ fn assoc_type_name ( & self , assoc_type_id : AssocItemId < ChalkIr > ) -> String {
586586 self . associated_ty_data
587587 . get ( & assoc_type_id)
588588 . unwrap ( )
0 commit comments