File tree 1 file changed +3
-11
lines changed
compiler/rustc_metadata/src/rmeta
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -947,6 +947,9 @@ impl EncodeContext<'a, 'tcx> {
947
947
record ! ( self . tables. inferred_outlives[ def_id] <- inferred_outlives) ;
948
948
}
949
949
}
950
+ if let DefKind :: Trait | DefKind :: TraitAlias = def_kind {
951
+ record ! ( self . tables. super_predicates[ def_id] <- self . tcx. super_predicates_of( def_id) ) ;
952
+ }
950
953
}
951
954
let inherent_impls = tcx. crate_inherent_impls ( LOCAL_CRATE ) ;
952
955
for ( def_id, implementations) in inherent_impls. inherent_impls . iter ( ) {
@@ -1092,11 +1095,6 @@ impl EncodeContext<'a, 'tcx> {
1092
1095
}
1093
1096
}
1094
1097
1095
- fn encode_super_predicates ( & mut self , def_id : DefId ) {
1096
- debug ! ( "EncodeContext::encode_super_predicates({:?})" , def_id) ;
1097
- record ! ( self . tables. super_predicates[ def_id] <- self . tcx. super_predicates_of( def_id) ) ;
1098
- }
1099
-
1100
1098
fn encode_explicit_item_bounds ( & mut self , def_id : DefId ) {
1101
1099
debug ! ( "EncodeContext::encode_explicit_item_bounds({:?})" , def_id) ;
1102
1100
let bounds = self . tcx . explicit_item_bounds ( def_id) ;
@@ -1493,12 +1491,6 @@ impl EncodeContext<'a, 'tcx> {
1493
1491
record ! ( self . tables. impl_trait_ref[ def_id] <- trait_ref) ;
1494
1492
}
1495
1493
}
1496
- match item. kind {
1497
- hir:: ItemKind :: Trait ( ..) | hir:: ItemKind :: TraitAlias ( ..) => {
1498
- self . encode_super_predicates ( def_id) ;
1499
- }
1500
- _ => { }
1501
- }
1502
1494
}
1503
1495
1504
1496
/// Serialize the text of exported macros
You can’t perform that action at this time.
0 commit comments