@@ -574,8 +574,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
574
574
buf_op : OpTy < ' tcx , Tag > ,
575
575
) -> InterpResult < ' tcx , i32 > {
576
576
let this = self . eval_context_mut ( ) ;
577
- this. check_no_isolation ( "stat" ) ?;
578
577
this. assert_platform ( "macos" , "stat" ) ;
578
+ this. check_no_isolation ( "stat" ) ?;
579
579
// `stat` always follows symlinks.
580
580
this. macos_stat_or_lstat ( true , path_op, buf_op)
581
581
}
@@ -587,8 +587,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
587
587
buf_op : OpTy < ' tcx , Tag > ,
588
588
) -> InterpResult < ' tcx , i32 > {
589
589
let this = self . eval_context_mut ( ) ;
590
- this. check_no_isolation ( "lstat" ) ?;
591
590
this. assert_platform ( "macos" , "lstat" ) ;
591
+ this. check_no_isolation ( "lstat" ) ?;
592
592
this. macos_stat_or_lstat ( false , path_op, buf_op)
593
593
}
594
594
@@ -599,8 +599,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
599
599
) -> InterpResult < ' tcx , i32 > {
600
600
let this = self . eval_context_mut ( ) ;
601
601
602
- this. check_no_isolation ( "fstat" ) ?;
603
602
this. assert_platform ( "macos" , "fstat" ) ;
603
+ this. check_no_isolation ( "fstat" ) ?;
604
604
605
605
let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
606
606
@@ -621,8 +621,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
621
621
) -> InterpResult < ' tcx , i32 > {
622
622
let this = self . eval_context_mut ( ) ;
623
623
624
- this. check_no_isolation ( "statx" ) ?;
625
624
this. assert_platform ( "linux" , "statx" ) ;
625
+ this. check_no_isolation ( "statx" ) ?;
626
626
627
627
let statxbuf_scalar = this. read_scalar ( statxbuf_op) ?. not_undef ( ) ?;
628
628
let pathname_scalar = this. read_scalar ( pathname_op) ?. not_undef ( ) ?;
@@ -880,8 +880,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
880
880
) -> InterpResult < ' tcx , i32 > {
881
881
let this = self . eval_context_mut ( ) ;
882
882
883
- this. check_no_isolation ( "readdir64_r" ) ?;
884
883
this. assert_platform ( "linux" , "readdir64_r" ) ;
884
+ this. check_no_isolation ( "readdir64_r" ) ?;
885
885
886
886
let dirp = this. read_scalar ( dirp_op) ?. to_machine_usize ( this) ?;
887
887
@@ -967,8 +967,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
967
967
) -> InterpResult < ' tcx , i32 > {
968
968
let this = self . eval_context_mut ( ) ;
969
969
970
- this. check_no_isolation ( "readdir_r" ) ?;
971
970
this. assert_platform ( "macos" , "readdir_r" ) ;
971
+ this. check_no_isolation ( "readdir_r" ) ?;
972
972
973
973
let dirp = this. read_scalar ( dirp_op) ?. to_machine_usize ( this) ?;
974
974
0 commit comments