[INFO] fetching crate windows-dll-codegen 0.3.0... [INFO] testing windows-dll-codegen-0.3.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate windows-dll-codegen 0.3.0 into /workspace/builds/worker-118/source [INFO] validating manifest of crates.io crate windows-dll-codegen 0.3.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate windows-dll-codegen 0.3.0 [INFO] finished tweaking crates.io crate windows-dll-codegen 0.3.0 [INFO] tweaked toml for crates.io crate windows-dll-codegen 0.3.0 written to /workspace/builds/worker-118/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed29c56329fa50cbf480ef9e09394d6d510a84a24eed335b0ec5ac5368568d33 [INFO] running `Command { std: "docker" "start" "-a" "ed29c56329fa50cbf480ef9e09394d6d510a84a24eed335b0ec5ac5368568d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed29c56329fa50cbf480ef9e09394d6d510a84a24eed335b0ec5ac5368568d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed29c56329fa50cbf480ef9e09394d6d510a84a24eed335b0ec5ac5368568d33", kill_on_drop: false }` [INFO] [stdout] ed29c56329fa50cbf480ef9e09394d6d510a84a24eed335b0ec5ac5368568d33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32d00bf84b497227fa277d338f7ad9f113a335797a1c10c642fa03dbebec4b66 [INFO] running `Command { std: "docker" "start" "-a" "32d00bf84b497227fa277d338f7ad9f113a335797a1c10c642fa03dbebec4b66", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling windows-dll-codegen v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.80s [INFO] running `Command { std: "docker" "inspect" "32d00bf84b497227fa277d338f7ad9f113a335797a1c10c642fa03dbebec4b66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32d00bf84b497227fa277d338f7ad9f113a335797a1c10c642fa03dbebec4b66", kill_on_drop: false }` [INFO] [stdout] 32d00bf84b497227fa277d338f7ad9f113a335797a1c10c642fa03dbebec4b66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b71938c38da9b5b8447e8a3bb0854a510dadb0c728f043a24a8061315e71e96 [INFO] running `Command { std: "docker" "start" "-a" "4b71938c38da9b5b8447e8a3bb0854a510dadb0c728f043a24a8061315e71e96", kill_on_drop: false }` [INFO] [stderr] Compiling windows-dll-codegen v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/windows_dll_codegen-ddb7eeb5e8b3f590) [INFO] running `Command { std: "docker" "inspect" "4b71938c38da9b5b8447e8a3bb0854a510dadb0c728f043a24a8061315e71e96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b71938c38da9b5b8447e8a3bb0854a510dadb0c728f043a24a8061315e71e96", kill_on_drop: false }` [INFO] [stdout] 4b71938c38da9b5b8447e8a3bb0854a510dadb0c728f043a24a8061315e71e96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a978aa63e8285482a34c0d2749b47c8325e5ac5dbafd11f2d0b1cba6b7610544 [INFO] running `Command { std: "docker" "start" "-a" "a978aa63e8285482a34c0d2749b47c8325e5ac5dbafd11f2d0b1cba6b7610544", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/windows_dll_codegen-ddb7eeb5e8b3f590) [INFO] [stdout] [INFO] [stderr] Doc-tests windows-dll-codegen [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - dll (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 62) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 51) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 90) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 26) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 11) ... FAILED [INFO] [stdout] test src/lib.rs - dll (line 71) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - dll (line 19) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 4 | extern "system" { [INFO] [stdout] | - item list starts here [INFO] [stdout] 5 | ... [INFO] [stdout] | ^^^ non-item starts here [INFO] [stdout] 6 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll("user32")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `allow_dark_mode_for_window` [INFO] [stdout] --> src/lib.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 3 | if allow_dark_mode_for_window::exists() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `allow_dark_mode_for_window` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `allow_dark_mode_for_window` in this scope [INFO] [stdout] --> src/lib.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 4 | allow_dark_mode_for_window(hwnd, allow) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hwnd` in this scope [INFO] [stdout] --> src/lib.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 4 | allow_dark_mode_for_window(hwnd, allow) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `allow` [INFO] [stdout] --> src/lib.rs:64:38 [INFO] [stdout] | [INFO] [stdout] 4 | allow_dark_mode_for_window(hwnd, allow) [INFO] [stdout] | ^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 51) stdout ---- [INFO] [stdout] error: malformed `link_ordinal` attribute input [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[link_ordinal = 133] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[link_ordinal(ordinal)]` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll(uxtheme)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/lib.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 6 | fn allow_dark_mode_for_window(hwnd: HWND, allow: BOOL) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:55:54 [INFO] [stdout] | [INFO] [stdout] 6 | fn allow_dark_mode_for_window(hwnd: HWND, allow: BOOL) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:55:63 [INFO] [stdout] | [INFO] [stdout] 6 | fn allow_dark_mode_for_window(hwnd: HWND, allow: BOOL) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error[E0658]: the `#[link_ordinal]` attribute is an experimental feature [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[link_ordinal = 133] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #58713 for more information [INFO] [stdout] [INFO] [stdout] error: illegal ordinal format in `link_ordinal` [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[link_ordinal = 133] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: an unsuffixed integer value, e.g., `1`, is expected [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 90) stdout ---- [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll(bcrypt, LOAD_LIBRARY_SEARCH_SYSTEM32)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/lib.rs:94:46 [INFO] [stdout] | [INFO] [stdout] 6 | fn bcrypt_add_context_function(dw_table: ULONG, psz_context: LPCWSTR, dw_interface: ULONG, psz_function: LPCWSTR, dw_position: ULONG)... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:94:66 [INFO] [stdout] | [INFO] [stdout] 6 | fn bcrypt_add_context_function(dw_table: ULONG, psz_context: LPCWSTR, dw_interface: ULONG, psz_function: LPCWSTR, dw_position: ULONG)... [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/lib.rs:94:89 [INFO] [stdout] | [INFO] [stdout] 6 | fn bcrypt_add_context_function(dw_table: ULONG, psz_context: LPCWSTR, dw_interface: ULONG, psz_function: LPCWSTR, dw_position: ULONG)... [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:94:110 [INFO] [stdout] | [INFO] [stdout] 6 | ...ntext: LPCWSTR, dw_interface: ULONG, psz_function: LPCWSTR, dw_position: ULONG) -> BOOL; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/lib.rs:94:132 [INFO] [stdout] | [INFO] [stdout] 6 | ...terface: ULONG, psz_function: LPCWSTR, dw_position: ULONG) -> BOOL; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:94:142 [INFO] [stdout] | [INFO] [stdout] 6 | ...ion: LPCWSTR, dw_position: ULONG) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 40) stdout ---- [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll(user32)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/lib.rs:44:48 [INFO] [stdout] | [INFO] [stdout] 6 | fn set_window_composition_attribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWCOMPOSITIONATTRIBDATA` in this scope [INFO] [stdout] --> src/lib.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 6 | fn set_window_composition_attribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:44:97 [INFO] [stdout] | [INFO] [stdout] 6 | fn set_window_composition_attribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 26) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 4 | extern "system" { [INFO] [stdout] | - item list starts here [INFO] [stdout] 5 | ... [INFO] [stdout] | ^^^ non-item starts here [INFO] [stdout] 6 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll(user32)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 11) stdout ---- [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[dll("user32.dll")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/lib.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWCOMPOSITIONATTRIBDATA` in this scope [INFO] [stdout] --> src/lib.rs:15:62 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:15:94 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dll (line 71) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 9 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 9 | .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 9 | ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `@` or `|`, found `:` [INFO] [stdout] --> src/lib.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 10 | let result: Result> = SetWindowCompositionAttribute(h_wnd, data); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `@` or `|` [INFO] [stdout] | help: maybe write a path separator here: `::` [INFO] [stdout] [INFO] [stdout] error: expected one of `=` or `@`, found `<` [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 10 | let result: Result> = SetWindowCompositionAttribute(h_wnd, data); [INFO] [stdout] | ^ expected one of `=` or `@` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `dll` in this scope [INFO] [stdout] --> src/lib.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[dll(user32)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] windows_dll_codegen::dll [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fallible` in this scope [INFO] [stdout] --> src/lib.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[fallible] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/lib.rs:76:45 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWCOMPOSITIONATTRIBDATA` in this scope [INFO] [stdout] --> src/lib.rs:76:62 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:76:94 [INFO] [stdout] | [INFO] [stdout] 6 | fn SetWindowCompositionAttribute(h_wnd: HWND, data: *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; [INFO] [stdout] | ^^^^ help: a builtin type with a similar name exists: `bool` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/lib.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - dll (line 11) [INFO] [stdout] src/lib.rs - dll (line 19) [INFO] [stdout] src/lib.rs - dll (line 26) [INFO] [stdout] src/lib.rs - dll (line 40) [INFO] [stdout] src/lib.rs - dll (line 51) [INFO] [stdout] src/lib.rs - dll (line 62) [INFO] [stdout] src/lib.rs - dll (line 71) [INFO] [stdout] src/lib.rs - dll (line 90) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a978aa63e8285482a34c0d2749b47c8325e5ac5dbafd11f2d0b1cba6b7610544", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a978aa63e8285482a34c0d2749b47c8325e5ac5dbafd11f2d0b1cba6b7610544", kill_on_drop: false }` [INFO] [stdout] a978aa63e8285482a34c0d2749b47c8325e5ac5dbafd11f2d0b1cba6b7610544