Skip to content

Commit 4468473

Browse files
committed
Iterate on const_stability.
1 parent f1a7e1d commit 4468473

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_metadata/src/rmeta/encoder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ impl EncodeContext<'a, 'tcx> {
774774
record!(self.tables.visibility[def_id] <- self.tcx.visibility(def_id));
775775
}
776776
self.encode_stability(def_id);
777+
self.encode_const_stability(def_id);
777778
}
778779
}
779780

@@ -1031,7 +1032,6 @@ impl EncodeContext<'a, 'tcx> {
10311032
}
10321033
}
10331034
self.encode_ident_span(def_id, ast_item.ident);
1034-
self.encode_const_stability(def_id);
10351035
self.encode_deprecation(def_id);
10361036
match trait_item.kind {
10371037
ty::AssocKind::Const | ty::AssocKind::Fn => {
@@ -1131,7 +1131,6 @@ impl EncodeContext<'a, 'tcx> {
11311131
}
11321132
}
11331133
self.encode_ident_span(def_id, impl_item.ident);
1134-
self.encode_const_stability(def_id);
11351134
self.encode_deprecation(def_id);
11361135
self.encode_item_type(def_id);
11371136
if impl_item.kind == ty::AssocKind::Fn {
@@ -1405,7 +1404,6 @@ impl EncodeContext<'a, 'tcx> {
14051404
}
14061405
_ => {}
14071406
}
1408-
self.encode_const_stability(def_id);
14091407
self.encode_deprecation(def_id);
14101408
match item.kind {
14111409
hir::ItemKind::Static(..)
@@ -1815,7 +1813,6 @@ impl EncodeContext<'a, 'tcx> {
18151813
}
18161814
}
18171815
self.encode_ident_span(def_id, nitem.ident);
1818-
self.encode_const_stability(def_id);
18191816
self.encode_deprecation(def_id);
18201817
self.encode_item_type(def_id);
18211818
self.encode_inherent_implementations(def_id);

0 commit comments

Comments
 (0)