Skip to content

Commit 4f1a038

Browse files
committed
---
yaml --- r: 1981 b: refs/heads/master c: 4f90c88 h: refs/heads/master i: 1979: f1dfddd v: v3
1 parent 62b9a7e commit 4f1a038

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5b7961b64135bb0f3cd1d9f6f78dcec6bb0f598a
2+
refs/heads/master: 4f90c88b4d395b03d6ad96316307b905be1be84a

trunk/src/comp/middle/metadata.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ fn encode_obj_type_id(&ebml.writer ebml_w, &ast.def_id id) {
360360

361361
fn encode_tag_variant_info(@trans.crate_ctxt cx, &ebml.writer ebml_w,
362362
ast.def_id did, vec[ast.variant] variants,
363-
&mutable vec[tup(int, uint)] index) {
363+
&mutable vec[tup(int, uint)] index,
364+
vec[ast.ty_param] ty_params) {
364365
for (ast.variant variant in variants) {
365366
index += vec(tup(variant.node.id._1, ebml_w.writer.tell()));
366367

@@ -373,6 +374,7 @@ fn encode_tag_variant_info(@trans.crate_ctxt cx, &ebml.writer ebml_w,
373374
encode_symbol(cx, ebml_w, variant.node.id);
374375
}
375376
encode_discriminant(cx, ebml_w, variant.node.id);
377+
encode_type_params(ebml_w, ty_params);
376378
ebml.end_tag(ebml_w);
377379
}
378380
}
@@ -428,7 +430,7 @@ fn encode_info_for_item(@trans.crate_ctxt cx, &ebml.writer ebml_w,
428430
}
429431
ebml.end_tag(ebml_w);
430432

431-
encode_tag_variant_info(cx, ebml_w, did, variants, index);
433+
encode_tag_variant_info(cx, ebml_w, did, variants, index, tps);
432434
}
433435
case (ast.item_obj(?id, _, ?tps, ?odid, ?ann)) {
434436
ebml.start_tag(ebml_w, tag_items_data_item);

0 commit comments

Comments
 (0)