@@ -1899,11 +1899,11 @@ pub fn fmt_const_val<W: Write>(fmt: &mut W, const_val: &ty::Const) -> fmt::Resul
1899
1899
pub fn print_miri_value < W : Write > ( value : Value , ty : Ty , f : & mut W ) -> fmt:: Result {
1900
1900
use ty:: TypeVariants :: * ;
1901
1901
match ( value, & ty. sty ) {
1902
- ( Value :: Scalar ( Scalar :: Bits { bits : 0 , defined : 8 } ) , & TyBool ) => write ! ( f, "false" ) ,
1903
- ( Value :: Scalar ( Scalar :: Bits { bits : 1 , defined : 8 } ) , & TyBool ) => write ! ( f, "true" ) ,
1904
- ( Value :: Scalar ( Scalar :: Bits { bits, defined : 32 } ) , & TyFloat ( ast:: FloatTy :: F32 ) ) =>
1902
+ ( Value :: Scalar ( Scalar :: Bits { bits : 0 , .. } ) , & TyBool ) => write ! ( f, "false" ) ,
1903
+ ( Value :: Scalar ( Scalar :: Bits { bits : 1 , .. } ) , & TyBool ) => write ! ( f, "true" ) ,
1904
+ ( Value :: Scalar ( Scalar :: Bits { bits, .. } ) , & TyFloat ( ast:: FloatTy :: F32 ) ) =>
1905
1905
write ! ( f, "{}f32" , Single :: from_bits( bits) ) ,
1906
- ( Value :: Scalar ( Scalar :: Bits { bits, defined : 64 } ) , & TyFloat ( ast:: FloatTy :: F64 ) ) =>
1906
+ ( Value :: Scalar ( Scalar :: Bits { bits, .. } ) , & TyFloat ( ast:: FloatTy :: F64 ) ) =>
1907
1907
write ! ( f, "{}f64" , Double :: from_bits( bits) ) ,
1908
1908
( Value :: Scalar ( Scalar :: Bits { bits, .. } ) , & TyUint ( ui) ) => write ! ( f, "{:?}{}" , bits, ui) ,
1909
1909
( Value :: Scalar ( Scalar :: Bits { bits, .. } ) , & TyInt ( i) ) => {
@@ -1914,9 +1914,9 @@ pub fn print_miri_value<W: Write>(value: Value, ty: Ty, f: &mut W) -> fmt::Resul
1914
1914
let amt = 128 - bit_width;
1915
1915
write ! ( f, "{:?}{}" , ( ( bits as i128 ) << amt) >> amt, i)
1916
1916
} ,
1917
- ( Value :: Scalar ( Scalar :: Bits { bits, defined : 32 } ) , & TyChar ) =>
1917
+ ( Value :: Scalar ( Scalar :: Bits { bits, .. } ) , & TyChar ) =>
1918
1918
write ! ( f, "{:?}" , :: std:: char :: from_u32( bits as u32 ) . unwrap( ) ) ,
1919
- ( Value :: Scalar ( Scalar :: Bits { defined : 0 , .. } ) , & TyFnDef ( did, _) ) =>
1919
+ ( Value :: Scalar ( Scalar :: Bits { .. } ) , & TyFnDef ( did, _) ) =>
1920
1920
write ! ( f, "{}" , item_path_str( did) ) ,
1921
1921
( Value :: ScalarPair ( Scalar :: Ptr ( ptr) , Scalar :: Bits { bits : len, .. } ) ,
1922
1922
& TyRef ( _, & ty:: TyS { sty : TyStr , .. } , _) ) => {
0 commit comments