File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 92ed73d0bd0a5d0871658c379a3f547d08f42b95
2
+ refs/heads/master: 2975bcdd7d9ee0772f1d0a106898eca26fa0a5c4
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
68
68
base
69
69
}
70
70
}
71
+ fn region_to_str ( _cx : ctxt , r : region ) -> str {
72
+ alt r {
73
+ re_named( _) { "<name>." } // TODO: include name
74
+ re_caller ( _) { "<caller>." }
75
+ re_block ( _) { "<block>." } // TODO: include line number
76
+ }
77
+ }
71
78
72
79
// if there is an id, print that instead of the structural type:
73
80
alt ty:: type_def_id ( typ) {
@@ -101,6 +108,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
101
108
ty_box ( tm) { "@" + mt_to_str ( cx, tm) }
102
109
ty_uniq ( tm) { "~" + mt_to_str ( cx, tm) }
103
110
ty_ptr ( tm) { "*" + mt_to_str ( cx, tm) }
111
+ ty_rptr ( r, tm) { "&" + region_to_str ( cx, r) + mt_to_str ( cx, tm) }
104
112
ty_vec ( tm) { "[" + mt_to_str ( cx, tm) + "]" }
105
113
ty_type { "type" }
106
114
ty_rec ( elems) {
You can’t perform that action at this time.
0 commit comments