Skip to content

Commit 90c0640

Browse files
committed
---
yaml --- r: 3107 b: refs/heads/master c: f03107b h: refs/heads/master i: 3105: 19c144a 3103: 7d6b5ac v: v3
1 parent a23bc40 commit 90c0640

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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: bd3e2eb4cb345752325bde4cdbd3ccac14eb28bf
2+
refs/heads/master: f03107b58cc8ab2d03d9d9ef7f4d22324e5c5c9b

trunk/src/comp/pretty/pprust.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ fn print_item(&ps s, &@ast::item item) {
297297
word_nbsp(s, id);
298298
bopen(s);
299299
for (@ast::native_item item in nmod.items) {
300+
hardbreak(s.s);
300301
ibox(s, indent_unit);
301302
maybe_print_comment(s, item.span.lo);
302303
alt (item.node) {
@@ -307,13 +308,14 @@ fn print_item(&ps s, &@ast::item item) {
307308
case (ast::native_item_fn(?id,?lname,?decl,
308309
?typarams,_,_)) {
309310
print_fn(s, decl, ast::proto_fn, id, typarams);
310-
end(s); // end head-ibox
311311
alt (lname) {
312312
case (none) {}
313313
case (some(?ss)) {
314314
print_string(s, ss);
315315
}
316316
}
317+
end(s); // end head-ibox
318+
end(s); // end the outer fn box
317319
}
318320
}
319321
word(s.s, ";");

0 commit comments

Comments
 (0)