Skip to content

Commit 7789984

Browse files
Bleibrson
authored andcommitted
---
yaml --- r: 37309 b: refs/heads/try c: 4174688 h: refs/heads/master i: 37307: 8d25f43 v: v3
1 parent 1d0df27 commit 7789984

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: 55e40a167426a7e28fc334286ef2b5c47c46e6fd
5+
refs/heads/try: 4174688dd48f4967e08c0aecc7a2a90dc28a56da
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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)