1
Fork 0

Make the names of the arg mode tag reflect their (revised) meaning

This commit is contained in:
Marijn Haverbeke 2011-09-12 10:05:40 +02:00
parent 4be7e1e5cd
commit 0e6e56ca60
16 changed files with 54 additions and 91 deletions

View file

@ -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);
}