Skip to content

Commit

Permalink
Iterate on explicit_item_bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Mar 17, 2021
1 parent f738c20 commit 7aedff6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ impl EncodeContext<'a, 'tcx> {
if let Ok(sig) = tcx.try_fn_sig(def_id) {
record!(self.tables.fn_sig[def_id] <- sig);
}
self.encode_explicit_item_bounds(def_id);
}
let inherent_impls = tcx.crate_inherent_impls(LOCAL_CRATE);
for (def_id, implementations) in inherent_impls.inherent_impls.iter() {
Expand Down Expand Up @@ -1171,7 +1172,6 @@ impl EncodeContext<'a, 'tcx> {
})));
}
ty::AssocKind::Type => {
self.encode_explicit_item_bounds(def_id);
record!(self.tables.kind[def_id] <- EntryKind::AssocType(container));
}
}
Expand Down Expand Up @@ -1349,10 +1349,7 @@ impl EncodeContext<'a, 'tcx> {
hir::ItemKind::ForeignMod { .. } => EntryKind::ForeignMod,
hir::ItemKind::GlobalAsm(..) => EntryKind::GlobalAsm,
hir::ItemKind::TyAlias(..) => EntryKind::Type,
hir::ItemKind::OpaqueTy(..) => {
self.encode_explicit_item_bounds(def_id);
EntryKind::OpaqueTy
}
hir::ItemKind::OpaqueTy(..) => EntryKind::OpaqueTy,
hir::ItemKind::Enum(..) => EntryKind::Enum(self.tcx.adt_def(def_id).repr),
hir::ItemKind::Struct(ref struct_def, _) => {
let adt_def = self.tcx.adt_def(def_id);
Expand Down

0 comments on commit 7aedff6

Please sign in to comment.