File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,9 @@ fn word(printer p, str wrd) {
502
502
p. pretty_print ( STRING ( wrd, str:: char_len ( wrd) as int ) ) ;
503
503
}
504
504
505
- fn huge_word ( printer p, str wrd) { p. pretty_print ( STRING ( wrd, 0xffff ) ) ; }
505
+ fn huge_word ( printer p, str wrd) {
506
+ p. pretty_print ( STRING ( wrd, size_infinity) ) ;
507
+ }
506
508
507
509
fn zero_word ( printer p, str wrd) { p. pretty_print ( STRING ( wrd, 0 ) ) ; }
508
510
@@ -512,10 +514,10 @@ fn zerobreak(printer p) { spaces(p, 0u); }
512
514
513
515
fn space ( printer p) { spaces ( p, 1 u) ; }
514
516
515
- fn hardbreak ( printer p) { spaces ( p, 0xffff u ) ; }
517
+ fn hardbreak ( printer p) { spaces ( p, size_infinity as uint ) ; }
516
518
517
519
fn hardbreak_tok ( ) -> token {
518
- ret BREAK ( rec ( offset=0 , blank_space=0xffff ) ) ;
520
+ ret BREAK ( rec ( offset=0 , blank_space=size_infinity ) ) ;
519
521
}
520
522
521
523
//
Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ fn print_mod(&ps s, ast::_mod _mod) {
183
183
}
184
184
for ( @ast:: item item in _mod. items) {
185
185
// Mod-level item printing we're a little more space-y about.
186
-
187
- hardbreak_if_not_bol ( s) ;
186
+ hardbreak ( s . s ) ;
187
+ hardbreak ( s . s ) ;
188
188
print_item ( s, item) ;
189
189
}
190
190
print_remaining_comments ( s) ;
You can’t perform that action at this time.
0 commit comments