File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
branches/try/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 2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
- refs/heads/try: 436a90e3d78a81379e36c8acec49e170bb1cd0e6
5
+ refs/heads/try: 99a571585c47dd90badb44d366c9ff4d2c43b296
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
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