@@ -348,27 +348,27 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
348
348
349
349
// Incomplete shims that we "stub out" just to get pre-main initialization code to work.
350
350
// These shims are enabled only when the caller is in the standard library.
351
- "GetProcessHeap" if this. in_std ( ) => {
351
+ "GetProcessHeap" if this. frame_in_std ( ) => {
352
352
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
353
353
let & [ ] = check_arg_count ( args) ?;
354
354
// Just fake a HANDLE
355
355
this. write_scalar ( Scalar :: from_machine_isize ( 1 , this) , dest) ?;
356
356
}
357
- "SetConsoleTextAttribute" if this. in_std ( ) => {
357
+ "SetConsoleTextAttribute" if this. frame_in_std ( ) => {
358
358
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
359
359
#[ allow( non_snake_case) ]
360
360
let & [ ref _hConsoleOutput, ref _wAttribute] = check_arg_count ( args) ?;
361
361
// Pretend these does not exist / nothing happened, by returning zero.
362
362
this. write_null ( dest) ?;
363
363
}
364
- "AddVectoredExceptionHandler" if this. in_std ( ) => {
364
+ "AddVectoredExceptionHandler" if this. frame_in_std ( ) => {
365
365
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
366
366
#[ allow( non_snake_case) ]
367
367
let & [ ref _First, ref _Handler] = check_arg_count ( args) ?;
368
368
// Any non zero value works for the stdlib. This is just used for stack overflows anyway.
369
369
this. write_scalar ( Scalar :: from_machine_usize ( 1 , this) , dest) ?;
370
370
}
371
- "SetThreadStackGuarantee" if this. in_std ( ) => {
371
+ "SetThreadStackGuarantee" if this. frame_in_std ( ) => {
372
372
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
373
373
#[ allow( non_snake_case) ]
374
374
let & [ _StackSizeInBytes] = check_arg_count ( args) ?;
@@ -379,7 +379,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
379
379
| "EnterCriticalSection"
380
380
| "LeaveCriticalSection"
381
381
| "DeleteCriticalSection"
382
- if this. in_std ( ) =>
382
+ if this. frame_in_std ( ) =>
383
383
{
384
384
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
385
385
#[ allow( non_snake_case) ]
@@ -393,7 +393,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
393
393
// (Windows locks are reentrant, and we have only 1 thread,
394
394
// so not doing any futher checks here is at least not incorrect.)
395
395
}
396
- "TryEnterCriticalSection" if this. in_std ( ) => {
396
+ "TryEnterCriticalSection" if this. frame_in_std ( ) => {
397
397
this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
398
398
#[ allow( non_snake_case) ]
399
399
let & [ ref _lpCriticalSection] = check_arg_count ( args) ?;
0 commit comments