Skip to content

Commit e436b8a

Browse files
committed
---
yaml --- r: 23266 b: refs/heads/master c: 0d7bef4 h: refs/heads/master v: v3
1 parent 40fcca7 commit e436b8a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9c6890f4884b1294dd13ad883162ab98e2dd27e5
2+
refs/heads/master: 0d7bef4d481fa13b53829c5665026f1a5887c8f0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ fn print_item(s: ps, &&item: @ast::item) {
497497
print_enum_def(s, enum_definition, params, item.ident, item.span);
498498
}
499499
ast::item_class(struct_def, tps) => {
500-
head(s, ~"class");
500+
head(s, ~"struct");
501501
print_struct(s, struct_def, tps, item.ident, item.span);
502502
}
503503
ast::item_impl(tps, traits, ty, methods) => {
@@ -636,9 +636,7 @@ fn print_struct(s: ps, struct_def: @ast::struct_def, tps: ~[ast::ty_param],
636636
hardbreak_if_not_bol(s);
637637
maybe_print_comment(s, field.span.lo);
638638
if visibility == ast::private {
639-
head(s, ~"priv");
640-
bopen(s);
641-
hardbreak_if_not_bol(s);
639+
word_nbsp(s, ~"priv");
642640
}
643641
if mutability == ast::class_mutable {
644642
word_nbsp(s, ~"mut");

0 commit comments

Comments
 (0)