1
Fork 0

Make most of the compiler aware of return-by-reference

tyencode/tydecode still don't know about it. return_ref will be extended to take
arguments anyway.
This commit is contained in:
Marijn Haverbeke 2011-09-14 11:01:42 +02:00
parent c1c083cd66
commit 51dae63c44
4 changed files with 34 additions and 31 deletions

View file

@ -218,7 +218,10 @@ fn enc_ty_fn(w: io::writer, cx: @ctxt, args: [ty::arg], out: ty::t,
} else { w.write_char(';'); }
enc_constr(w, cx, c);
}
alt cf { noreturn. { w.write_char('!'); } _ { enc_ty(w, cx, out); } }
alt cf {
noreturn. { w.write_char('!'); }
_ { enc_ty(w, cx, out); }
}
}
// FIXME less copy-and-paste