@@ -347,7 +347,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
347
347
) -> InterpResult < ' tcx , i32 > {
348
348
let this = self . eval_context_mut ( ) ;
349
349
this. check_no_isolation ( "stat" ) ?;
350
- this. check_platform ( "macos" , "stat" ) ? ;
350
+ this. assert_platform ( "macos" , "stat" ) ;
351
351
// `stat` always follows symlinks.
352
352
this. macos_stat_or_lstat ( true , path_op, buf_op)
353
353
}
@@ -360,7 +360,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
360
360
) -> InterpResult < ' tcx , i32 > {
361
361
let this = self . eval_context_mut ( ) ;
362
362
this. check_no_isolation ( "lstat" ) ?;
363
- this. check_platform ( "macos" , "lstat" ) ? ;
363
+ this. assert_platform ( "macos" , "lstat" ) ;
364
364
this. macos_stat_or_lstat ( false , path_op, buf_op)
365
365
}
366
366
@@ -372,7 +372,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
372
372
let this = self . eval_context_mut ( ) ;
373
373
374
374
this. check_no_isolation ( "fstat" ) ?;
375
- this. check_platform ( "macos" , "fstat" ) ? ;
375
+ this. assert_platform ( "macos" , "fstat" ) ;
376
376
377
377
let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
378
378
@@ -416,7 +416,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
416
416
let this = self . eval_context_mut ( ) ;
417
417
418
418
this. check_no_isolation ( "statx" ) ?;
419
- this. check_platform ( "linux" , "statx" ) ? ;
419
+ this. assert_platform ( "linux" , "statx" ) ;
420
420
421
421
let statxbuf_scalar = this. read_scalar ( statxbuf_op) ?. not_undef ( ) ?;
422
422
let pathname_scalar = this. read_scalar ( pathname_op) ?. not_undef ( ) ?;
0 commit comments