@@ -299,7 +299,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
299299 let & [ val] = check_arg_count ( args) ?;
300300 let val = this. read_immediate ( val) ?;
301301
302- let res = match val. layout . ty . kind {
302+ let res = match val. layout . ty . kind ( ) {
303303 ty:: Float ( FloatTy :: F32 ) => {
304304 this. float_to_int_unchecked ( val. to_scalar ( ) ?. to_f32 ( ) ?, dest. layout . ty ) ?
305305 }
@@ -528,10 +528,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
528528 let f = f. round_to_integral ( Round :: TowardZero ) . value ;
529529
530530 // Step 2: Cast the truncated float to the target integer type and see if we lose any information in this step.
531- Ok ( match dest_ty. kind {
531+ Ok ( match dest_ty. kind ( ) {
532532 // Unsigned
533533 ty:: Uint ( t) => {
534- let size = Integer :: from_attr ( this, attr:: IntType :: UnsignedInt ( t) ) . size ( ) ;
534+ let size = Integer :: from_attr ( this, attr:: IntType :: UnsignedInt ( * t) ) . size ( ) ;
535535 let res = f. to_u128 ( size. bits_usize ( ) ) ;
536536 if res. status . is_empty ( ) {
537537 // No status flags means there was no further rounding or other loss of precision.
@@ -546,7 +546,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
546546 }
547547 // Signed
548548 ty:: Int ( t) => {
549- let size = Integer :: from_attr ( this, attr:: IntType :: SignedInt ( t) ) . size ( ) ;
549+ let size = Integer :: from_attr ( this, attr:: IntType :: SignedInt ( * t) ) . size ( ) ;
550550 let res = f. to_i128 ( size. bits_usize ( ) ) ;
551551 if res. status . is_empty ( ) {
552552 // No status flags means there was no further rounding or other loss of precision.
0 commit comments