Skip to content

Commit 208d32d

Browse files
committed
Encode the TypeScheme for associated types
1 parent de8e0ae commit 208d32d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc/metadata/encoder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@ fn encode_info_for_associated_type(ecx: &EncodeContext,
900900
encode_parent_item(rbml_w, local_def(parent_id));
901901
encode_item_sort(rbml_w, 't');
902902

903+
let type_scheme = ty::lookup_item_type(ecx.tcx, associated_type.def_id);
904+
encode_bounds_and_type(rbml_w, ecx, &type_scheme);
905+
903906
let stab = stability::lookup(ecx.tcx, associated_type.def_id);
904907
encode_stability(rbml_w, stab);
905908

0 commit comments

Comments
 (0)