[INFO] cloning repository https://github.com/zdpk/network-rs-libc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zdpk/network-rs-libc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdpk%2Fnetwork-rs-libc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdpk%2Fnetwork-rs-libc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac6b6d782dcbe2edba1e15f8afc7210e4a460886 [INFO] checking zdpk/network-rs-libc against master#8365fcb2b840c95eeb0bc377af8bd498fad22245 for pr-145605 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdpk%2Fnetwork-rs-libc" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zdpk/network-rs-libc [INFO] finished tweaking git repo https://github.com/zdpk/network-rs-libc [INFO] tweaked toml for git repo https://github.com/zdpk/network-rs-libc written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zdpk/network-rs-libc on toolchain 8365fcb2b840c95eeb0bc377af8bd498fad22245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zdpk/network-rs-libc 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" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "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 default-net v0.22.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 206f84ff0884fa3fba2881a153343bb30af9af123d74126ba338ab38964d74b3 [INFO] running `Command { std: "docker" "start" "-a" "206f84ff0884fa3fba2881a153343bb30af9af123d74126ba338ab38964d74b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "206f84ff0884fa3fba2881a153343bb30af9af123d74126ba338ab38964d74b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "206f84ff0884fa3fba2881a153343bb30af9af123d74126ba338ab38964d74b3", kill_on_drop: false }` [INFO] [stdout] 206f84ff0884fa3fba2881a153343bb30af9af123d74126ba338ab38964d74b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c79cdb690aaa66ea53e344cdf59fed4f3631ebd5946a192ed5291a7bff1d2003 [INFO] running `Command { std: "docker" "start" "-a" "c79cdb690aaa66ea53e344cdf59fed4f3631ebd5946a192ed5291a7bff1d2003", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking default-net v0.22.0 [INFO] [stderr] Checking network-ex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ICMP_PAYLOAD_LEN` and `checksum::calc_checksum` [INFO] [stdout] --> src/l3/icmp.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | checksum::calc_checksum, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | constant::{ICMP_ECHO_REPLY, ICMP_ECHO_REQUEST, ICMP_PATTERN_LEN, ICMP_PAYLOAD_LEN}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::checksum` [INFO] [stdout] --> src/l3/ip.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::checksum; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/l3/ping.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `addr::fmt_ip` [INFO] [stdout] --> src/l3/ping.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | util::{addr::fmt_ip, socket_guard::SocketGuard}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ICMP_PAYLOAD_LEN` and `checksum::calc_checksum` [INFO] [stdout] --> src/l3/icmp.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | checksum::calc_checksum, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | constant::{ICMP_ECHO_REPLY, ICMP_ECHO_REQUEST, ICMP_PATTERN_LEN, ICMP_PAYLOAD_LEN}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::checksum` [INFO] [stdout] --> src/l3/ip.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::checksum; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/l3/ping.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `addr::fmt_ip` [INFO] [stdout] --> src/l3/ping.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | util::{addr::fmt_ip, socket_guard::SocketGuard}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nic/interface.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 105 | std::ptr::copy_nonoverlapping( [INFO] [stdout] | ----------------------------- arguments to this function are incorrect [INFO] [stdout] 106 | ifr.ifr_ifru.ifru_hwaddr.sa_data.as_ptr(), [INFO] [stdout] 107 | mac_addr.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `*mut i8`, found `*mut u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut i8` [INFO] [stdout] found raw pointer `*mut u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/ptr/mod.rs:526:21 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nic/interface.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 117 | std::ptr::copy_nonoverlapping( [INFO] [stdout] | ----------------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 120 | ip_addr.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `*mut i8`, found `*mut u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut i8` [INFO] [stdout] found raw pointer `*mut u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/ptr/mod.rs:526:21 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_index` [INFO] [stdout] --> src/l2/arping.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | if_index: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/l3/ping.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut buf_len = buf.len(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nic/interface.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 105 | std::ptr::copy_nonoverlapping( [INFO] [stdout] | ----------------------------- arguments to this function are incorrect [INFO] [stdout] 106 | ifr.ifr_ifru.ifru_hwaddr.sa_data.as_ptr(), [INFO] [stdout] 107 | mac_addr.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `*mut i8`, found `*mut u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut i8` [INFO] [stdout] found raw pointer `*mut u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/ptr/mod.rs:526:21 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nic/interface.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 117 | std::ptr::copy_nonoverlapping( [INFO] [stdout] | ----------------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 120 | ip_addr.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `*mut i8`, found `*mut u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut i8` [INFO] [stdout] found raw pointer `*mut u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/ptr/mod.rs:526:21 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_index` [INFO] [stdout] --> src/l2/arping.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | if_index: i32, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `network-ex` (lib) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/l3/ping.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut buf_len = buf.len(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_info` [INFO] [stdout] --> src/nic/interface.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let if_info = get_interface_by_name("eth0"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `network-ex` (lib test) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c79cdb690aaa66ea53e344cdf59fed4f3631ebd5946a192ed5291a7bff1d2003", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c79cdb690aaa66ea53e344cdf59fed4f3631ebd5946a192ed5291a7bff1d2003", kill_on_drop: false }` [INFO] [stdout] c79cdb690aaa66ea53e344cdf59fed4f3631ebd5946a192ed5291a7bff1d2003