change region syntax to &r/T in place of &r.T
This commit is contained in:
@@ -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) + "]" }
|
||||
|
||||
Reference in New Issue
Block a user