@@ -1222,7 +1222,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12221222 |s| s. print_trait_item ( ast_item) ,
12231223 ) ;
12241224
1225- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocConst ( AssocContainer :: Trait ) ) ;
1225+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocConst ( ty :: AssocItemContainer :: TraitContainer ) ) ;
12261226 record ! ( self . tables. mir_const_qualif[ def_id] <- mir:: ConstQualifs :: default ( ) ) ;
12271227 record ! ( self . tables. rendered_const[ def_id] <- rendered) ;
12281228 }
@@ -1238,14 +1238,14 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12381238 } ;
12391239 self . tables . asyncness . set ( def_id. index , m_sig. header . asyncness ) ;
12401240 self . tables . constness . set ( def_id. index , hir:: Constness :: NotConst ) ;
1241- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy ( AssocFnData {
1242- container: AssocContainer :: Trait ,
1241+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn {
1242+ container: ty :: AssocItemContainer :: TraitContainer ,
12431243 has_self: trait_item. fn_has_self_parameter,
1244- } ) ) ) ;
1244+ } ) ;
12451245 }
12461246 ty:: AssocKind :: Type => {
12471247 self . encode_explicit_item_bounds ( def_id) ;
1248- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocType ( AssocContainer :: Trait ) ) ;
1248+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocType ( ty :: AssocItemContainer :: TraitContainer ) ) ;
12491249 }
12501250 }
12511251 match trait_item. kind {
@@ -1277,7 +1277,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12771277 let qualifs = self . tcx . at ( ast_item. span ) . mir_const_qualif ( def_id) ;
12781278 let const_data = self . encode_rendered_const_for_body ( body_id) ;
12791279
1280- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocConst ( AssocContainer :: Impl ) ) ;
1280+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocConst ( ty :: AssocItemContainer :: ImplContainer ) ) ;
12811281 record ! ( self . tables. mir_const_qualif[ def_id] <- qualifs) ;
12821282 record ! ( self . tables. rendered_const[ def_id] <- const_data) ;
12831283 } else {
@@ -1295,13 +1295,13 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
12951295 hir:: Constness :: NotConst
12961296 } ;
12971297 self . tables . constness . set ( def_id. index , constness) ;
1298- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn ( self . lazy ( AssocFnData {
1299- container: AssocContainer :: Impl ,
1298+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocFn {
1299+ container: ty :: AssocItemContainer :: ImplContainer ,
13001300 has_self: impl_item. fn_has_self_parameter,
1301- } ) ) ) ;
1301+ } ) ;
13021302 }
13031303 ty:: AssocKind :: Type => {
1304- record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocType ( AssocContainer :: Impl ) ) ;
1304+ record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocType ( ty :: AssocItemContainer :: ImplContainer ) ) ;
13051305 }
13061306 }
13071307 self . encode_item_type ( def_id) ;
0 commit comments