about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorGuillaume Boisseau <Nadrieril@users.noreply.github.com>2024-02-17 11:23:03 +0100
committerGitHub <noreply@github.com>2024-02-17 11:23:03 +0100
commit5f2160946317d2ee0a04e55550a0e3cc2dfa63e0 (patch)
treef37d0bbf005908d6e4017ca65a0a906fe498dee0 /compiler/rustc_codegen_llvm/src/errors.rs
parentdfdbe30004a095ad63951c4cd6e10a9a971a7399 (diff)
parent3b63edeb9999b5b29826f018b2eabe702bee4e97 (diff)
downloadrust-5f2160946317d2ee0a04e55550a0e3cc2dfa63e0.tar.gz
rust-5f2160946317d2ee0a04e55550a0e3cc2dfa63e0.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions