diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2020-06-27 21:36:35 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2020-10-06 11:19:29 +0100 |
| commit | f958e6c24615c4b1f1e77b0ee3d4f32383fb3617 (patch) | |
| tree | d9668ba16b66d59b026e9d936803dd92fdff6fec /compiler/rustc_metadata/src | |
| parent | d297147e620431dacfd4bbe90c6f82911b7d72c5 (diff) | |
| download | rust-f958e6c24615c4b1f1e77b0ee3d4f32383fb3617.tar.gz rust-f958e6c24615c4b1f1e77b0ee3d4f32383fb3617.zip | |
Separate bounds and predicates for associated/opaque types
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/encoder.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index 9f12edf9cb2..f0911928e81 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -1266,7 +1266,10 @@ impl EncodeContext<'a, 'tcx> { hir::ItemKind::ForeignMod(_) => EntryKind::ForeignMod, hir::ItemKind::GlobalAsm(..) => EntryKind::GlobalAsm, hir::ItemKind::TyAlias(..) => EntryKind::Type, - hir::ItemKind::OpaqueTy(..) => EntryKind::OpaqueTy, + hir::ItemKind::OpaqueTy(..) => { + self.encode_explicit_item_bounds(def_id); + 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); |
