Skip to content

Commit 7aedff6

Browse files
committed
Iterate on explicit_item_bounds.
1 parent f738c20 commit 7aedff6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/rustc_metadata/src/rmeta/encoder.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ impl EncodeContext<'a, 'tcx> {
993993
if let Ok(sig) = tcx.try_fn_sig(def_id) {
994994
record!(self.tables.fn_sig[def_id] <- sig);
995995
}
996+
self.encode_explicit_item_bounds(def_id);
996997
}
997998
let inherent_impls = tcx.crate_inherent_impls(LOCAL_CRATE);
998999
for (def_id, implementations) in inherent_impls.inherent_impls.iter() {
@@ -1171,7 +1172,6 @@ impl EncodeContext<'a, 'tcx> {
11711172
})));
11721173
}
11731174
ty::AssocKind::Type => {
1174-
self.encode_explicit_item_bounds(def_id);
11751175
record!(self.tables.kind[def_id] <- EntryKind::AssocType(container));
11761176
}
11771177
}
@@ -1349,10 +1349,7 @@ impl EncodeContext<'a, 'tcx> {
13491349
hir::ItemKind::ForeignMod { .. } => EntryKind::ForeignMod,
13501350
hir::ItemKind::GlobalAsm(..) => EntryKind::GlobalAsm,
13511351
hir::ItemKind::TyAlias(..) => EntryKind::Type,
1352-
hir::ItemKind::OpaqueTy(..) => {
1353-
self.encode_explicit_item_bounds(def_id);
1354-
EntryKind::OpaqueTy
1355-
}
1352+
hir::ItemKind::OpaqueTy(..) => EntryKind::OpaqueTy,
13561353
hir::ItemKind::Enum(..) => EntryKind::Enum(self.tcx.adt_def(def_id).repr),
13571354
hir::ItemKind::Struct(ref struct_def, _) => {
13581355
let adt_def = self.tcx.adt_def(def_id);

0 commit comments

Comments
 (0)