@@ -348,27 +348,27 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
348348
349349 // Incomplete shims that we "stub out" just to get pre-main initialization code to work.
350350 // 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 ( ) => {
352352 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
353353 let & [ ] = check_arg_count ( args) ?;
354354 // Just fake a HANDLE
355355 this. write_scalar ( Scalar :: from_machine_isize ( 1 , this) , dest) ?;
356356 }
357- "SetConsoleTextAttribute" if this. in_std ( ) => {
357+ "SetConsoleTextAttribute" if this. frame_in_std ( ) => {
358358 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
359359 #[ allow( non_snake_case) ]
360360 let & [ ref _hConsoleOutput, ref _wAttribute] = check_arg_count ( args) ?;
361361 // Pretend these does not exist / nothing happened, by returning zero.
362362 this. write_null ( dest) ?;
363363 }
364- "AddVectoredExceptionHandler" if this. in_std ( ) => {
364+ "AddVectoredExceptionHandler" if this. frame_in_std ( ) => {
365365 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
366366 #[ allow( non_snake_case) ]
367367 let & [ ref _First, ref _Handler] = check_arg_count ( args) ?;
368368 // Any non zero value works for the stdlib. This is just used for stack overflows anyway.
369369 this. write_scalar ( Scalar :: from_machine_usize ( 1 , this) , dest) ?;
370370 }
371- "SetThreadStackGuarantee" if this. in_std ( ) => {
371+ "SetThreadStackGuarantee" if this. frame_in_std ( ) => {
372372 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
373373 #[ allow( non_snake_case) ]
374374 let & [ _StackSizeInBytes] = check_arg_count ( args) ?;
@@ -379,7 +379,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
379379 | "EnterCriticalSection"
380380 | "LeaveCriticalSection"
381381 | "DeleteCriticalSection"
382- if this. in_std ( ) =>
382+ if this. frame_in_std ( ) =>
383383 {
384384 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
385385 #[ allow( non_snake_case) ]
@@ -393,7 +393,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
393393 // (Windows locks are reentrant, and we have only 1 thread,
394394 // so not doing any futher checks here is at least not incorrect.)
395395 }
396- "TryEnterCriticalSection" if this. in_std ( ) => {
396+ "TryEnterCriticalSection" if this. frame_in_std ( ) => {
397397 this. check_abi ( abi, Abi :: System { unwind : false } ) ?;
398398 #[ allow( non_snake_case) ]
399399 let & [ ref _lpCriticalSection] = check_arg_count ( args) ?;
0 commit comments