[INFO] fetching crate pf-rs 0.2.4... [INFO] building pf-rs-0.2.4 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate pf-rs 0.2.4 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate pf-rs 0.2.4 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate pf-rs 0.2.4 [INFO] finished tweaking crates.io crate pf-rs 0.2.4 [INFO] tweaked toml for crates.io crate pf-rs 0.2.4 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding nix v0.27.1 (available: v0.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4018a3eba38f5082c1e7f14e8913268077ed6754f00f7758141ed17ceb178a5 [INFO] running `Command { std: "docker" "start" "-a" "c4018a3eba38f5082c1e7f14e8913268077ed6754f00f7758141ed17ceb178a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4018a3eba38f5082c1e7f14e8913268077ed6754f00f7758141ed17ceb178a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4018a3eba38f5082c1e7f14e8913268077ed6754f00f7758141ed17ceb178a5", kill_on_drop: false }` [INFO] [stdout] c4018a3eba38f5082c1e7f14e8913268077ed6754f00f7758141ed17ceb178a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19c5bed088dcc249b60160b43d39767e96325a9ae053b52454b7386306cddcb7 [INFO] running `Command { std: "docker" "start" "-a" "19c5bed088dcc249b60160b43d39767e96325a9ae053b52454b7386306cddcb7", kill_on_drop: false }` [INFO] [stderr] Compiling pf-rs v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> build.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process::Command, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 110 | | { [INFO] [stdout] 111 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 265 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 181 | | { [INFO] [stdout] 182 | | let resp1 = *p_resp1; [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 291 | | { [INFO] [stdout] 292 | | b += 1; //C b++; [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 373 | | { [INFO] [stdout] 374 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 375 | | } [INFO] [stdout] 376 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 387 | | { [INFO] [stdout] 388 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:618:13 [INFO] [stdout] | [INFO] [stdout] 618 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 619 | | { [INFO] [stdout] 620 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 687 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pfr_addr.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pfr_addr.rs:708:17 [INFO] [stdout] | [INFO] [stdout] 708 | let mut mask: libc::c_int = -1; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bits` is never read [INFO] [stdout] --> src/pfr_addr.rs:840:17 [INFO] [stdout] | [INFO] [stdout] 840 | let mut bits: libc::c_int = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pfr_addr.rs:838:12 [INFO] [stdout] | [INFO] [stdout] 838 | fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "19c5bed088dcc249b60160b43d39767e96325a9ae053b52454b7386306cddcb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19c5bed088dcc249b60160b43d39767e96325a9ae053b52454b7386306cddcb7", kill_on_drop: false }` [INFO] [stdout] 19c5bed088dcc249b60160b43d39767e96325a9ae053b52454b7386306cddcb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48ac14646b5fe46ba0eba8c0574290149230572928cdc9f6fbf74705269455d8 [INFO] running `Command { std: "docker" "start" "-a" "48ac14646b5fe46ba0eba8c0574290149230572928cdc9f6fbf74705269455d8", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> build.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process::Command, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 110 | | { [INFO] [stdout] 111 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 265 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 181 | | { [INFO] [stdout] 182 | | let resp1 = *p_resp1; [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 291 | | { [INFO] [stdout] 292 | | b += 1; //C b++; [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 373 | | { [INFO] [stdout] 374 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 375 | | } [INFO] [stdout] 376 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 387 | | { [INFO] [stdout] 388 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:618:13 [INFO] [stdout] | [INFO] [stdout] 618 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 619 | | { [INFO] [stdout] 620 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 687 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pf-rs v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pfr_addr.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pfr_addr.rs:708:17 [INFO] [stdout] | [INFO] [stdout] 708 | let mut mask: libc::c_int = -1; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bits` is never read [INFO] [stdout] --> src/pfr_addr.rs:840:17 [INFO] [stdout] | [INFO] [stdout] 840 | let mut bits: libc::c_int = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pfr_addr.rs:838:12 [INFO] [stdout] | [INFO] [stdout] 838 | fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [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: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 110 | | { [INFO] [stdout] 111 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 265 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/ioctl.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 181 | | { [INFO] [stdout] 182 | | let resp1 = *p_resp1; [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 291 | | { [INFO] [stdout] 292 | | b += 1; //C b++; [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 373 | | { [INFO] [stdout] 374 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 375 | | } [INFO] [stdout] 376 | | ); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 387 | | { [INFO] [stdout] 388 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pfr_addr.rs:618:13 [INFO] [stdout] | [INFO] [stdout] 618 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 619 | | { [INFO] [stdout] 620 | | let resp = *p_resp; [INFO] [stdout] ... | [INFO] [stdout] 687 | | ); [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/pf.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | unsafe { pf.pfctl_kill_state("192.168.2.104", None).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/pf.rs:395:9 [INFO] [stdout] | [INFO] [stdout] 395 | unsafe { pf.pfctl_kill_state("192.168.2.1", None).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pfr_addr.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pfr_addr.rs:708:17 [INFO] [stdout] | [INFO] [stdout] 708 | let mut mask: libc::c_int = -1; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bits` is never read [INFO] [stdout] --> src/pfr_addr.rs:840:17 [INFO] [stdout] | [INFO] [stdout] 840 | let mut bits: libc::c_int = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pfr_addr.rs:838:12 [INFO] [stdout] | [INFO] [stdout] 838 | fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "48ac14646b5fe46ba0eba8c0574290149230572928cdc9f6fbf74705269455d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48ac14646b5fe46ba0eba8c0574290149230572928cdc9f6fbf74705269455d8", kill_on_drop: false }` [INFO] [stdout] 48ac14646b5fe46ba0eba8c0574290149230572928cdc9f6fbf74705269455d8