@@ -6,11 +6,11 @@ use chalk_ir::tls;
6
6
use chalk_ir:: {
7
7
debug:: SeparatorTraitRef , AliasTy , ApplicationTy , AssocTypeId , Goal , Goals , ImplId , Lifetime ,
8
8
Parameter , ProgramClause , ProgramClauseImplication , ProgramClauses , StructId , Substitution ,
9
- TraitId , Ty , TyData , TypeName ,
9
+ TraitId , Ty , TyData , TypeName ,
10
10
} ;
11
11
use chalk_rust_ir:: {
12
- AssociatedTyDatum , AssociatedTyValue , AssociatedTyValueId , ImplDatum , ImplType , LangItem ,
13
- StructDatum , TraitDatum ,
12
+ AssociatedTyDatum , AssociatedTyValue , AssociatedTyValueId , ImplDatum , ImplType ,
13
+ StructDatum , TraitDatum , WellKnownTrait
14
14
} ;
15
15
use chalk_solve:: split:: Split ;
16
16
use chalk_solve:: RustIrDatabase ;
@@ -46,7 +46,7 @@ pub struct Program {
46
46
pub trait_data : BTreeMap < TraitId < ChalkIr > , Arc < TraitDatum < ChalkIr > > > ,
47
47
48
48
/// For each trait lang item
49
- pub trait_lang_items : BTreeMap < LangItem , TraitId < ChalkIr > > ,
49
+ pub well_known_traits : BTreeMap < WellKnownTrait , TraitId < ChalkIr > > ,
50
50
51
51
/// For each associated ty declaration `type Foo` found in a trait:
52
52
pub associated_ty_data : BTreeMap < AssocTypeId < ChalkIr > , Arc < AssociatedTyDatum < ChalkIr > > > ,
@@ -312,11 +312,11 @@ impl RustIrDatabase<ChalkIr> for Program {
312
312
} )
313
313
}
314
314
315
- fn require_lang_item ( & self , lang_item : LangItem ) -> TraitId < ChalkIr > {
315
+ fn well_known_trait_id ( & self , well_known_trait : WellKnownTrait ) -> TraitId < ChalkIr > {
316
316
* self
317
- . trait_lang_items
318
- . get ( & lang_item )
319
- . unwrap_or_else ( || panic ! ( "No lang item found for {:?}" , lang_item ) )
317
+ . well_known_traits
318
+ . get ( & well_known_trait )
319
+ . unwrap_or_else ( || panic ! ( "No lang item found for {:?}" , well_known_trait ) )
320
320
}
321
321
322
322
fn interner ( & self ) -> & ChalkIr {
0 commit comments