Skip to content

Commit cdd806d

Browse files
committed
Add a clause ty_ptr to ppaux::ty_to_str
Closes #1383
1 parent 15be2fc commit cdd806d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/util/ppaux.rs

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
9595
ty_str. { "str" }
9696
ty_box(tm) { "@" + mt_to_str(cx, tm) }
9797
ty_uniq(tm) { "~" + mt_to_str(cx, tm) }
98+
ty_ptr(tm) { "*" + mt_to_str(cx, tm) }
9899
ty_vec(tm) { "[" + mt_to_str(cx, tm) + "]" }
99100
ty_type. { "type" }
100101
ty_rec(elems) {

0 commit comments

Comments
 (0)