]> git.lizzy.rs Git - rust.git/commitdiff
Encode the TypeScheme for associated types
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 29 Dec 2014 21:32:24 +0000 (16:32 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 30 Dec 2014 14:36:23 +0000 (09:36 -0500)
src/librustc/metadata/encoder.rs

index 20e7cb63133df46564974ddcc08f5d20d8eec48c..db29d0111f446bd9a431935a5e58fe408695300f 100644 (file)
@@ -900,6 +900,9 @@ fn encode_info_for_associated_type(ecx: &EncodeContext,
     encode_parent_item(rbml_w, local_def(parent_id));
     encode_item_sort(rbml_w, 't');
 
+    let type_scheme = ty::lookup_item_type(ecx.tcx, associated_type.def_id);
+    encode_bounds_and_type(rbml_w, ecx, &type_scheme);
+
     let stab = stability::lookup(ecx.tcx, associated_type.def_id);
     encode_stability(rbml_w, stab);