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>:
1012
1012
( Scalar :: Raw { data, .. } , ty:: Uint ( ui) ) => {
1013
1013
let size = Integer :: from_attr ( & self . tcx ( ) , UnsignedInt ( * ui) ) . size ( ) ;
1014
1014
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) ) }
1020
1016
}
1021
1017
( Scalar :: Raw { data, .. } , ty:: Int ( i) ) => {
1022
1018
let size = Integer :: from_attr ( & self . tcx ( ) , SignedInt ( * i) ) . size ( ) ;
1023
1019
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) ) }
1029
1021
}
1030
1022
// Char
1031
1023
( 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