[INFO] cloning repository https://github.com/lhenry-dev/Windows-Firewall-Rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lhenry-dev/Windows-Firewall-Rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flhenry-dev%2FWindows-Firewall-Rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flhenry-dev%2FWindows-Firewall-Rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef324806046a3892dec1aeef65b623274fac3d45 [INFO] checking lhenry-dev/Windows-Firewall-Rs against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flhenry-dev%2FWindows-Firewall-Rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lhenry-dev/Windows-Firewall-Rs [INFO] finished tweaking git repo https://github.com/lhenry-dev/Windows-Firewall-Rs [INFO] tweaked toml for git repo https://github.com/lhenry-dev/Windows-Firewall-Rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lhenry-dev/Windows-Firewall-Rs on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lhenry-dev/Windows-Firewall-Rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-threading v0.2.0 [INFO] [stderr] Downloaded typed-builder-macro v0.23.2 [INFO] [stderr] Downloaded windows-future v0.3.0 [INFO] [stderr] Downloaded windows-collections v0.3.0 [INFO] [stderr] Downloaded windows-numerics v0.3.0 [INFO] [stderr] Downloaded getset v0.1.6 [INFO] [stderr] Downloaded typed-builder v0.23.2 [INFO] [stderr] Downloaded sdd v3.0.8 [INFO] [stderr] Downloaded once_cell v1.21.2 [INFO] [stderr] Downloaded scc v2.3.3 [INFO] [stderr] Downloaded windows v0.62.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 775fc14e88511adfd1bc7314c7a87771104994a6686dc4c93ebcc2b7fa469dae [INFO] running `Command { std: "docker" "start" "-a" "775fc14e88511adfd1bc7314c7a87771104994a6686dc4c93ebcc2b7fa469dae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "775fc14e88511adfd1bc7314c7a87771104994a6686dc4c93ebcc2b7fa469dae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775fc14e88511adfd1bc7314c7a87771104994a6686dc4c93ebcc2b7fa469dae", kill_on_drop: false }` [INFO] [stdout] 775fc14e88511adfd1bc7314c7a87771104994a6686dc4c93ebcc2b7fa469dae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] baeccfd58a015f521020469fe84b7fc2a709dd41ce2c134ccb7dd4b706f372ef [INFO] running `Command { std: "docker" "start" "-a" "baeccfd58a015f521020469fe84b7fc2a709dd41ce2c134ccb7dd4b706f372ef", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking once_cell v1.21.2 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking sdd v3.0.8 [INFO] [stderr] Compiling ipconfig v0.3.2 [INFO] [stderr] Compiling windows_firewall v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking lock_api v0.4.12 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking scc v2.3.3 [INFO] [stderr] warning: windows_firewall@0.5.0: This library is designed for Windows only. [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling typed-builder-macro v0.23.2 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Checking serial_test v3.2.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking thiserror v2.0.16 [INFO] [stderr] Checking typed-builder v0.23.2 [INFO] [stdout] error[E0432]: unresolved imports `windows_firewall::ActionFirewallWindows`, `windows_firewall::DirectionFirewallWindows`, `windows_firewall::InterfaceTypes`, `windows_firewall::InterfaceTypes`, `windows_firewall::ProfileFirewallWindows`, `windows_firewall::ProtocolFirewallWindows` [INFO] [stdout] --> tests/tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ActionFirewallWindows, DirectionFirewallWindows, InterfaceTypes::Lan, InterfaceTypes::Wireless, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ could not find `InterfaceTypes` in `windows_firewall` [INFO] [stdout] | | | | [INFO] [stdout] | | | could not find `InterfaceTypes` in `windows_firewall` [INFO] [stdout] | | no `DirectionFirewallWindows` in the root [INFO] [stdout] | no `ActionFirewallWindows` in the root [INFO] [stdout] 10 | ProfileFirewallWindows, ProtocolFirewallWindows, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `ProtocolFirewallWindows` in the root [INFO] [stdout] | | [INFO] [stdout] | no `ProfileFirewallWindows` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_firewall::WindowsFirewallRule`, `windows_firewall::WindowsFirewallRuleSettings` [INFO] [stdout] --> tests/tests.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_firewall::{WindowsFirewallRule, WindowsFirewallRuleSettings}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `WindowsFirewallRuleSettings` in the root [INFO] [stdout] | | [INFO] [stdout] | no `WindowsFirewallRule` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> tests/tests.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::Win32::NetworkManagement::WindowsFirewall::INetFwRule; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> tests/tests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::System::Com::{COINIT_APARTMENTTHREADED, CoInitializeEx, CoUninitialize}; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_firewall::add_rule`, `windows_firewall::add_rule_if_not_exists`, `windows_firewall::get_active_profile`, `windows_firewall::get_firewall_state`, `windows_firewall::get_rule`, `windows_firewall::list_incoming_rules`, `windows_firewall::list_outgoing_rules`, `windows_firewall::list_rules`, `windows_firewall::remove_rule`, `windows_firewall::rule_exists`, `windows_firewall::set_firewall_state`, `windows_firewall::update_rule` [INFO] [stdout] --> tests/tests.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | add_rule, add_rule_if_not_exists, get_active_profile, get_firewall_state, get_rule, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ no `get_rule` in the root [INFO] [stdout] | | | | | [INFO] [stdout] | | | | no `get_firewall_state` in the root [INFO] [stdout] | | | no `get_active_profile` in the root [INFO] [stdout] | | no `add_rule_if_not_exists` in the root [INFO] [stdout] | no `add_rule` in the root [INFO] [stdout] 15 | list_incoming_rules, list_outgoing_rules, list_rules, remove_rule, rule_exists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ no `rule_exists` in the root [INFO] [stdout] | | | | | [INFO] [stdout] | | | | no `remove_rule` in the root [INFO] [stdout] | | | no `list_rules` in the root [INFO] [stdout] | | no `list_outgoing_rules` in the root [INFO] [stdout] | no `list_incoming_rules` in the root [INFO] [stdout] 16 | set_firewall_state, update_rule, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_firewall::ActionFirewallWindows`, `windows_firewall::DirectionFirewallWindows`, `windows_firewall::ProtocolFirewallWindows`, `windows_firewall::WindowsFirewallRule`, `windows_firewall::remove_rule`, `windows_firewall::rule_exists` [INFO] [stdout] --> tests/tests.rs:945:9 [INFO] [stdout] | [INFO] [stdout] 945 | ActionFirewallWindows, DirectionFirewallWindows, ProtocolFirewallWindows, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `ProtocolFirewallWindows` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `DirectionFirewallWindows` in the root [INFO] [stdout] | no `ActionFirewallWindows` in the root [INFO] [stdout] 946 | WindowsFirewallRule, remove_rule, rule_exists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ no `rule_exists` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `remove_rule` in the root [INFO] [stdout] | no `WindowsFirewallRule` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::ActionFirewallWindows [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::DirectionFirewallWindows [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::ProtocolFirewallWindows [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::WindowsFirewallRule [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::remove_rule [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] crate::rule_exists [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ipconfig::get_adapters` [INFO] [stdout] --> tests/tests.rs:1042:9 [INFO] [stdout] | [INFO] [stdout] 1042 | use ipconfig::get_adapters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `get_adapters` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ipconfig::get_adapters` [INFO] [stdout] --> tests/tests.rs:1079:9 [INFO] [stdout] | [INFO] [stdout] 1079 | use ipconfig::get_adapters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `get_adapters` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Private` in this scope [INFO] [stdout] --> tests/tests.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Domain` in this scope [INFO] [stdout] --> tests/tests.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^ similarly named function `main` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 46 - let profiles = [Private, Domain, Public]; [INFO] [stdout] 46 + let profiles = [Private, main, Public]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Public` in this scope [INFO] [stdout] --> tests/tests.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Private` in this scope [INFO] [stdout] --> tests/tests.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Domain` in this scope [INFO] [stdout] --> tests/tests.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^ similarly named function `main` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 60 - let profiles = [Private, Domain, Public]; [INFO] [stdout] 60 + let profiles = [Private, main, Public]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Public` in this scope [INFO] [stdout] --> tests/tests.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | let profiles = [Private, Domain, Public]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tests.rs:101:35 [INFO] [stdout] | [INFO] [stdout] 101 | let found = rules.iter().any(|r| r.name() == RULE_NAME); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 101 | let found = rules.iter().any(|r: /* Type */| r.name() == RULE_NAME); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tests.rs:1047:30 [INFO] [stdout] | [INFO] [stdout] 1047 | let interface_name = adapter.friendly_name(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tests.rs:1084:30 [INFO] [stdout] | [INFO] [stdout] 1084 | let interface_name = adapter.friendly_name(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] warning: windows_firewall@0.5.0: This library is designed for Windows only. [INFO] [stderr] error: could not compile `windows_firewall` (test "tests") due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "baeccfd58a015f521020469fe84b7fc2a709dd41ce2c134ccb7dd4b706f372ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baeccfd58a015f521020469fe84b7fc2a709dd41ce2c134ccb7dd4b706f372ef", kill_on_drop: false }` [INFO] [stdout] baeccfd58a015f521020469fe84b7fc2a709dd41ce2c134ccb7dd4b706f372ef