@@ -12,7 +12,7 @@ use log::trace;
12
12
13
13
use rustc_data_structures:: fx:: FxHashMap ;
14
14
use rustc_middle:: ty:: TyCtxt ;
15
- use rustc_target:: abi:: { Align , Size , HasDataLayout as _ } ;
15
+ use rustc_target:: abi:: { Align , Size } ;
16
16
17
17
use crate :: shims:: os_str:: bytes_to_os_str;
18
18
use crate :: * ;
@@ -753,7 +753,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
753
753
// We cap the number of read bytes to the largest value that we are able to fit in both the
754
754
// host's and target's `isize`. This saves us from having to handle overflows later.
755
755
let count = count
756
- . min ( u64:: try_from ( this. data_layout ( ) . target_isize_max ( ) ) . unwrap ( ) )
756
+ . min ( u64:: try_from ( this. target_isize_max ( ) ) . unwrap ( ) )
757
757
. min ( u64:: try_from ( isize:: MAX ) . unwrap ( ) ) ;
758
758
let communicate = this. machine . communicate ( ) ;
759
759
@@ -807,7 +807,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
807
807
// We cap the number of written bytes to the largest value that we are able to fit in both the
808
808
// host's and target's `isize`. This saves us from having to handle overflows later.
809
809
let count = count
810
- . min ( u64:: try_from ( this. data_layout ( ) . target_isize_max ( ) ) . unwrap ( ) )
810
+ . min ( u64:: try_from ( this. target_isize_max ( ) ) . unwrap ( ) )
811
811
. min ( u64:: try_from ( isize:: MAX ) . unwrap ( ) ) ;
812
812
let communicate = this. machine . communicate ( ) ;
813
813
0 commit comments