Skip to content

Commit 7e09ef8

Browse files
Bleibrson
authored andcommitted
---
yaml --- r: 36028 b: refs/heads/try2 c: 4174688 h: refs/heads/master v: v3
1 parent 94d186f commit 7e09ef8

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 55e40a167426a7e28fc334286ef2b5c47c46e6fd
8+
refs/heads/try2: 4174688dd48f4967e08c0aecc7a2a90dc28a56da
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libsyntax/print/pprust.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,21 @@ fn print_type_ex(s: ps, &&ty: @ast::Ty, print_colons: bool) {
399399
}
400400
ast::ty_path(path, _) => print_path(s, path, print_colons),
401401
ast::ty_fixed_length(t, v) => {
402-
print_type(s, t);
403-
word(s.s, ~"/");
402+
word(s.s, ~"[");
403+
match t.node {
404+
ast::ty_vec(mt) => {
405+
match mt.mutbl {
406+
ast::m_mutbl => word_space(s, ~"mut"),
407+
ast::m_const => word_space(s, ~"const"),
408+
ast::m_imm => ()
409+
}
410+
print_type(s, mt.ty);
411+
}
412+
_ => fail ~"ty_fixed_length can only contain ty_vec as type"
413+
}
414+
word(s.s, ~" * ");
404415
print_vstore(s, ast::vstore_fixed(v));
416+
word(s.s, ~"]");
405417
}
406418
ast::ty_mac(_) => {
407419
fail ~"print_type doesn't know how to print a ty_mac";

0 commit comments

Comments
 (0)