Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NtExpr and NtLiteral #138478

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nnethercote
Copy link
Contributor

@nnethercote nnethercote commented Mar 14, 2025

The next part of #124141.

r? @ghost

Notes about tests:
- tests/ui/rfcs/rfc-2294-if-let-guard/feature-gate.rs: some messages are
  now duplicated due to repeated parsing.

- tests/ui/rfcs/rfc-2497-if-let-chains/disallowed-positions.rs: ditto.

- `tests/ui/proc-macro/macro-rules-derive-cfg.rs`: the diff looks large
  but the only difference is the insertion of a single
  invisible-delimited group around a metavar.

- `tests/ui/attributes/nonterminal-expansion.rs`: a slight span
  degradation, somehow related to the recent massive attr parsing
  rewrite (rust-lang#135726). I couldn't work out exactly what is going wrong, I
  don't think it's worth holding things up for a single slightly
  suboptimal error message.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 14, 2025
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    Checking std_detect v0.1.5 (/checkout/library/stdarch/crates/std_detect)
error: expected `fn`, found `{`
##[error] --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:5:1
  |
5 | windows_targets::link!("kernel32.dll" "system" fn AcquireSRWLockExclusive(srwlock : *mut SRWLOCK));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected `fn`
  | in this macro invocation
  |
  = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error] --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:6:1
  |
6 | windows_targets::link!("kernel32.dll" "system" fn AcquireSRWLockShared(srwlock : *mut SRWLOCK));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected `fn`
  | in this macro invocation
  |
  = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error] --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:7:1
  |
7 | windows_targets::link!("kernel32.dll" "system" fn AddVectoredExceptionHandler(first : u32, handler : PVECTORED_EXCEPTION_HANDLER) -> *mut core::ffi::c_void);
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected `fn`
  | in this macro invocation
  |
  = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error] --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:8:1
  |
8 | windows_targets::link!("kernel32.dll" "system" fn CancelIo(hfile : HANDLE) -> BOOL);
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected `fn`
  | in this macro invocation
  |
  = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error] --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:9:1
  |
9 | windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL);
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected `fn`
  | in this macro invocation
  |
  = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:10:1
   |
10 | windows_targets::link!("kernel32.dll" "system" fn CompareStringOrdinal(lpstring1 : PCWSTR, cchcount1 : i32, lpstring2 : PCWSTR, cchcount2 : i32, bignorecase : BOOL) -> COMPARESTRING_RESULT);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:11:1
   |
11 | windows_targets::link!("kernel32.dll" "system" fn CopyFileExW(lpexistingfilename : PCWSTR, lpnewfilename : PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut BOOL, dwcopyflags : COPYFILE_FLAGS) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:12:1
   |
12 | windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryW(lppathname : PCWSTR, lpsecurityattributes : *const SECURITY_ATTRIBUTES) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:13:1
   |
13 | windows_targets::link!("kernel32.dll" "system" fn CreateEventW(lpeventattributes : *const SECURITY_ATTRIBUTES, bmanualreset : BOOL, binitialstate : BOOL, lpname : PCWSTR) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:14:1
   |
14 | windows_targets::link!("kernel32.dll" "system" fn CreateFileW(lpfilename : PCWSTR, dwdesiredaccess : u32, dwsharemode : FILE_SHARE_MODE, lpsecurityattributes : *const SECURITY_ATTRIBUTES, dwcreationdisposition : FILE_CREATION_DISPOSITION, dwflagsandattributes : FILE_FLAGS_AND_ATTRIBUTES, htemplatefile : HANDLE) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:15:1
   |
15 | windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkW(lpfilename : PCWSTR, lpexistingfilename : PCWSTR, lpsecurityattributes : *const SECURITY_ATTRIBUTES) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:16:1
   |
16 | windows_targets::link!("kernel32.dll" "system" fn CreateNamedPipeW(lpname : PCWSTR, dwopenmode : FILE_FLAGS_AND_ATTRIBUTES, dwpipemode : NAMED_PIPE_MODE, nmaxinstances : u32, noutbuffersize : u32, ninbuffersize : u32, ndefaulttimeout : u32, lpsecurityattributes : *const SECURITY_ATTRIBUTES) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:17:1
   |
17 | windows_targets::link!("kernel32.dll" "system" fn CreatePipe(hreadpipe : *mut HANDLE, hwritepipe : *mut HANDLE, lppipeattributes : *const SECURITY_ATTRIBUTES, nsize : u32) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:18:1
   |
18 | windows_targets::link!("kernel32.dll" "system" fn CreateProcessW(lpapplicationname : PCWSTR, lpcommandline : PWSTR, lpprocessattributes : *const SECURITY_ATTRIBUTES, lpthreadattributes : *const SECURITY_ATTRIBUTES, binherithandles : BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:19:1
   |
19 | windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : PCWSTR, lptargetfilename : PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:20:1
   |
20 | windows_targets::link!("kernel32.dll" "system" fn CreateThread(lpthreadattributes : *const SECURITY_ATTRIBUTES, dwstacksize : usize, lpstartaddress : LPTHREAD_START_ROUTINE, lpparameter : *const core::ffi::c_void, dwcreationflags : THREAD_CREATION_FLAGS, lpthreadid : *mut u32) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:21:1
   |
21 | windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerExW(lptimerattributes : *const SECURITY_ATTRIBUTES, lptimername : PCWSTR, dwflags : u32, dwdesiredaccess : u32) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:22:1
   |
22 | windows_targets::link!("kernel32.dll" "system" fn DeleteFileW(lpfilename : PCWSTR) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:23:1
   |
23 | windows_targets::link!("kernel32.dll" "system" fn DeleteProcThreadAttributeList(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:24:1
   |
24 | windows_targets::link!("kernel32.dll" "system" fn DeviceIoControl(hdevice : HANDLE, dwiocontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpoverlapped : *mut OVERLAPPED) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:25:1
   |
25 | windows_targets::link!("kernel32.dll" "system" fn DuplicateHandle(hsourceprocesshandle : HANDLE, hsourcehandle : HANDLE, htargetprocesshandle : HANDLE, lptargethandle : *mut HANDLE, dwdesiredaccess : u32, binherithandle : BOOL, dwoptions : DUPLICATE_HANDLE_OPTIONS) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:26:1
   |
26 | windows_targets::link!("kernel32.dll" "system" fn ExitProcess(uexitcode : u32) -> !);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:27:1
   |
27 | windows_targets::link!("kernel32.dll" "system" fn FindClose(hfindfile : HANDLE) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:28:1
   |
28 | windows_targets::link!("kernel32.dll" "system" fn FindFirstFileExW(lpfilename : PCWSTR, finfolevelid : FINDEX_INFO_LEVELS, lpfindfiledata : *mut core::ffi::c_void, fsearchop : FINDEX_SEARCH_OPS, lpsearchfilter : *const core::ffi::c_void, dwadditionalflags : FIND_FIRST_EX_FLAGS) -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:29:1
   |
29 | windows_targets::link!("kernel32.dll" "system" fn FindNextFileW(hfindfile : HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAW) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:30:1
   |
30 | windows_targets::link!("kernel32.dll" "system" fn FlushFileBuffers(hfile : HANDLE) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:31:1
   |
31 | windows_targets::link!("kernel32.dll" "system" fn FormatMessageW(dwflags : FORMAT_MESSAGE_OPTIONS, lpsource : *const core::ffi::c_void, dwmessageid : u32, dwlanguageid : u32, lpbuffer : PWSTR, nsize : u32, arguments : *const *const i8) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:32:1
   |
32 | windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsW(penv : PCWSTR) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:33:1
   |
33 | windows_targets::link!("kernel32.dll" "system" fn GetActiveProcessorCount(groupnumber : u16) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:34:1
   |
34 | windows_targets::link!("kernel32.dll" "system" fn GetCommandLineW() -> PCWSTR);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:35:1
   |
35 | windows_targets::link!("kernel32.dll" "system" fn GetConsoleMode(hconsolehandle : HANDLE, lpmode : *mut CONSOLE_MODE) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:36:1
   |
36 | windows_targets::link!("kernel32.dll" "system" fn GetConsoleOutputCP() -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:37:1
   |
37 | windows_targets::link!("kernel32.dll" "system" fn GetCurrentDirectoryW(nbufferlength : u32, lpbuffer : PWSTR) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:38:1
   |
38 | windows_targets::link!("kernel32.dll" "system" fn GetCurrentProcess() -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:39:1
   |
39 | windows_targets::link!("kernel32.dll" "system" fn GetCurrentProcessId() -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:40:1
   |
40 | windows_targets::link!("kernel32.dll" "system" fn GetCurrentThread() -> HANDLE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:41:1
   |
41 | windows_targets::link!("kernel32.dll" "system" fn GetEnvironmentStringsW() -> PWSTR);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:42:1
   |
42 | windows_targets::link!("kernel32.dll" "system" fn GetEnvironmentVariableW(lpname : PCWSTR, lpbuffer : PWSTR, nsize : u32) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:43:1
   |
43 | windows_targets::link!("kernel32.dll" "system" fn GetExitCodeProcess(hprocess : HANDLE, lpexitcode : *mut u32) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:44:1
   |
44 | windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesW(lpfilename : PCWSTR) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:45:1
   |
45 | windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandle(hfile : HANDLE, lpfileinformation : *mut BY_HANDLE_FILE_INFORMATION) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:46:1
   |
46 | windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandleEx(hfile : HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *mut core::ffi::c_void, dwbuffersize : u32) -> BOOL);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:47:1
   |
47 | windows_targets::link!("kernel32.dll" "system" fn GetFileType(hfile : HANDLE) -> FILE_TYPE);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:48:1
   |
48 | windows_targets::link!("kernel32.dll" "system" fn GetFinalPathNameByHandleW(hfile : HANDLE, lpszfilepath : PWSTR, cchfilepath : u32, dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:49:1
   |
49 | windows_targets::link!("kernel32.dll" "system" fn GetFullPathNameW(lpfilename : PCWSTR, nbufferlength : u32, lpbuffer : PWSTR, lpfilepart : *mut PWSTR) -> u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected `fn`
   | in this macro invocation
   |
   = note: this error originates in the macro `windows_targets::link` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `fn`, found `{`
##[error]  --> /checkout/library/std/src/sys/pal/windows/c/windows_sys.rs:50:1
   |
50 | windows_targets::link!("kernel32.dll" "system" fn GetLastError() -> WIN32_ERROR);
---
    |
642 |                 sys::c::UpdateProcThreadAttribute(
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `sys::c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/compat.rs:116:29
    |
116 |             let module = c::GetModuleHandleA(name.as_ptr().cast::<u8>());
    |                             ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/compat.rs:127:27
    |
127 |             let proc = c::GetProcAddress(self.0.as_ptr(), name.as_ptr().cast::<u8>());
    |                           ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetFileInformationByHandle` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/api.rs:230:29
    |
230 |             let result = c::SetFileInformationByHandle(handle, class, info, size);
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/api.rs:243:34
    |
243 |     unsafe { WinError { code: c::GetLastError() } }
    |                                  ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetCommandLineW` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/args.rs:25:30
   |
25 |         let lp_cmd_line = c::GetCommandLineW();
   |                              ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFullPathNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/args.rs:410:35
    |
410 |                 |buffer, size| c::GetFullPathNameW(lpfilename, size, buffer, ptr::null_mut()),
    |                                   ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFullPathNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/args.rs:428:35
    |
428 |                 |buffer, size| c::GetFullPathNameW(lpfilename, size, buffer, ptr::null_mut()),
    |                                   ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateEventW` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/handle.rs:26:20
   |
26 |                 c::CreateEventW(ptr::null_mut(), manual as c::BOOL, init as c::BOOL, ptr::null());
   |                    ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:155:30
    |
155 |             let res = cvt(c::ReadFile(
    |                              ^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetOverlappedResult` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:187:24
    |
187 |                 cvt(c::GetOverlappedResult(self.as_raw_handle(), overlapped, &mut bytes, wait));
    |                        ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CancelIo` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:204:25
    |
204 |         unsafe { cvt(c::CancelIo(self.as_raw_handle())).map(drop) }
    |                         ^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `NtReadFile` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:251:16
    |
251 |             c::NtReadFile(
    |                ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:265:25
    |
265 |             unsafe { c::WaitForSingleObject(self.as_raw_handle(), c::INFINITE) };
    |                         ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `RtlNtStatusToDosError` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:283:41
    |
283 |                 let error = unsafe { c::RtlNtStatusToDosError(status) };
    |                                         ^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `NtWriteFile` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:301:16
    |
301 |             c::NtWriteFile(
    |                ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:314:25
    |
314 |             unsafe { c::WaitForSingleObject(self.as_raw_handle(), c::INFINITE) };
    |                         ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `RtlNtStatusToDosError` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/handle.rs:329:41
    |
329 |                 let error = unsafe { c::RtlNtStatusToDosError(status) };
    |                                         ^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/os.rs:40:25
   |
40 |             module = c::GetModuleHandleW(NTDLL_DLL.as_ptr());
   |                         ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FormatMessageW` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/os.rs:48:22
   |
48 |         let res = c::FormatMessageW(
   |                      ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FreeEnvironmentStringsW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:166:16
    |
166 |             c::FreeEnvironmentStringsW(self.base);
    |                ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetEnvironmentStringsW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:173:21
    |
173 |         let ch = c::GetEnvironmentStringsW();
    |                     ^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:276:31
    |
276 |         |buf, sz| unsafe { c::GetModuleFileNameW(ptr::null_mut(), buf, sz) },
    |                               ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:282:49
    |
282 |     super::fill_utf16_buf(|buf, sz| unsafe { c::GetCurrentDirectoryW(sz, buf) }, super::os2path)
    |                                                 ^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetCurrentDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:290:21
    |
290 |     cvt(unsafe { c::SetCurrentDirectoryW(p.as_ptr()) }).map(drop)
    |                     ^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetEnvironmentVariableW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:296:31
    |
296 |         |buf, sz| unsafe { c::GetEnvironmentVariableW(k.as_ptr(), buf, sz) },
    |                               ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetEnvironmentVariableW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:308:16
    |
308 |         cvt(c::SetEnvironmentVariableW(k.as_ptr(), v.as_ptr())).map(drop)
    |                ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetEnvironmentVariableW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:316:16
    |
316 |         cvt(c::SetEnvironmentVariableW(v.as_ptr(), ptr::null())).map(drop)
    |                ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetUserProfileDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:334:26
    |
334 |                 match c::GetUserProfileDirectoryW(
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `ExitProcess` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:388:17
    |
388 |     unsafe { c::ExitProcess(code as u32) }
    |                 ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcessId` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/os.rs:392:17
    |
392 |     unsafe { c::GetCurrentProcessId() }
    |                 ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcessId` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/pipe.rs:82:20
   |
82 |                 c::GetCurrentProcessId(),
---

error[E0425]: cannot find function, tuple struct or tuple variant `ReadFileEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/pipe.rs:239:20
    |
239 |                 c::ReadFileEx(self.inner.as_raw_handle(), ptr, len, overlapped, callback)
    |                    ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `ReadFileEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/pipe.rs:258:20
    |
258 |                 c::ReadFileEx(self.inner.as_raw_handle(), ptr, len, overlapped, callback)
    |                    ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WriteFileEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/pipe.rs:295:20
    |
295 |                 c::WriteFileEx(self.inner.as_raw_handle(), buf.as_ptr(), len, overlapped, callback)
    |                    ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SleepEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/pipe.rs:393:25
    |
393 |             unsafe { c::SleepEx(c::INFINITE, c::TRUE) };
    |                         ^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForMultipleObjects` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/pipe.rs:424:31
    |
424 |         let res = unsafe { c::WaitForMultipleObjects(2, objs.as_ptr(), c::FALSE, c::INFINITE) };
    |                               ^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CompareStringOrdinal` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/process.rs:73:29
   |
73 |             let result = c::CompareStringOrdinal(
   |                             ^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFullPathNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:285:24
    |
285 |                     c::GetFullPathNameW(program.as_ptr(), size, buffer, ptr::null_mut())
    |                        ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateProcessW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:375:20
    |
375 |             cvt(c::CreateProcessW(
    |                    ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:525:28
    |
525 |             |buf, size| c::GetSystemDirectoryW(buf, size),
    |                            ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowsDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:533:32
    |
533 |                 |buf, size| c::GetWindowsDirectoryW(buf, size),
    |                                ^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileAttributesW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:560:15
    |
560 |         if c::GetFileAttributesW(path.as_ptr()) == c::INVALID_FILE_ATTRIBUTES {
    |               ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `TerminateProcess` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:658:34
    |
658 |         let result = unsafe { c::TerminateProcess(self.handle.as_raw_handle(), 1) };
    |                                  ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessId` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:672:21
    |
672 |         unsafe { c::GetProcessId(self.handle.as_raw_handle()) }
    |                     ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:681:26
    |
681 |             let res = c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE);
    |                          ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetExitCodeProcess` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:686:20
    |
686 |             cvt(c::GetExitCodeProcess(self.handle.as_raw_handle(), &mut status))?;
    |                    ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:693:22
    |
693 |             match c::WaitForSingleObject(self.handle.as_raw_handle(), 0) {
    |                      ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetExitCodeProcess` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:701:20
    |
701 |             cvt(c::GetExitCodeProcess(self.handle.as_raw_handle(), &mut status))?;
    |                    ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemDirectoryW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/process.rs:849:33
    |
849 |         |buf, size| unsafe { c::GetSystemDirectoryW(buf, size) },
    |                                 ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateThread` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/thread.rs:31:26
   |
31 |             let ret = c::CreateThread(
   |                          ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/thread.rs:76:45
   |
76 |         unsafe { c::SetThreadDescription(c::GetCurrentThread(), name.as_ptr()) };
   |                                             ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/thread.rs:80:30
   |
80 |         let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE) };
   |                              ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SwitchToThread` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/thread.rs:91:16
   |
91 |             c::SwitchToThread();
   |                ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `Sleep` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/thread.rs:105:25
    |
105 |             unsafe { c::Sleep(super::dur2timeout(dur)) }
    |                         ^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemInfo` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/thread.rs:121:12
    |
121 |         c::GetSystemInfo(&mut sysinfo);
    |            ^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemTimePreciseAsFileTime` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:70:16
    |
70  |             c::GetSystemTimePreciseAsFileTime(&mut t.t);
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`
    |
note: found an item that was configured out
   --> /checkout/library/std/src/sys/pal/windows/c.rs:142:12
    |
142 |     pub fn GetSystemTimePreciseAsFileTime(lpsystemtimeasfiletime: *mut FILETIME) -> () {
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the item is gated behind the `win7` feature
   --> /checkout/library/std/src/sys/pal/windows/c.rs:141:11
    |
141 |     #[cfg(target_vendor = "win7")]
    |           ^^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
   --> /checkout/library/std/src/sys/pal/windows/c.rs:142:12
    |
142 |     pub fn GetSystemTimePreciseAsFileTime(lpsystemtimeasfiletime: *mut FILETIME) -> () {
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the item is gated behind the `win7` feature
   --> /checkout/library/std/src/sys/pal/windows/c.rs:141:11
    |
141 |     #[cfg(target_vendor = "win7")]
    |           ^^^^^^^^^^^^^^^^^^^^^^

error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceFrequency` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:212:20
    |
212 |             cvt(c::QueryPerformanceFrequency(&mut frequency)).unwrap();
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceCounter` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:221:25
    |
221 |         cvt(unsafe { c::QueryPerformanceCounter(&mut qpc_value) }).unwrap();
    |                         ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateWaitableTimerExW` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:234:16
    |
234 |             c::CreateWaitableTimerExW(
    |                ^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetWaitableTimer` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:248:34
    |
248 |         let result = unsafe { c::SetWaitableTimer(self.handle, &time, 0, None, null(), c::FALSE) };
    |                                  ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:252:34
    |
252 |         let result = unsafe { c::WaitForSingleObject(self.handle, c::INFINITE) };
    |                                  ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/time.rs:258:21
    |
258 |         unsafe { c::CloseHandle(self.handle) };
    |                     ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetThreadStackGuarantee` in module `c`
##[error] --> /checkout/library/std/src/sys/pal/windows/stack_overflow.rs:8:30
  |
8 |     let result = unsafe { c::SetThreadStackGuarantee(&mut 0x5000) };
  |                              ^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `AddVectoredExceptionHandler` in module `c`
##[error]  --> /checkout/library/std/src/sys/pal/windows/stack_overflow.rs:33:25
   |
33 |         let result = c::AddVectoredExceptionHandler(0, Some(vectored_handler));
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/pal/windows/mod.rs:253:16
    |
253 |             c::SetLastError(0);
    |                ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreatePipe` in module `c`
##[error]  --> /checkout/library/std/src/sys/anonymous_pipe/windows.rs:17:27
   |
17 |     let ret = unsafe { c::CreatePipe(&mut read_pipe, &mut write_pipe, ptr::null_mut(), 0) };
   |                           ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `NtOpenFile` in module `c`
##[error]  --> /checkout/library/std/src/sys/fs/windows/remove_dir_all.rs:55:16
   |
55 |             c::NtOpenFile(&mut handle, access, object_attribute, &mut io_status, share, options);
   |                ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `RtlNtStatusToDosError` in module `c`
##[error]  --> /checkout/library/std/src/sys/fs/windows/remove_dir_all.rs:66:34
   |
66 |                 WinError::new(c::RtlNtStatusToDosError(status))
   |                                  ^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FindNextFileW` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:133:23
    |
133 |                 if c::FindNextFileW(handle.0, &mut wfd) == 0 {
    |                       ^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FindClose` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:151:29
    |
151 |         let r = unsafe { c::FindClose(self.0) };
    |                             ^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileW` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:307:16
    |
307 |             c::CreateFileW(
    |                ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FlushFileBuffers` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:343:25
    |
343 |         cvt(unsafe { c::FlushFileBuffers(self.handle.as_raw_handle()) })?;
    |                         ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateEventW` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:354:28
    |
354 |             let event = c::CreateEventW(ptr::null_mut(), c::FALSE, c::FALSE, ptr::null());
    |                            ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `LockFileEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:359:38
    |
359 |             let lock_result = cvt(c::LockFileEx(
    |                                      ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetOverlappedResult` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:375:32
    |
375 |                         cvt(c::GetOverlappedResult(
    |                                ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:387:16
    |
387 |             c::CloseHandle(overlapped.hEvent);
    |                ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `LockFileEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:403:16
    |
403 |             c::LockFileEx(
---

error[E0425]: cannot find function, tuple struct or tuple variant `UnlockFile` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:455:25
    |
455 |         cvt(unsafe { c::UnlockFile(self.handle.as_raw_handle(), 0, 0, u32::MAX, u32::MAX) })?;
    |                         ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `UnlockFile` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:457:29
    |
457 |             cvt(unsafe { c::UnlockFile(self.handle.as_raw_handle(), 0, 0, u32::MAX, u32::MAX) });
    |                             ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileInformationByHandle` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:474:20
    |
474 |             cvt(c::GetFileInformationByHandle(self.handle.as_raw_handle(), &mut info))?;
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileInformationByHandleEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:478:24
    |
478 |                 cvt(c::GetFileInformationByHandleEx(
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetFilePointerEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:618:25
    |
618 |         cvt(unsafe { c::SetFilePointerEx(self.handle.as_raw_handle(), pos, &mut newpos, whence) })?;
    |                         ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:643:20
    |
643 |                 c::DeviceIoControl(
    |                    ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetFileTime` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:749:16
    |
749 |             c::SetFileTime(self.as_raw_handle(), created, accessed, modified)
    |                ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileInformationByHandleEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:759:20
    |
759 |             cvt(c::GetFileInformationByHandleEx(
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileInformationByHandleEx` in module `c`
##[error]   --> /checkout/library/std/src/sys/fs/windows.rs:830:29
    |
830 |             let result = c::GetFileInformationByHandleEx(
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateDirectoryW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1150:25
     |
1150 |         cvt(unsafe { c::CreateDirectoryW(p.as_ptr(), ptr::null_mut()) })?;
     |                         ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FindFirstFileExW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1177:30
     |
1177 |         let find_handle = c::FindFirstFileExW(
     |                              ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `DeleteFileW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1220:20
     |
1220 |     if unsafe { c::DeleteFileW(p_u16s.as_ptr()) } == 0 {
     |                    ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `MoveFileExW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1246:20
     |
1246 |     if unsafe { c::MoveFileExW(old.as_ptr(), new.as_ptr(), c::MOVEFILE_REPLACE_EXISTING) } == 0 {
     |                    ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetFileInformationByHandle` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1293:20
     |
1293 |                 c::SetFileInformationByHandle(
     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `RemoveDirectoryW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1317:21
     |
1317 |     cvt(unsafe { c::RemoveDirectoryW(p.as_ptr()) })?;
     |                     ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateSymbolicLinkW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1363:12
     |
1363 |         c::CreateSymbolicLinkW(
     |            ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateSymbolicLinkW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1374:20
     |
1374 |                 c::CreateSymbolicLinkW(link.as_ptr(), original.as_ptr(), flags) as c::BOOL
     |                    ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CreateHardLinkW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1387:21
     |
1387 |     cvt(unsafe { c::CreateHardLinkW(link.as_ptr(), original.as_ptr(), ptr::null_mut()) })?;
     |                     ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `FindFirstFileExW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1456:33
     |
1456 |                 let handle = c::FindFirstFileExW(
---
     |
1471 |                     c::FindClose(handle);
     |                        ^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetFileAttributesW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1491:16
     |
1491 |         cvt(c::SetFileAttributesW(p.as_ptr(), perm.attrs))?;
     |                ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFinalPathNameByHandleW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1499:16
     |
1499 |             c::GetFinalPathNameByHandleW(f.handle.as_raw_handle(), buf, sz, c::VOLUME_NAME_DOS)
     |                ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `CopyFileExW` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1538:12
     |
1538 |         c::CopyFileExW(
     |            ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in module `c`
##[error]    --> /checkout/library/std/src/sys/fs/windows.rs:1615:16
     |
1615 |         cvt(c::DeviceIoControl(
     |                ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleMode` in module `c`
##[error]  --> /checkout/library/std/src/sys/io/is_terminal/windows.rs:16:20
   |
16 |     if unsafe { c::GetConsoleMode(handle.as_raw_handle(), &mut out) != 0 } {
   |                    ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileType` in module `c`
##[error]  --> /checkout/library/std/src/sys/io/is_terminal/windows.rs:27:20
   |
27 |     if unsafe { c::GetFileType(handle.as_raw_handle()) != c::FILE_TYPE_PIPE } {
   |                    ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFileInformationByHandleEx` in module `c`
##[error]  --> /checkout/library/std/src/sys/io/is_terminal/windows.rs:44:12
   |
44 |         c::GetFileInformationByHandleEx(
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function `send` in module `c`
##[error]  --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:92:21
   |
92 |         unsafe { c::send(socket, buf.cast::<u8>(), len, flags) }
   |                     ^^^^ not found in `c`

error[E0425]: cannot find function `sendto` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:102:21
    |
102 |         unsafe { c::sendto(socket, buf.cast::<u8>(), len, flags, addr, addrlen) }
    |                     ^^^^^^ not found in `c`

error[E0425]: cannot find function `getaddrinfo` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:110:21
    |
110 |         unsafe { c::getaddrinfo(node.cast::<u8>(), service.cast::<u8>(), hints, res) }
    |                     ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAStartup` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:124:22
    |
124 |         let ret = c::WSAStartup(
    |                      ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find value `WSACleanup` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:133:12
    |
133 |         c::WSACleanup
    |            ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:148:46
    |
148 |     io::Error::from_raw_os_error(unsafe { c::WSAGetLastError() })
    |                                              ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSASocketW` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:194:16
    |
194 |             c::WSASocketW(
    |                ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:207:37
    |
207 |             let error = unsafe { c::WSAGetLastError() };
    |                                     ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSASocketW` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:214:29
    |
214 |                 unsafe { c::WSASocketW(family, ty, 0, ptr::null_mut(), 0, c::WSA_FLAG_OVERLAPPED) };
    |                             ^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function `connect` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:230:34
    |
230 |         let result = unsafe { c::connect(self.as_raw(), addr.as_ptr(), len) };
    |                                  ^^^^^^^ not found in `c`

error[E0425]: cannot find function `select` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:266:28
    |
266 |                         c::select(1, ptr::null_mut(), &mut writefds, &mut errorfds, &timeout)
    |                            ^^^^^^ not found in `c`

error[E0425]: cannot find function `accept` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:289:34
    |
289 |         let socket = unsafe { c::accept(self.as_raw(), storage, len) };
    |                                  ^^^^^^ not found in `c`

error[E0425]: cannot find function `recv` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:306:25
    |
306 |             unsafe { c::recv(self.as_raw(), buf.as_mut().as_mut_ptr() as *mut _, length, flags) };
    |                         ^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:310:41
    |
310 |                 let error = unsafe { c::WSAGetLastError() };
    |                                         ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSARecv` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:342:16
    |
342 |             c::WSARecv(
    |                ^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:356:41
    |
356 |                 let error = unsafe { c::WSAGetLastError() };
    |                                         ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function `recvfrom` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:390:16
    |
390 |             c::recvfrom(
    |                ^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:402:41
    |
402 |                 let error = unsafe { c::WSAGetLastError() };
    |                                         ^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WSASend` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:426:16
    |
426 |             c::WSASend(
    |                ^^^^^^^ not found in `c`

error[E0425]: cannot find function `shutdown` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:475:34
    |
475 |         let result = unsafe { c::shutdown(self.as_raw(), how) };
    |                                  ^^^^^^^^ not found in `c`

error[E0425]: cannot find function `ioctlsocket` in module `c`
##[error]   --> /checkout/library/std/src/sys/net/connection/socket/windows.rs:482:25
    |
482 |             unsafe { c::ioctlsocket(self.as_raw(), c::FIONBIO as c_int, &mut nonblocking) };
    |                         ^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFullPathNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/path/windows.rs:284:36
    |
284 |         |buffer, size| unsafe { c::GetFullPathNameW(lpfilename, size, buffer, ptr::null_mut()) },
    |                                    ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetFullPathNameW` in module `c`
##[error]   --> /checkout/library/std/src/sys/path/windows.rs:345:36
    |
345 |         |buffer, size| unsafe { c::GetFullPathNameW(lpfilename, size, buffer, ptr::null_mut()) },
    |                                    ^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetStdHandle` in module `c`
##[error]  --> /checkout/library/std/src/sys/stdio/windows.rs:70:30
   |
70 |     let handle = unsafe { c::GetStdHandle(handle_id) };
   |                              ^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleMode` in module `c`
##[error]  --> /checkout/library/std/src/sys/stdio/windows.rs:85:17
   |
85 |     unsafe { c::GetConsoleMode(handle, &mut mode) != 0 }
   |                 ^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleOutputCP` in module `c`
##[error]  --> /checkout/library/std/src/sys/stdio/windows.rs:91:17
   |
91 |     unsafe { c::GetConsoleOutputCP() == c::CP_UTF8 }
   |                 ^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `MultiByteToWideChar` in module `c`
##[error]   --> /checkout/library/std/src/sys/stdio/windows.rs:200:25
    |
200 |         let result = c::MultiByteToWideChar(
    |                         ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `WriteConsoleW` in module `c`
##[error]   --> /checkout/library/std/src/sys/stdio/windows.rs:251:12
    |
251 |         c::WriteConsoleW(handle, data.as_ptr(), data.len() as u32, &mut written, ptr::null_mut())
    |            ^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in module `c`
##[error]   --> /checkout/library/std/src/sys/stdio/windows.rs:371:16
    |
371 |             c::SetLastError(0);
---

error[E0425]: cannot find function, tuple struct or tuple variant `WideCharToMultiByte` in module `c`
##[error]   --> /checkout/library/std/src/sys/stdio/windows.rs:405:12
    |
405 |         c::WideCharToMultiByte(
    |            ^^^^^^^^^^^^^^^^^^^ not found in `c`

error[E0425]: cannot find value `SymGetOptions` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:130:12
    |
44  |             $($name: usize,)*
---
...
132 |         fn SymInitializeW(
    |            ^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymGetSearchPathW` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:137:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
137 |         fn SymGetSearchPathW(
    |            ^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymSetSearchPathW` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:142:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
142 |         fn SymSetSearchPathW(
    |            ^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `EnumerateLoadedModulesW64` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:146:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
---
...
166 |         fn SymGetModuleBase64(
    |            ^^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymFromAddrW` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:170:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
170 |         fn SymFromAddrW(
    |            ^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymGetLineFromAddrW64` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:176:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
---
...
182 |         fn StackWalkEx(
    |            ^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymFromInlineContextW` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:194:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
194 |         fn SymFromInlineContextW(
    |            ^^^^^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymGetLineFromInlineContextW` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:201:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
---
...
209 |         fn SymAddrIncludeInlineTrace(
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find value `SymQueryInlineTrace` in module `super::windows_sys`
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:213:12
    |
44  |             $($name: usize,)*
    |               ----- due to this macro variable
...
213 |         fn SymQueryInlineTrace(
    |            ^^^^^^^^^^^^^^^^^^^ not found in `super::windows_sys`

error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope
##[error]   --> /checkout/library/std/src/sys/pal/windows/c.rs:130:18
    |
130 |         unsafe { SetLastError(ERROR_CALL_NOT_IMPLEMENTED as u32); E_NOTIMPL }
    |                  ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope
##[error]   --> /checkout/library/std/src/sys/pal/windows/c.rs:136:18
    |
136 |         unsafe { SetLastError(ERROR_CALL_NOT_IMPLEMENTED as u32); E_NOTIMPL }
    |                  ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetTempPathW` in this scope
##[error]   --> /checkout/library/std/src/sys/pal/windows/c.rs:149:19
    |
149 |         unsafe {  GetTempPathW(bufferlength, buffer) }
    |                   ^^^^^^^^^^^^ help: a function with a similar name exists: `GetTempPath2W`
    |
   ::: /checkout/library/std/src/sys/pal/windows/compat.rs:186:13
    |
186 |             pub unsafe fn call($($argname: $argtype),*) -> $rettype {
    |             ------------------------------------------------------- similarly named function `GetTempPath2W` defined here

error[E0282]: type annotations needed for `*mut _`
##[error]  --> /checkout/library/std/src/sys/pal/windows/os.rs:28:13
   |
28 |         let mut module = ptr::null_mut();
   |             ^^^^^^^^^^
...
42 |             if !module.is_null() {
   |                        ------- cannot call a method on a raw pointer with an unknown pointee type
   |
help: consider giving `module` an explicit type, where the type for type parameter `T` is specified
   |
28 |         let mut module: *mut T = ptr::null_mut();
   |                       ++++++++

error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope
---

error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope
##[error]  --> /checkout/library/std/src/sys/alloc/windows.rs:99:14
   |
99 |     unsafe { HeapAlloc(heap, flags, bytes) }
   |              ^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `HeapFree` in this scope
##[error]   --> /checkout/library/std/src/sys/alloc/windows.rs:196:18
    |
196 |         unsafe { HeapFree(heap, 0, block.cast::<c_void>()) };
    |                  ^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `HeapReAlloc` in this scope
##[error]   --> /checkout/library/std/src/sys/alloc/windows.rs:209:22
    |
209 |             unsafe { HeapReAlloc(heap, 0, ptr.cast::<c_void>(), new_size).cast::<u8>() }
    |                      ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:67:32
    |
67  |                       self.dll = LoadLibraryA(lib.as_ptr());
    |                                  ^^^^^^^^^^^^ not found in this scope
...
128 | / dbghelp! {
129 | |     extern "system" {
130 | |         fn SymGetOptions() -> u32;
131 | |         fn SymSetOptions(options: u32) -> u32;
...   |
223 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `dbghelp` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:102:21
    |
102 |                       GetProcAddress(self.dll, symbol.as_ptr()).map(|address|address as usize)
    |                       ^^^^^^^^^^^^^^ not found in this scope
...
128 | / dbghelp! {
129 | |     extern "system" {
130 | |         fn SymGetOptions() -> u32;
131 | |         fn SymSetOptions(options: u32) -> u32;
...   |
223 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `dbghelp` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `CreateMutexA` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:294:20
    |
294 |             lock = CreateMutexA(ptr::null_mut(), FALSE, name.as_ptr());
    |                    ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:300:17
    |
300 |                 CloseHandle(lock);
    |                 ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObjectEx` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:305:17
    |
305 |         let r = WaitForSingleObjectEx(lock, INFINITE, FALSE);
    |                 ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcessId` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:241:31
    |
241 |         let mut id = unsafe { GetCurrentProcessId() };
    |                               ^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:354:38
    |
354 |         (*dbghelp).SymInitializeW()?(GetCurrentProcess(), ptr::null_mut(), TRUE);
    |                                      ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:369:13
    |
369 |             GetCurrentProcess(),
    |             ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `lstrlenW` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:375:23
    |
375 |             let len = lstrlenW(search_path_buf.as_mut_ptr());
    |                       ^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:389:13
    |
389 |             GetCurrentProcess(),
    |             ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:397:41
    |
397 |         (*dbghelp).SymSetSearchPathW()?(GetCurrentProcess(), new_search_path.as_ptr());
    |                                         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `lstrlenW` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:454:31
    |
454 |     let len: usize = unsafe { lstrlenW(module_name).try_into().unwrap() };
    |                               ^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseMutex` in this scope
##[error]   --> /checkout/library/std/src/../../backtrace/src/dbghelp.rs:483:21
    |
483 |             let r = ReleaseMutex(self.lock);
    |                     ^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0282, E0425, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `std` (lib) due to 373 previous errors
fatal error: failed to build sysroot: sysroot build failed
Command has failed. Rerun with -v to see more details.
Build completed unsuccessfully in 0:00:40
  local time: Fri Mar 14 04:27:51 UTC 2025
  network time: Fri, 14 Mar 2025 04:27:51 GMT
##[error]Process completed with exit code 1.
Post job cleanup.

@petrochenkov petrochenkov self-assigned this Mar 14, 2025
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants