From 9210afc8a5360ac859d21a8db6e0ef9b0ba7debb Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 16 Jun 2011 14:01:02 -0700 Subject: [PATCH] rustc: Pretty print interior vector types --- src/comp/pretty/pprust.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 9e5e905eb80..00f916f8694 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -201,6 +201,12 @@ fn print_type(&ps s, &ast::ty ty) { print_mt(s, mt); word(s.s, "]"); } + case (ast::ty_ivec(?mt)) { + print_type(s, *mt.ty); + word(s.s, "["); + print_mutability(s, mt.mut); + word(s.s, "]"); + } case (ast::ty_port(?t)) { word(s.s, "port["); print_type(s, *t);