Skip to content

Commit ae3d629

Browse files
committed
---
yaml --- r: 23099 b: refs/heads/master c: 99a5715 h: refs/heads/master i: 23097: c74eb6a 23095: a4216ba v: v3
1 parent b2c140c commit ae3d629

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
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: 436a90e3d78a81379e36c8acec49e170bb1cd0e6
2+
refs/heads/master: 99a571585c47dd90badb44d366c9ff4d2c43b296
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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,19 +496,20 @@ fn print_item(s: ps, &&item: @ast::item) {
496496
}
497497
ast::item_impl(tps, traits, ty, methods) => {
498498
head(s, ~"impl");
499-
word(s.s, *item.ident);
500-
print_type_params(s, tps);
501-
space(s.s);
499+
if tps.is_not_empty() {
500+
print_type_params(s, tps);
501+
space(s.s);
502+
}
503+
print_type(s, ty);
504+
502505
if vec::len(traits) != 0u {
503-
word_nbsp(s, ~"of");
506+
word_space(s, ~":");
504507
do commasep(s, inconsistent, traits) |s, p| {
505508
print_path(s, p.path, false);
506509
}
507-
space(s.s);
508510
}
509-
word_nbsp(s, ~"for");
510-
print_type(s, ty);
511511
space(s.s);
512+
512513
bopen(s);
513514
for methods.each |meth| {
514515
print_method(s, meth);

0 commit comments

Comments
 (0)