[INFO] fetching crate wireguard-nt 0.2.2... [INFO] testing wireguard-nt-0.2.2 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate wireguard-nt 0.2.2 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate wireguard-nt 0.2.2 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wireguard-nt 0.2.2 [INFO] finished tweaking crates.io crate wireguard-nt 0.2.2 [INFO] tweaked toml for crates.io crate wireguard-nt 0.2.2 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate wireguard-nt 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ce338c6843c815188a366c2adf16cd73e316cbba0a1f8c0987f5c6c6bb45b14 [INFO] running `Command { std: "docker" "start" "-a" "1ce338c6843c815188a366c2adf16cd73e316cbba0a1f8c0987f5c6c6bb45b14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ce338c6843c815188a366c2adf16cd73e316cbba0a1f8c0987f5c6c6bb45b14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ce338c6843c815188a366c2adf16cd73e316cbba0a1f8c0987f5c6c6bb45b14", kill_on_drop: false }` [INFO] [stdout] 1ce338c6843c815188a366c2adf16cd73e316cbba0a1f8c0987f5c6c6bb45b14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f1de165de8f106abdec2ff919dc866f62f06af4c4b828deb41a493b75bf25d1 [INFO] running `Command { std: "docker" "start" "-a" "0f1de165de8f106abdec2ff919dc866f62f06af4c4b828deb41a493b75bf25d1", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling widestring v0.4.3 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling wireguard-nt v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:346:25 [INFO] [stdout] | [INFO] [stdout] 346 | use winapi::shared::netioapi::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | use winapi::shared::nldef::IpDadStatePreferred; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:351:25 [INFO] [stdout] | [INFO] [stdout] 351 | use winapi::shared::netioapi::{CreateIpForwardEntry2, CreateUnicastIpAddressEntry}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:352:25 [INFO] [stdout] | [INFO] [stdout] 352 | use winapi::shared::winerror::{ERROR_OBJECT_ALREADY_EXISTS, ERROR_SUCCESS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:353:25 [INFO] [stdout] | [INFO] [stdout] 353 | use winapi::shared::ws2def::{AF_INET, AF_INET6}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | use winapi::shared::netioapi::{InitializeIpForwardEntry, MIB_IPFORWARD_ROW2}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:406:25 [INFO] [stdout] | [INFO] [stdout] 406 | use winapi::shared::netioapi::{InitializeIpInterfaceEntry, MIB_IPINTERFACE_ROW}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:412:25 [INFO] [stdout] | [INFO] [stdout] 412 | use winapi::shared::netioapi::{GetIpInterfaceEntry, SetIpInterfaceEntry}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:284:64 [INFO] [stdout] | [INFO] [stdout] 284 | wg_peer.Endpoint.Ipv4.sin_family = winapi::shared::ws2def::AF_INET as u16; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:291:65 [INFO] [stdout] | [INFO] [stdout] 291 | wg_peer.Endpoint.Ipv6.sin6_family = winapi::shared::ws2def::AF_INET6 as u16; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:307:63 [INFO] [stdout] | [INFO] [stdout] 307 | wg_allowed_ip.AddressFamily = winapi::shared::ws2def::AF_INET as u16; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/adapter.rs:313:63 [INFO] [stdout] | [INFO] [stdout] 313 | wg_allowed_ip.AddressFamily = winapi::shared::ws2def::AF_INET6 as u16; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MIB_IPFORWARD_ROW2` in this scope [INFO] [stdout] --> src/adapter.rs:358:40 [INFO] [stdout] | [INFO] [stdout] 358 | let mut default_route: MIB_IPFORWARD_ROW2 = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `InitializeIpForwardEntry` in this scope [INFO] [stdout] --> src/adapter.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | InitializeIpForwardEntry(&mut default_route); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/adapter.rs:363:83 [INFO] [stdout] | [INFO] [stdout] 363 | *default_route.DestinationPrefix.Prefix.si_family_mut() = AF_INET as u16; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/adapter.rs:372:66 [INFO] [stdout] | [INFO] [stdout] 372 | *default_route.NextHop.si_family_mut() = AF_INET as u16; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in this scope [INFO] [stdout] --> src/adapter.rs:375:83 [INFO] [stdout] | [INFO] [stdout] 375 | *default_route.DestinationPrefix.Prefix.si_family_mut() = AF_INET6 as u16; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in this scope [INFO] [stdout] --> src/adapter.rs:381:66 [INFO] [stdout] | [INFO] [stdout] 381 | *default_route.NextHop.si_family_mut() = AF_INET6 as u16; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateIpForwardEntry2` in this scope [INFO] [stdout] --> src/adapter.rs:386:27 [INFO] [stdout] | [INFO] [stdout] 386 | let err = CreateIpForwardEntry2(&default_route); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/adapter.rs:387:27 [INFO] [stdout] | [INFO] [stdout] 387 | if err != ERROR_SUCCESS && err != ERROR_OBJECT_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_OBJECT_ALREADY_EXISTS` in this scope [INFO] [stdout] --> src/adapter.rs:387:51 [INFO] [stdout] | [INFO] [stdout] 387 | if err != ERROR_SUCCESS && err != ERROR_OBJECT_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MIB_UNICASTIPADDRESS_ROW` in this scope [INFO] [stdout] --> src/adapter.rs:392:34 [INFO] [stdout] | [INFO] [stdout] 392 | let mut address_row: MIB_UNICASTIPADDRESS_ROW = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `InitializeUnicastIpAddressEntry` in this scope [INFO] [stdout] --> src/adapter.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | InitializeUnicastIpAddressEntry(&mut address_row); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/adapter.rs:394:57 [INFO] [stdout] | [INFO] [stdout] 394 | address_row.Address.Ipv4_mut().sin_family = AF_INET as u16; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IpDadStatePreferred` in this scope [INFO] [stdout] --> src/adapter.rs:397:36 [INFO] [stdout] | [INFO] [stdout] 397 | address_row.DadState = IpDadStatePreferred; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateUnicastIpAddressEntry` in this scope [INFO] [stdout] --> src/adapter.rs:401:23 [INFO] [stdout] | [INFO] [stdout] 401 | let err = CreateUnicastIpAddressEntry(&address_row); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/adapter.rs:402:23 [INFO] [stdout] | [INFO] [stdout] 402 | if err != ERROR_SUCCESS && err != ERROR_OBJECT_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_OBJECT_ALREADY_EXISTS` in this scope [INFO] [stdout] --> src/adapter.rs:402:47 [INFO] [stdout] | [INFO] [stdout] 402 | if err != ERROR_SUCCESS && err != ERROR_OBJECT_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MIB_IPINTERFACE_ROW` in this scope [INFO] [stdout] --> src/adapter.rs:407:35 [INFO] [stdout] | [INFO] [stdout] 407 | let mut ip_interface: MIB_IPINTERFACE_ROW = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `InitializeIpInterfaceEntry` in this scope [INFO] [stdout] --> src/adapter.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | InitializeIpInterfaceEntry(&mut ip_interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/adapter.rs:410:35 [INFO] [stdout] | [INFO] [stdout] 410 | ip_interface.Family = AF_INET as u16; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetIpInterfaceEntry` in this scope [INFO] [stdout] --> src/adapter.rs:413:23 [INFO] [stdout] | [INFO] [stdout] 413 | let err = GetIpInterfaceEntry(&mut ip_interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/adapter.rs:414:23 [INFO] [stdout] | [INFO] [stdout] 414 | if err != ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetIpInterfaceEntry` in this scope [INFO] [stdout] --> src/adapter.rs:421:23 [INFO] [stdout] | [INFO] [stdout] 421 | let err = SetIpInterfaceEntry(&mut ip_interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/adapter.rs:422:23 [INFO] [stdout] | [INFO] [stdout] 422 | if err != ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapter.rs:254:32 [INFO] [stdout] | [INFO] [stdout] 254 | interface.PeersCount = config.peers.len() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapter.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | wg_peer.AllowedIPsCount = peer.allowed_ips.len() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/adapter.rs:327:17 [INFO] [stdout] | [INFO] [stdout] 327 | size as u32, [INFO] [stdout] | ^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u64` [INFO] [stdout] | [INFO] [stdout] 327 | (size as u32).into(), [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_running_driver_version(wireguard: &Arc) -> u32 { [INFO] [stdout] | --- expected `u32` because of return type [INFO] [stdout] 18 | unsafe { wireguard.WireGuardGetRunningDriverVersion() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 18 | unsafe { wireguard.WireGuardGetRunningDriverVersion().try_into().unwrap() } [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wireguard-nt` due to 40 previous errors [INFO] running `Command { std: "docker" "inspect" "0f1de165de8f106abdec2ff919dc866f62f06af4c4b828deb41a493b75bf25d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f1de165de8f106abdec2ff919dc866f62f06af4c4b828deb41a493b75bf25d1", kill_on_drop: false }` [INFO] [stdout] 0f1de165de8f106abdec2ff919dc866f62f06af4c4b828deb41a493b75bf25d1