change region syntax to &r/T in place of &r.T

This commit is contained in:
Niko Matsakis
2012-07-12 09:36:56 -07:00
parent 1fe0d8d7d7
commit 90e435e808
28 changed files with 87 additions and 82 deletions

View File

@@ -183,10 +183,10 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
ty_ptr(tm) { "*" + mt_to_str(cx, tm) }
ty_rptr(r, tm) {
let rs = region_to_str(cx, r);
if str::len(rs) == 1u {
if rs == "&" {
rs + mt_to_str(cx, tm)
} else {
rs + "." + mt_to_str(cx, tm)
rs + "/" + mt_to_str(cx, tm)
}
}
ty_vec(tm) { "[" + mt_to_str(cx, tm) + "]" }