@@ -993,6 +993,7 @@ impl EncodeContext<'a, 'tcx> {
993
993
if let Ok ( sig) = tcx. try_fn_sig ( def_id) {
994
994
record ! ( self . tables. fn_sig[ def_id] <- sig) ;
995
995
}
996
+ self . encode_explicit_item_bounds ( def_id) ;
996
997
}
997
998
let inherent_impls = tcx. crate_inherent_impls ( LOCAL_CRATE ) ;
998
999
for ( def_id, implementations) in inherent_impls. inherent_impls . iter ( ) {
@@ -1171,7 +1172,6 @@ impl EncodeContext<'a, 'tcx> {
1171
1172
} ) ) ) ;
1172
1173
}
1173
1174
ty:: AssocKind :: Type => {
1174
- self . encode_explicit_item_bounds ( def_id) ;
1175
1175
record ! ( self . tables. kind[ def_id] <- EntryKind :: AssocType ( container) ) ;
1176
1176
}
1177
1177
}
@@ -1349,10 +1349,7 @@ impl EncodeContext<'a, 'tcx> {
1349
1349
hir:: ItemKind :: ForeignMod { .. } => EntryKind :: ForeignMod ,
1350
1350
hir:: ItemKind :: GlobalAsm ( ..) => EntryKind :: GlobalAsm ,
1351
1351
hir:: ItemKind :: TyAlias ( ..) => EntryKind :: Type ,
1352
- hir:: ItemKind :: OpaqueTy ( ..) => {
1353
- self . encode_explicit_item_bounds ( def_id) ;
1354
- EntryKind :: OpaqueTy
1355
- }
1352
+ hir:: ItemKind :: OpaqueTy ( ..) => EntryKind :: OpaqueTy ,
1356
1353
hir:: ItemKind :: Enum ( ..) => EntryKind :: Enum ( self . tcx . adt_def ( def_id) . repr ) ,
1357
1354
hir:: ItemKind :: Struct ( ref struct_def, _) => {
1358
1355
let adt_def = self . tcx . adt_def ( def_id) ;
0 commit comments