@@ -774,6 +774,7 @@ impl EncodeContext<'a, 'tcx> {
774
774
record ! ( self . tables. visibility[ def_id] <- self . tcx. visibility( def_id) ) ;
775
775
}
776
776
self . encode_stability ( def_id) ;
777
+ self . encode_const_stability ( def_id) ;
777
778
}
778
779
}
779
780
@@ -1031,7 +1032,6 @@ impl EncodeContext<'a, 'tcx> {
1031
1032
}
1032
1033
}
1033
1034
self . encode_ident_span ( def_id, ast_item. ident ) ;
1034
- self . encode_const_stability ( def_id) ;
1035
1035
self . encode_deprecation ( def_id) ;
1036
1036
match trait_item. kind {
1037
1037
ty:: AssocKind :: Const | ty:: AssocKind :: Fn => {
@@ -1131,7 +1131,6 @@ impl EncodeContext<'a, 'tcx> {
1131
1131
}
1132
1132
}
1133
1133
self . encode_ident_span ( def_id, impl_item. ident ) ;
1134
- self . encode_const_stability ( def_id) ;
1135
1134
self . encode_deprecation ( def_id) ;
1136
1135
self . encode_item_type ( def_id) ;
1137
1136
if impl_item. kind == ty:: AssocKind :: Fn {
@@ -1405,7 +1404,6 @@ impl EncodeContext<'a, 'tcx> {
1405
1404
}
1406
1405
_ => { }
1407
1406
}
1408
- self . encode_const_stability ( def_id) ;
1409
1407
self . encode_deprecation ( def_id) ;
1410
1408
match item. kind {
1411
1409
hir:: ItemKind :: Static ( ..)
@@ -1815,7 +1813,6 @@ impl EncodeContext<'a, 'tcx> {
1815
1813
}
1816
1814
}
1817
1815
self . encode_ident_span ( def_id, nitem. ident ) ;
1818
- self . encode_const_stability ( def_id) ;
1819
1816
self . encode_deprecation ( def_id) ;
1820
1817
self . encode_item_type ( def_id) ;
1821
1818
self . encode_inherent_implementations ( def_id) ;
0 commit comments