Iterate on const_stability.
This commit is contained in:
parent
f1a7e1df3a
commit
4468473e1b
@ -774,6 +774,7 @@ fn encode_def_ids(&mut self) {
|
||||
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 @@ fn encode_info_for_trait_item(&mut self, def_id: DefId) {
|
||||
}
|
||||
}
|
||||
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 @@ fn encode_info_for_impl_item(&mut self, def_id: DefId) {
|
||||
}
|
||||
}
|
||||
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 @@ fn encode_info_for_item(&mut self, def_id: DefId, item: &'tcx hir::Item<'tcx>) {
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
self.encode_const_stability(def_id);
|
||||
self.encode_deprecation(def_id);
|
||||
match item.kind {
|
||||
hir::ItemKind::Static(..)
|
||||
@ -1815,7 +1813,6 @@ fn encode_info_for_foreign_item(&mut self, def_id: DefId, nitem: &hir::ForeignIt
|
||||
}
|
||||
}
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user