1
Fork 0

Tuple types back, not constructable yet

This commit is contained in:
Marijn Haverbeke 2011-08-15 11:40:26 +02:00
parent 25b85df370
commit 9538b00363
17 changed files with 278 additions and 16 deletions

View file

@ -120,6 +120,11 @@ fn enc_sty(w: &io::writer, cx: &@ctxt, st: &ty::sty) {
for t: ty::t in tys { enc_ty(w, cx, t); }
w.write_char(']');
}
ty::ty_tup(mts) {
w.write_str("T[");
for mt in mts { enc_mt(w, cx, mt); }
w.write_char(']');
}
ty::ty_box(mt) { w.write_char('@'); enc_mt(w, cx, mt); }
ty::ty_uniq(t) { w.write_char('~'); enc_ty(w, cx, t); }
ty::ty_ptr(mt) { w.write_char('*'); enc_mt(w, cx, mt); }