[INFO] fetching crate windows-dll 0.2.4... [INFO] checking windows-dll-0.2.4 against try#55b3f428b4fac6790b1e8492e0b91ff2d80aec7c for pr-77035 [INFO] extracting crate windows-dll 0.2.4 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate windows-dll 0.2.4 on toolchain 55b3f428b4fac6790b1e8492e0b91ff2d80aec7c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+55b3f428b4fac6790b1e8492e0b91ff2d80aec7c" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate windows-dll 0.2.4 [INFO] finished tweaking crates.io crate windows-dll 0.2.4 [INFO] tweaked toml for crates.io crate windows-dll 0.2.4 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+55b3f428b4fac6790b1e8492e0b91ff2d80aec7c" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+55b3f428b4fac6790b1e8492e0b91ff2d80aec7c" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-dll-codegen v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+55b3f428b4fac6790b1e8492e0b91ff2d80aec7c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa7e9887762f07512de5185773df6f602309dd240ef19556336e765bda46548f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fa7e9887762f07512de5185773df6f602309dd240ef19556336e765bda46548f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa7e9887762f07512de5185773df6f602309dd240ef19556336e765bda46548f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa7e9887762f07512de5185773df6f602309dd240ef19556336e765bda46548f", kill_on_drop: false }` [INFO] [stdout] fa7e9887762f07512de5185773df6f602309dd240ef19556336e765bda46548f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+55b3f428b4fac6790b1e8492e0b91ff2d80aec7c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b3a3c08e9a6fad07fe3035d7da7a2d31e90a2dd2394767c8404e43767b44190 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5b3a3c08e9a6fad07fe3035d7da7a2d31e90a2dd2394767c8404e43767b44190", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling syn v1.0.54 [INFO] [stderr] Compiling toml v0.5.7 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling windows-dll-codegen v0.2.4 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Checking windows-dll v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shared::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | um::winnt::{LPCSTR, LPCWSTR}, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | um::winuser::MAKEINTRESOURCEA, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::libloaderapi::{LoadLibraryExW, GetProcAddress}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | pub use winapi::um::libloaderapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shared::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | um::winnt::{LPCSTR, LPCWSTR}, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | um::winuser::MAKEINTRESOURCEA, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | use winapi::um::libloaderapi::{LoadLibraryExW, GetProcAddress}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | pub use winapi::um::libloaderapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:22:87 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn load_dll_proc_ordinal(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Resul... [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WORD` in this scope [INFO] [stdout] --> src/lib.rs:22:110 [INFO] [stdout] | [INFO] [stdout] 22 | ...tr, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:22:123 [INFO] [stdout] | [INFO] [stdout] 22 | ..., name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/lib.rs:22:140 [INFO] [stdout] | [INFO] [stdout] 22 | ...roc_ordinal(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MAKEINTRESOURCEA` in this scope [INFO] [stdout] --> src/lib.rs:23:54 [INFO] [stdout] | [INFO] [stdout] 23 | load_dll_proc_name(name, proc, name_lpcwstr, MAKEINTRESOURCEA(proc_ordinal), flags) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:28:84 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe fn load_dll_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result src/lib.rs:28:104 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe fn load_dll_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result src/lib.rs:28:119 [INFO] [stdout] | [INFO] [stdout] 28 | ...c, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/lib.rs:28:136 [INFO] [stdout] | [INFO] [stdout] 28 | ...l_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryExW` in this scope [INFO] [stdout] --> src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | let library = LoadLibraryExW(name_lpcwstr, std::ptr::null_mut(), flags); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/lib.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | let function_pointer = GetProcAddress(library, proc_name); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `windows-dll` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:22:87 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn load_dll_proc_ordinal(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Resul... [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WORD` in this scope [INFO] [stdout] --> src/lib.rs:22:110 [INFO] [stdout] | [INFO] [stdout] 22 | ...tr, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:22:123 [INFO] [stdout] | [INFO] [stdout] 22 | ..., name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/lib.rs:22:140 [INFO] [stdout] | [INFO] [stdout] 22 | ...roc_ordinal(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_ordinal: WORD, flags: DWORD) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MAKEINTRESOURCEA` in this scope [INFO] [stdout] --> src/lib.rs:23:54 [INFO] [stdout] | [INFO] [stdout] 23 | load_dll_proc_name(name, proc, name_lpcwstr, MAKEINTRESOURCEA(proc_ordinal), flags) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:28:84 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe fn load_dll_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result src/lib.rs:28:104 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe fn load_dll_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result src/lib.rs:28:119 [INFO] [stdout] | [INFO] [stdout] 28 | ...c, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/lib.rs:28:136 [INFO] [stdout] | [INFO] [stdout] 28 | ...l_proc_name(name: &'static str, proc: Proc, name_lpcwstr: LPCWSTR, proc_name: LPCSTR, flags: DWORD) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryExW` in this scope [INFO] [stdout] --> src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | let library = LoadLibraryExW(name_lpcwstr, std::ptr::null_mut(), flags); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/lib.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | let function_pointer = GetProcAddress(library, proc_name); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "5b3a3c08e9a6fad07fe3035d7da7a2d31e90a2dd2394767c8404e43767b44190", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b3a3c08e9a6fad07fe3035d7da7a2d31e90a2dd2394767c8404e43767b44190", kill_on_drop: false }` [INFO] [stdout] 5b3a3c08e9a6fad07fe3035d7da7a2d31e90a2dd2394767c8404e43767b44190