From cdd806d3248a702fb4d75f5134f0a7dff86710b6 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 2 Jan 2012 15:42:13 +0100 Subject: [PATCH] Add a clause ty_ptr to ppaux::ty_to_str Closes #1383 --- src/comp/util/ppaux.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index ec1b90572c0b..687546a4849e 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -95,6 +95,7 @@ fn mt_to_str(cx: ctxt, m: mt) -> str { ty_str. { "str" } ty_box(tm) { "@" + mt_to_str(cx, tm) } ty_uniq(tm) { "~" + mt_to_str(cx, tm) } + ty_ptr(tm) { "*" + mt_to_str(cx, tm) } ty_vec(tm) { "[" + mt_to_str(cx, tm) + "]" } ty_type. { "type" } ty_rec(elems) {