Add new arg-passing mode 'move' denoted with '-T'. Translate as pass-by-value, doesn't deinit source yet nor get proper analysis in typestate, alias passes.
This commit is contained in:
parent
3dda9aabf2
commit
b54e7e4506
10 changed files with 39 additions and 6 deletions
|
@ -208,6 +208,9 @@ fn enc_ty_fn(w: &ioivec::writer, cx: &@ctxt, args: &ty::arg[], out: &ty::t,
|
|||
w.write_char('&');
|
||||
if mut { w.write_char('m'); }
|
||||
}
|
||||
ty::mo_move. {
|
||||
w.write_char('-');
|
||||
}
|
||||
ty::mo_val. { }
|
||||
}
|
||||
enc_ty(w, cx, arg.ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue