Skip to content

Commit e9c0e75

Browse files
committed
---
yaml --- r: 4154 b: refs/heads/master c: 797cd9f h: refs/heads/master v: v3
1 parent 93470bf commit e9c0e75

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4070b75914cd3b6b891aa5868e77c1921e76eb62
2+
refs/heads/master: 797cd9fd0ec2a27d4a755d8b22419912f1353bd3

trunk/src/comp/syntax/print/pprust.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,13 +1056,17 @@ fn print_decl(&ps s, &@ast::decl decl) {
10561056
ibox(s, indent_unit);
10571057
word_nbsp(s, "let");
10581058
fn print_local(&ps s, &@ast::local loc) {
1059-
word(s.s, loc.node.ident);
1060-
alt (loc.node.ty) {
1059+
alt loc.node.ty {
10611060
some(?ty) {
1061+
ibox(s, indent_unit);
1062+
word(s.s, loc.node.ident);
10621063
word_space(s, ":");
10631064
print_type(s, *ty);
1065+
end(s);
1066+
}
1067+
_ {
1068+
word(s.s, loc.node.ident);
10641069
}
1065-
_ {}
10661070
}
10671071
alt loc.node.init {
10681072
some(?init) {

0 commit comments

Comments
 (0)