From 4468473e1b2d3bdb9e7da438acc1448d810771ef Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 6 Dec 2020 22:21:00 +0100 Subject: [PATCH] Iterate on const_stability. --- compiler/rustc_metadata/src/rmeta/encoder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index 9314ccc4adb..fe79b154774 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -774,6 +774,7 @@ impl EncodeContext<'a, 'tcx> { record!(self.tables.visibility[def_id] <- self.tcx.visibility(def_id)); } self.encode_stability(def_id); + self.encode_const_stability(def_id); } } @@ -1031,7 +1032,6 @@ impl EncodeContext<'a, 'tcx> { } } self.encode_ident_span(def_id, ast_item.ident); - self.encode_const_stability(def_id); self.encode_deprecation(def_id); match trait_item.kind { ty::AssocKind::Const | ty::AssocKind::Fn => { @@ -1131,7 +1131,6 @@ impl EncodeContext<'a, 'tcx> { } } self.encode_ident_span(def_id, impl_item.ident); - self.encode_const_stability(def_id); self.encode_deprecation(def_id); self.encode_item_type(def_id); if impl_item.kind == ty::AssocKind::Fn { @@ -1405,7 +1404,6 @@ impl EncodeContext<'a, 'tcx> { } _ => {} } - self.encode_const_stability(def_id); self.encode_deprecation(def_id); match item.kind { hir::ItemKind::Static(..) @@ -1815,7 +1813,6 @@ impl EncodeContext<'a, 'tcx> { } } self.encode_ident_span(def_id, nitem.ident); - self.encode_const_stability(def_id); self.encode_deprecation(def_id); self.encode_item_type(def_id); self.encode_inherent_implementations(def_id);