Skip to content

Commit 039d68a

Browse files
committed
---
yaml --- r: 11092 b: refs/heads/master c: b28a555 h: refs/heads/master v: v3
1 parent 6818f9b commit 039d68a

File tree

12 files changed

+229
-261
lines changed

12 files changed

+229
-261
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3bd0338c19a594d538bc6dd4656c0cb8da9b9680
2+
refs/heads/master: b28a5552e3e822063499c8fb7c6c0be6bb881863
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/comp/metadata/tydecode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ fn parse_ty(st: @pstate, conv: conv_did) -> ty::t {
301301
let inner = parse_ty(st, conv);
302302
ty::mk_named(st.tcx, inner, name)
303303
}
304+
'B' { ty::mk_opaque_box(st.tcx) }
304305
c { #error("unexpected char in type string: %c", c); fail;}
305306
}
306307
}

trunk/src/comp/metadata/tyencode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ fn enc_sty(w: io::writer, cx: @ctxt, st: ty::sty) {
192192
for tc: @ty::type_constr in cs { enc_ty_constr(w, cx, tc); }
193193
w.write_char(']');
194194
}
195+
ty::ty_opaque_box { w.write_char('B'); }
195196
}
196197
}
197198
fn enc_proto(w: io::writer, proto: proto) {

trunk/src/comp/middle/shape.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t, ty_param_map: [uint]) -> [u8] {
381381
s += [shape_box];
382382
add_substr(s, shape_of(ccx, mt.ty, ty_param_map));
383383
}
384+
ty::ty_opaque_box {
385+
s += [shape_box];
386+
add_substr(s, [shape_u8]);
387+
}
384388
ty::ty_uniq(mt) {
385389
s += [shape_uniq];
386390
add_substr(s, shape_of(ccx, mt.ty, ty_param_map));

0 commit comments

Comments
 (0)