diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-12-06 22:21:00 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-01-23 13:56:24 +0100 |
| commit | 4468473e1b2d3bdb9e7da438acc1448d810771ef (patch) | |
| tree | 93cd12b0eb3ebef96c26b0898375aa7936605fe3 /compiler/rustc_metadata/src | |
| parent | f1a7e1df3aa9c698d4e793e865cac867b0bd3694 (diff) | |
| download | rust-4468473e1b2d3bdb9e7da438acc1448d810771ef.tar.gz rust-4468473e1b2d3bdb9e7da438acc1448d810771ef.zip | |
Iterate on const_stability.
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/encoder.rs | 5 |
1 files changed, 1 insertions, 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); |
