File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
trunk/src/libsyntax/print Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 436a90e3d78a81379e36c8acec49e170bb1cd0e6
2
+ refs/heads/master: 99a571585c47dd90badb44d366c9ff4d2c43b296
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -496,19 +496,20 @@ fn print_item(s: ps, &&item: @ast::item) {
496
496
}
497
497
ast:: item_impl( tps, traits, ty, methods) => {
498
498
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
+
502
505
if vec:: len ( traits) != 0 u {
503
- word_nbsp ( s, ~"of ") ;
506
+ word_space ( s, ~": ") ;
504
507
do commasep( s, inconsistent, traits) |s, p| {
505
508
print_path ( s, p. path , false ) ;
506
509
}
507
- space( s. s ) ;
508
510
}
509
- word_nbsp ( s, ~"for ");
510
- print_type(s, ty);
511
511
space ( s. s ) ;
512
+
512
513
bopen ( s) ;
513
514
for methods. each |meth| {
514
515
print_method( s, meth) ;
You can’t perform that action at this time.
0 commit comments