Make the names of the arg mode tag reflect their (revised) meaning
This commit is contained in:
parent
4be7e1e5cd
commit
0e6e56ca60
16 changed files with 54 additions and 91 deletions
|
@ -207,12 +207,9 @@ fn enc_ty_fn(w: &io::writer, cx: &@ctxt, args: &[ty::arg], out: ty::t,
|
|||
w.write_char('[');
|
||||
for arg: ty::arg in args {
|
||||
alt arg.mode {
|
||||
ty::mo_alias(mut) {
|
||||
w.write_char('&');
|
||||
if mut { w.write_char('m'); }
|
||||
}
|
||||
ty::mo_move. { w.write_char('-'); }
|
||||
ty::mo_val. { }
|
||||
by_mut_ref. { w.write_char('&'); }
|
||||
by_move. { w.write_char('-'); }
|
||||
by_ref. { }
|
||||
}
|
||||
enc_ty(w, cx, arg.ty);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue