@@ -358,7 +358,7 @@ macro_rules! impl_Display {
358
358
}
359
359
#[ cfg( feature = "optimize_for_size" ) ]
360
360
{
361
- offset = _inner_slow_integer_to_str( self . unsigned_abs( ) . $conv_fn( ) , & mut buf. buf) ;
361
+ offset = $ { concat ( _inner_slow_integer_to_str, $gen_name ) } ( self . unsigned_abs( ) . $conv_fn( ) , & mut buf. buf) ;
362
362
}
363
363
// Only difference between signed and unsigned are these 4 lines.
364
364
if self < 0 {
@@ -401,7 +401,7 @@ macro_rules! impl_Display {
401
401
}
402
402
#[ cfg( feature = "optimize_for_size" ) ]
403
403
{
404
- offset = _inner_slow_integer_to_str( self . $conv_fn( ) , & mut buf. buf) ;
404
+ offset = $ { concat ( _inner_slow_integer_to_str, $gen_name ) } ( self . $conv_fn( ) , & mut buf. buf) ;
405
405
}
406
406
// SAFETY: Starting from `offset`, all elements of the slice have been set.
407
407
unsafe { slice_buffer_to_str( & buf. buf, offset) }
@@ -412,7 +412,7 @@ macro_rules! impl_Display {
412
412
) *
413
413
414
414
#[ cfg( feature = "optimize_for_size" ) ]
415
- fn _inner_slow_integer_to_str( mut n: $u, buf: & mut [ MaybeUninit :: <u8 >] ) -> usize {
415
+ fn $ { concat ( _inner_slow_integer_to_str, $gen_name ) } ( mut n: $u, buf: & mut [ MaybeUninit :: <u8 >] ) -> usize {
416
416
let mut curr = buf. len( ) ;
417
417
418
418
// SAFETY: To show that it's OK to copy into `buf_ptr`, notice that at the beginning
@@ -437,7 +437,7 @@ macro_rules! impl_Display {
437
437
const MAX_DEC_N : usize = $u:: MAX . ilog( 10 ) as usize + 1 ;
438
438
let mut buf = [ MaybeUninit :: <u8 >:: uninit( ) ; MAX_DEC_N ] ;
439
439
440
- let offset = _inner_slow_integer_to_str( n, & mut buf) ;
440
+ let offset = $ { concat ( _inner_slow_integer_to_str, $gen_name ) } ( n, & mut buf) ;
441
441
// SAFETY: Starting from `offset`, all elements of the slice have been set.
442
442
let buf_slice = unsafe { slice_buffer_to_str( & buf, offset) } ;
443
443
f. pad_integral( is_nonnegative, "" , buf_slice)
0 commit comments