File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -920,8 +920,8 @@ pub trait PrettyPrinter<'tcx>:
920
920
( ConstValue :: Scalar ( Scalar :: Raw { data, .. } ) , ty:: Char ) =>
921
921
p ! ( write( "{:?}" , :: std:: char :: from_u32( data as u32 ) . unwrap( ) ) ) ,
922
922
( ConstValue :: Scalar ( Scalar :: Raw { data, size } ) , ty:: RawPtr ( _) ) => {
923
- p ! ( write( "{:# 01$x} " , data, size as usize * 2 ) ) ;
924
- self = self . pretty_print_type ( & ct. ty ) ? ;
923
+ p ! ( write( "0x{: 01$x} : " , data, size as usize * 2 ) ) ;
924
+ p ! ( print ( ct. ty) ) ;
925
925
}
926
926
( ConstValue :: Scalar ( Scalar :: Ptr ( ptr) ) , ty:: FnPtr ( _) ) => {
927
927
let instance = {
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ error[E0308]: mismatched types
10
10
--> $DIR/raw-ptr-const-param.rs:7:38
11
11
|
12
12
LL | let _: Const<{15 as *const _}> = Const::<{10 as *const _}>;
13
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `0x0000000000000f *const u32`, found `0x0000000000000a *const u32`
13
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `0x000000000000000f : *const u32`, found `0x000000000000000a : *const u32`
14
14
|
15
- = note: expected type `Const<0x0000000000000f *const u32>`
16
- found type `Const<0x0000000000000a *const u32>`
15
+ = note: expected type `Const<0x000000000000000f : *const u32>`
16
+ found type `Const<0x000000000000000a : *const u32>`
17
17
18
18
error: aborting due to previous error
19
19
You can’t perform that action at this time.
0 commit comments