File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
compiler/rustc_middle/src/ty/print Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1012,20 +1012,12 @@ pub trait PrettyPrinter<'tcx>:
10121012 ( Scalar :: Raw { data, .. } , ty:: Uint ( ui) ) => {
10131013 let size = Integer :: from_attr ( & self . tcx ( ) , UnsignedInt ( * ui) ) . size ( ) ;
10141014 let int = ConstInt :: new ( data, size, false , ty. is_ptr_sized_integral ( ) ) ;
1015- if print_ty {
1016- p ! ( write( "{:#?}" , int) )
1017- } else {
1018- p ! ( write( "{:?}" , int) )
1019- }
1015+ if print_ty { p ! ( write( "{:#?}" , int) ) } else { p ! ( write( "{:?}" , int) ) }
10201016 }
10211017 ( Scalar :: Raw { data, .. } , ty:: Int ( i) ) => {
10221018 let size = Integer :: from_attr ( & self . tcx ( ) , SignedInt ( * i) ) . size ( ) ;
10231019 let int = ConstInt :: new ( data, size, true , ty. is_ptr_sized_integral ( ) ) ;
1024- if print_ty {
1025- p ! ( write( "{:#?}" , int) )
1026- } else {
1027- p ! ( write( "{:?}" , int) )
1028- }
1020+ if print_ty { p ! ( write( "{:#?}" , int) ) } else { p ! ( write( "{:?}" , int) ) }
10291021 }
10301022 // Char
10311023 ( Scalar :: Raw { data, .. } , ty:: Char ) if char:: from_u32 ( data as u32 ) . is_some ( ) => {
You can’t perform that action at this time.
0 commit comments