Auto merge of #1196 - RalfJung:winlock, r=RalfJung

Remove incorrect try_lock from Windows critical section shim
This commit is contained in:
bors 2020-02-29 19:58:38 +00:00
commit b9eb21aa2c

View file

@ -124,11 +124,12 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
| "DeleteCriticalSection"
=> {
// Nothing to do, not even a return value.
// (Windows locks are reentrant, and we have only 1 thread,
// so not doing any futher checks here is at least not incorrect.)
}
| "GetModuleHandleW"
| "GetProcAddress"
| "TryEnterCriticalSection"
| "GetConsoleScreenBufferInfo"
| "SetConsoleTextAttribute"
=> {