rust/library/std
Guillaume Boisseau 5f21609463
Rollup merge of #119032 - smmalis37:patch-1, r=ChrisDenton
Use a hardcoded constant instead of calling OpenProcessToken.

Now that Win 7 support is dropped, we can resurrect #90144.

GetCurrentProcessToken is defined in processthreadsapi.h as:

FORCEINLINE
HANDLE
GetCurrentProcessToken (
    VOID
    )
{
    return (HANDLE)(LONG_PTR) -4;
}

Since it's very unlikely that this constant will ever change, let's just use it instead of making calls to get the same information.
2024-02-17 11:23:03 +01:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Rollup merge of #119032 - smmalis37:patch-1, r=ChrisDenton 2024-02-17 11:23:03 +01:00
tests Update feature names for new stdarch 2024-01-30 03:33:12 +00:00
build.rs std: enabling new netbsd (10) calls. 2024-02-11 08:48:02 +00:00
Cargo.toml Update libc to 0.2.153 2024-02-01 23:58:42 -03:00