Skip to content

Commit 96fbb2a

Browse files
committed
---
yaml --- r: 20991 b: refs/heads/snap-stage3 c: 99a5715 h: refs/heads/master i: 20989: 00f9964 20987: 3b4ac87 20983: f46ccd6 20975: 789e67e 20959: 2b74fd1 20927: 2f906aa 20863: 808f20c 20735: 2213fe5 20479: 9ebca6f v: v3
1 parent 6812726 commit 96fbb2a

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,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 436a90e3d78a81379e36c8acec49e170bb1cd0e6
4+
refs/heads/snap-stage3: 99a571585c47dd90badb44d366c9ff4d2c43b296
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)