Skip to content

Commit 9210afc

Browse files
committed
rustc: Pretty print interior vector types
1 parent 68887fd commit 9210afc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/pretty/pprust.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ fn print_type(&ps s, &ast::ty ty) {
201201
print_mt(s, mt);
202202
word(s.s, "]");
203203
}
204+
case (ast::ty_ivec(?mt)) {
205+
print_type(s, *mt.ty);
206+
word(s.s, "[");
207+
print_mutability(s, mt.mut);
208+
word(s.s, "]");
209+
}
204210
case (ast::ty_port(?t)) {
205211
word(s.s, "port[");
206212
print_type(s, *t);

0 commit comments

Comments
 (0)