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:
parent
c1c083cd66
commit
51dae63c44
4 changed files with 34 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue