[INFO] fetching crate pf-rs 13.0.2... [INFO] testing pf-rs-13.0.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate pf-rs 13.0.2 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate pf-rs 13.0.2 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 pf-rs 13.0.2 [INFO] finished tweaking crates.io crate pf-rs 13.0.2 [INFO] tweaked toml for crates.io crate pf-rs 13.0.2 written to /workspace/builds/worker-6/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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 68279a4776a59318b0982889c583cd2bb71e735a60a6335f3d72b94c6b45315e [INFO] running `Command { std: "docker" "start" "-a" "68279a4776a59318b0982889c583cd2bb71e735a60a6335f3d72b94c6b45315e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68279a4776a59318b0982889c583cd2bb71e735a60a6335f3d72b94c6b45315e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68279a4776a59318b0982889c583cd2bb71e735a60a6335f3d72b94c6b45315e", kill_on_drop: false }` [INFO] [stdout] 68279a4776a59318b0982889c583cd2bb71e735a60a6335f3d72b94c6b45315e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ae6aefb39c80b5d64d73fb11e2d0c0f2b9812261b6f603e2d2408649193b043a [INFO] running `Command { std: "docker" "start" "-a" "ae6aefb39c80b5d64d73fb11e2d0c0f2b9812261b6f603e2d2408649193b043a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling pf-rs v13.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 324 | | { [INFO] [stdout] 325 | | b += 1; //C b++; [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 404 | | { [INFO] [stdout] 405 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 406 | | } [INFO] [stdout] 407 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 418 | | { [INFO] [stdout] 419 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 420 | | } [INFO] [stdout] 421 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 634 | | { [INFO] [stdout] 635 | | let resp = *p_resp; [INFO] [stdout] 636 | | [INFO] [stdout] ... | [INFO] [stdout] 701 | | } [INFO] [stdout] 702 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:941:9 [INFO] [stdout] | [INFO] [stdout] 941 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 942 | | { [INFO] [stdout] 943 | | let resp = *p_resp; [INFO] [stdout] 944 | | [INFO] [stdout] ... | [INFO] [stdout] 1096 | | } [INFO] [stdout] 1097 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:1012:21 [INFO] [stdout] | [INFO] [stdout] 1012 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 1013 | | { [INFO] [stdout] 1014 | | let resp1 = *p_resp1; [INFO] [stdout] 1015 | | [INFO] [stdout] ... | [INFO] [stdout] 1072 | | } [INFO] [stdout] 1073 | | ); [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: unused import: `nix::NixPath` [INFO] [stdout] --> src/pf.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use nix::NixPath; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pf.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pf.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `af` [INFO] [stdout] --> src/pf.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_af` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pf.rs:470:21 [INFO] [stdout] | [INFO] [stdout] 470 | Err(e) => return Ok(None), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ps` [INFO] [stdout] --> src/pf.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let ps = [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pf.rs:722:17 [INFO] [stdout] | [INFO] [stdout] 722 | 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/pf.rs:821:17 [INFO] [stdout] | [INFO] [stdout] 821 | 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 `sources` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:936:17 [INFO] [stdout] | [INFO] [stdout] 936 | let mut sources: libc::c_int = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sources` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `killed` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:937:17 [INFO] [stdout] | [INFO] [stdout] 937 | let mut killed: u32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_killed` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dests` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:938:17 [INFO] [stdout] | [INFO] [stdout] 938 | let mut dests: libc::c_int = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_dests` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1387:13 [INFO] [stdout] | [INFO] [stdout] 1387 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1401:13 [INFO] [stdout] | [INFO] [stdout] 1401 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pf_tokenizer.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | Some(c) => [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [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: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:481:21 [INFO] [stdout] | [INFO] [stdout] 481 | let mut addr_wrap: pf_addr_wrap = pf_addr_wrap::set_ipmask(PfAddr::PF_ADDR_ADDRMASK, maskv4, addr); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:819:19 [INFO] [stdout] | [INFO] [stdout] 819 | unsafe 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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:841:13 [INFO] [stdout] | [INFO] [stdout] 841 | let mut addr = [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IF_NAMESIZE` [INFO] [stdout] --> src/pf.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const IF_NAMESIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AI_NUMERICHOST` [INFO] [stdout] --> src/pf.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | const AI_NUMERICHOST: libc::c_int = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TABLES` [INFO] [stdout] --> src/pf.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | PFRB_TABLES = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TSTATS` [INFO] [stdout] --> src/pf.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | PFRB_TSTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_ADDRS` [INFO] [stdout] --> src/pf.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | PFRB_ADDRS, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_ASTATS` [INFO] [stdout] --> src/pf.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | PFRB_ASTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_IFACES` [INFO] [stdout] --> src/pf.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | PFRB_IFACES, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TRANS` [INFO] [stdout] --> src/pf.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | PFRB_TRANS, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_MAX` [INFO] [stdout] --> src/pf.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | PFRB_MAX [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_ADDRMASK` [INFO] [stdout] --> src/pf.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | PF_ADDR_ADDRMASK = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_NOROUTE` [INFO] [stdout] --> src/pf.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | PF_ADDR_NOROUTE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_DYNIFTL` [INFO] [stdout] --> src/pf.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | PF_ADDR_DYNIFTL, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_TABLE` [INFO] [stdout] --> src/pf.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | PF_ADDR_TABLE, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_URPFFAILED` [INFO] [stdout] --> src/pf.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | PF_ADDR_URPFFAILED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_RANGE` [INFO] [stdout] --> src/pf.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | PF_ADDR_RANGE [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_empty` [INFO] [stdout] --> src/pf.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn new_empty() -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_addrprefix` [INFO] [stdout] --> src/pf.rs:184:15 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe fn pfctl_addrprefix<'addr>(&mut self, addr: &'addr str) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unmask` [INFO] [stdout] --> src/pf.rs:307:15 [INFO] [stdout] | [INFO] [stdout] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_zeroed` [INFO] [stdout] --> src/pf.rs:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe fn new_zeroed() -> Self [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_ipmask` [INFO] [stdout] --> src/pf.rs:389:15 [INFO] [stdout] | [INFO] [stdout] 389 | unsafe fn set_ipmask(pf_addr_type: PfAddr, bits: libc::c_int, mut addr: pf_addr) -> Self [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `node_host` [INFO] [stdout] --> src/pf.rs:448:8 [INFO] [stdout] | [INFO] [stdout] 448 | struct node_host [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host_v4v6` [INFO] [stdout] --> src/pf.rs:464:15 [INFO] [stdout] | [INFO] [stdout] 464 | unsafe fn host_v4v6<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host_dns` [INFO] [stdout] --> src/pf.rs:572:15 [INFO] [stdout] | [INFO] [stdout] 572 | unsafe fn host_dns<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host` [INFO] [stdout] --> src/pf.rs:718:15 [INFO] [stdout] | [INFO] [stdout] 718 | unsafe fn host<'pfcmd>(s: &'pfcmd str) -> PfResult> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:819:15 [INFO] [stdout] | [INFO] [stdout] 819 | unsafe fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:902:15 [INFO] [stdout] | [INFO] [stdout] 902 | unsafe fn new>(fd: libc::c_int, is_test: bool, src: H, dest: Option) -> PfResult<()> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_add_tables` [INFO] [stdout] --> src/pf.rs:1126:15 [INFO] [stdout] | [INFO] [stdout] 1126 | unsafe fn new_add_tables(tbl: pfr_table, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_addrs` [INFO] [stdout] --> src/pf.rs:1138:15 [INFO] [stdout] | [INFO] [stdout] 1138 | unsafe fn new_addrs(tbl: pfr_table, addr: *mut libc::c_void, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IoCtl` [INFO] [stdout] --> src/pf.rs:1152:8 [INFO] [stdout] | [INFO] [stdout] 1152 | struct IoCtl{} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_VOID` [INFO] [stdout] --> src/pf.rs:1156:5 [INFO] [stdout] | [INFO] [stdout] 1156 | const IOC_VOID: libc::c_ulong = 0x20000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_OUT` [INFO] [stdout] --> src/pf.rs:1158:5 [INFO] [stdout] | [INFO] [stdout] 1158 | const IOC_OUT: libc::c_ulong = 0x40000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_IN` [INFO] [stdout] --> src/pf.rs:1160:5 [INFO] [stdout] | [INFO] [stdout] 1160 | const IOC_IN: libc::c_ulong = 0x80000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_INOUT` [INFO] [stdout] --> src/pf.rs:1162:5 [INFO] [stdout] | [INFO] [stdout] 1162 | const IOC_INOUT: libc::c_ulong = (Self::IOC_IN|Self::IOC_OUT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_DIRMASK` [INFO] [stdout] --> src/pf.rs:1164:5 [INFO] [stdout] | [INFO] [stdout] 1164 | const IOC_DIRMASK: libc::c_ulong = (Self::IOC_VOID|Self::IOC_OUT|Self::IOC_IN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOCPARM_SHIFT` [INFO] [stdout] --> src/pf.rs:1167:5 [INFO] [stdout] | [INFO] [stdout] 1167 | const IOCPARM_SHIFT: libc::c_ulong = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOCPARM_MASK` [INFO] [stdout] --> src/pf.rs:1169:5 [INFO] [stdout] | [INFO] [stdout] 1169 | const IOCPARM_MASK: libc::c_ulong = ((1 << Self::IOCPARM_SHIFT) - 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCPARM_LEN` [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCBASECMD` [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCGROUP` [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iowr` [INFO] [stdout] --> src/pf.rs:1187:14 [INFO] [stdout] | [INFO] [stdout] 1187 | const fn iowr(group: char, num: libc::c_ulong, len: usize) -> libc::c_ulong [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRADDTABLES` [INFO] [stdout] --> src/pf.rs:1192:5 [INFO] [stdout] | [INFO] [stdout] 1192 | const DIOCRADDTABLES: libc::c_ulong = Self::iowr('D', 61, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRADDADDRS` [INFO] [stdout] --> src/pf.rs:1193:5 [INFO] [stdout] | [INFO] [stdout] 1193 | const DIOCRADDADDRS: libc::c_ulong = Self::iowr('D', 67, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRDELADDRS` [INFO] [stdout] --> src/pf.rs:1194:5 [INFO] [stdout] | [INFO] [stdout] 1194 | const DIOCRDELADDRS: libc::c_ulong = Self::iowr('D', 68, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRTSTADDRS` [INFO] [stdout] --> src/pf.rs:1195:5 [INFO] [stdout] | [INFO] [stdout] 1195 | const DIOCRTSTADDRS: libc::c_ulong = Self::iowr('D', 73, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCKILLSTATES` [INFO] [stdout] --> src/pf.rs:1196:5 [INFO] [stdout] | [INFO] [stdout] 1196 | const DIOCKILLSTATES: libc::c_ulong = Self::iowr('D', 41, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_PERSIST` [INFO] [stdout] --> src/pf.rs:1211:5 [INFO] [stdout] | [INFO] [stdout] 1211 | const PFR_TFLAG_PERSIST: libc::c_uint = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_CONST` [INFO] [stdout] --> src/pf.rs:1212:5 [INFO] [stdout] | [INFO] [stdout] 1212 | const PFR_TFLAG_CONST: libc::c_uint = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_ACTIVE` [INFO] [stdout] --> src/pf.rs:1213:5 [INFO] [stdout] | [INFO] [stdout] 1213 | const PFR_TFLAG_ACTIVE: libc::c_uint = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_INACTIVE` [INFO] [stdout] --> src/pf.rs:1214:5 [INFO] [stdout] | [INFO] [stdout] 1214 | const PFR_TFLAG_INACTIVE: libc::c_uint = 0x00000008; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFERENCED` [INFO] [stdout] --> src/pf.rs:1215:5 [INFO] [stdout] | [INFO] [stdout] 1215 | const PFR_TFLAG_REFERENCED: libc::c_uint = 0x00000010; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFDANCHOR` [INFO] [stdout] --> src/pf.rs:1216:5 [INFO] [stdout] | [INFO] [stdout] 1216 | const PFR_TFLAG_REFDANCHOR: libc::c_uint = 0x00000020; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_COUNTERS` [INFO] [stdout] --> src/pf.rs:1217:5 [INFO] [stdout] | [INFO] [stdout] 1217 | const PFR_TFLAG_COUNTERS: libc::c_uint = 0x00000040; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:1219:15 [INFO] [stdout] | [INFO] [stdout] 1219 | unsafe fn new(pfrt_name: &str) -> PfResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_add_tables` [INFO] [stdout] --> src/pf.rs:1243:15 [INFO] [stdout] | [INFO] [stdout] 1243 | unsafe fn pfr_add_tables(&mut self, fd: libc::c_int, size: libc::c_int, nadd: &mut libc::c_int, flags: libc::c_int, test: bool) -> Pf... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_add_addrs` [INFO] [stdout] --> src/pf.rs:1270:15 [INFO] [stdout] | [INFO] [stdout] 1270 | unsafe fn pfr_add_addrs( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_del_addrs` [INFO] [stdout] --> src/pf.rs:1310:15 [INFO] [stdout] | [INFO] [stdout] 1310 | unsafe fn pfr_del_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, ndel: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_tst_addrs` [INFO] [stdout] --> src/pf.rs:1336:15 [INFO] [stdout] | [INFO] [stdout] 1336 | unsafe fn pfr_tst_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, nmatch: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_table` [INFO] [stdout] --> src/pf.rs:1362:15 [INFO] [stdout] | [INFO] [stdout] 1362 | unsafe fn create_table(&mut self, fd: libc::c_int, test: bool) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_addrs` [INFO] [stdout] --> src/pf.rs:1382:15 [INFO] [stdout] | [INFO] [stdout] 1382 | unsafe fn add_addrs(&mut self, fd: libc::c_int, b: PfrBuffer, test: bool) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `del_addrs` [INFO] [stdout] --> src/pf.rs:1396:15 [INFO] [stdout] | [INFO] [stdout] 1396 | unsafe fn del_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tst_addrs` [INFO] [stdout] --> src/pf.rs:1410:15 [INFO] [stdout] | [INFO] [stdout] 1410 | unsafe fn tst_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pfrb_type` [INFO] [stdout] --> src/pf.rs:1431:5 [INFO] [stdout] | [INFO] [stdout] 1431 | pfrb_type: Pfrb, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:1450:8 [INFO] [stdout] | [INFO] [stdout] 1450 | fn new(pfrb_type: Pfrb) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_addr` [INFO] [stdout] --> src/pf.rs:1458:15 [INFO] [stdout] | [INFO] [stdout] 1458 | unsafe fn append_addr<'pfcmd>(&mut self, s: &'pfcmd str, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_addr_from_str` [INFO] [stdout] --> src/pf.rs:1487:15 [INFO] [stdout] | [INFO] [stdout] 1487 | unsafe fn load_addr_from_str>(&mut self, s: H, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_addr_from_file` [INFO] [stdout] --> src/pf.rs:1503:15 [INFO] [stdout] | [INFO] [stdout] 1503 | unsafe fn load_addr_from_file>(&mut self, path: P, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_buf_add` [INFO] [stdout] --> src/pf.rs:1578:8 [INFO] [stdout] | [INFO] [stdout] 1578 | fn pfr_buf_add(&mut self, addr: pfr_addr) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_addr_host` [INFO] [stdout] --> src/pf.rs:1592:15 [INFO] [stdout] | [INFO] [stdout] 1592 | unsafe fn append_addr_host(&mut self, vn: Vec, is_test: libc::c_int, not: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/pf.rs:1618:5 [INFO] [stdout] | [INFO] [stdout] 1618 | fd: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `test` [INFO] [stdout] --> src/pf.rs:1619:5 [INFO] [stdout] | [INFO] [stdout] 1619 | test: bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_kill_state` [INFO] [stdout] --> src/pf.rs:1644:15 [INFO] [stdout] | [INFO] [stdout] 1644 | unsafe fn pfctl_kill_state>(&self, src: H, dest: Option) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_table` [INFO] [stdout] --> src/pf.rs:1649:15 [INFO] [stdout] | [INFO] [stdout] 1649 | unsafe fn pfctl_table>(&self, table_name: T, cmd: PfCmd) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PfListTokenizer` [INFO] [stdout] --> src/pf_tokenizer.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) struct PfListTokenizer<'token> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/pf_tokenizer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn from_str(text_buf: &'token str) -> PfResult> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_next` [INFO] [stdout] --> src/pf_tokenizer.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_next(&mut self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cur_char` [INFO] [stdout] --> src/pf_tokenizer.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_cur_char(&self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `foresee_char` [INFO] [stdout] --> src/pf_tokenizer.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn foresee_char(&mut self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_eof` [INFO] [stdout] --> src/pf_tokenizer.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn is_eof(&mut self) -> bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_next` [INFO] [stdout] --> src/pf_tokenizer.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn read_next(&mut self) -> PfResult> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `htonl` [INFO] [stdout] --> src/portable/net.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn htonl(x: u32) -> u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ntohl` [INFO] [stdout] --> src/portable/net.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn ntohl(x: u32) -> u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCPARM_LEN` should have a snake case name [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `iocparm_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCBASECMD` should have a snake case name [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `iocbasecmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCGROUP` should have a snake case name [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `iocgroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 108 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.72s [INFO] running `Command { std: "docker" "inspect" "ae6aefb39c80b5d64d73fb11e2d0c0f2b9812261b6f603e2d2408649193b043a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae6aefb39c80b5d64d73fb11e2d0c0f2b9812261b6f603e2d2408649193b043a", kill_on_drop: false }` [INFO] [stdout] ae6aefb39c80b5d64d73fb11e2d0c0f2b9812261b6f603e2d2408649193b043a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a5ab9624b4543795320da8b263ca9412ef0ebed8b2f42ee5ee974d1490333b8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6a5ab9624b4543795320da8b263ca9412ef0ebed8b2f42ee5ee974d1490333b8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 324 | | { [INFO] [stdout] 325 | | b += 1; //C b++; [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 404 | | { [INFO] [stdout] 405 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 406 | | } [INFO] [stdout] 407 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 418 | | { [INFO] [stdout] 419 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 420 | | } [INFO] [stdout] 421 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 634 | | { [INFO] [stdout] 635 | | let resp = *p_resp; [INFO] [stdout] 636 | | [INFO] [stdout] ... | [INFO] [stdout] 701 | | } [INFO] [stdout] 702 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:941:9 [INFO] [stdout] | [INFO] [stdout] 941 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 942 | | { [INFO] [stdout] 943 | | let resp = *p_resp; [INFO] [stdout] 944 | | [INFO] [stdout] ... | [INFO] [stdout] 1096 | | } [INFO] [stdout] 1097 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:1012:21 [INFO] [stdout] | [INFO] [stdout] 1012 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 1013 | | { [INFO] [stdout] 1014 | | let resp1 = *p_resp1; [INFO] [stdout] 1015 | | [INFO] [stdout] ... | [INFO] [stdout] 1072 | | } [INFO] [stdout] 1073 | | ); [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: unused import: `nix::NixPath` [INFO] [stdout] --> src/pf.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use nix::NixPath; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pf.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pf.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `af` [INFO] [stdout] --> src/pf.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_af` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pf.rs:470:21 [INFO] [stdout] | [INFO] [stdout] 470 | Err(e) => return Ok(None), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ps` [INFO] [stdout] --> src/pf.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let ps = [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pf.rs:722:17 [INFO] [stdout] | [INFO] [stdout] 722 | 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/pf.rs:821:17 [INFO] [stdout] | [INFO] [stdout] 821 | 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 `sources` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:936:17 [INFO] [stdout] | [INFO] [stdout] 936 | let mut sources: libc::c_int = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sources` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `killed` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:937:17 [INFO] [stdout] | [INFO] [stdout] 937 | let mut killed: u32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_killed` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dests` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:938:17 [INFO] [stdout] | [INFO] [stdout] 938 | let mut dests: libc::c_int = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_dests` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1387:13 [INFO] [stdout] | [INFO] [stdout] 1387 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1401:13 [INFO] [stdout] | [INFO] [stdout] 1401 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pf_tokenizer.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | Some(c) => [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [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: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:481:21 [INFO] [stdout] | [INFO] [stdout] 481 | let mut addr_wrap: pf_addr_wrap = pf_addr_wrap::set_ipmask(PfAddr::PF_ADDR_ADDRMASK, maskv4, addr); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:819:19 [INFO] [stdout] | [INFO] [stdout] 819 | unsafe 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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:841:13 [INFO] [stdout] | [INFO] [stdout] 841 | let mut addr = [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IF_NAMESIZE` [INFO] [stdout] --> src/pf.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const IF_NAMESIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AI_NUMERICHOST` [INFO] [stdout] --> src/pf.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | const AI_NUMERICHOST: libc::c_int = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TABLES` [INFO] [stdout] --> src/pf.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | PFRB_TABLES = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TSTATS` [INFO] [stdout] --> src/pf.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | PFRB_TSTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_ADDRS` [INFO] [stdout] --> src/pf.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | PFRB_ADDRS, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_ASTATS` [INFO] [stdout] --> src/pf.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | PFRB_ASTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_IFACES` [INFO] [stdout] --> src/pf.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | PFRB_IFACES, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TRANS` [INFO] [stdout] --> src/pf.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | PFRB_TRANS, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_MAX` [INFO] [stdout] --> src/pf.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | PFRB_MAX [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_ADDRMASK` [INFO] [stdout] --> src/pf.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | PF_ADDR_ADDRMASK = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pf-rs v13.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_NOROUTE` [INFO] [stdout] --> src/pf.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | PF_ADDR_NOROUTE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_DYNIFTL` [INFO] [stdout] --> src/pf.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | PF_ADDR_DYNIFTL, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_TABLE` [INFO] [stdout] --> src/pf.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | PF_ADDR_TABLE, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_URPFFAILED` [INFO] [stdout] --> src/pf.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | PF_ADDR_URPFFAILED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_RANGE` [INFO] [stdout] --> src/pf.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | PF_ADDR_RANGE [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_empty` [INFO] [stdout] --> src/pf.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn new_empty() -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_addrprefix` [INFO] [stdout] --> src/pf.rs:184:15 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe fn pfctl_addrprefix<'addr>(&mut self, addr: &'addr str) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unmask` [INFO] [stdout] --> src/pf.rs:307:15 [INFO] [stdout] | [INFO] [stdout] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_zeroed` [INFO] [stdout] --> src/pf.rs:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe fn new_zeroed() -> Self [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_ipmask` [INFO] [stdout] --> src/pf.rs:389:15 [INFO] [stdout] | [INFO] [stdout] 389 | unsafe fn set_ipmask(pf_addr_type: PfAddr, bits: libc::c_int, mut addr: pf_addr) -> Self [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `node_host` [INFO] [stdout] --> src/pf.rs:448:8 [INFO] [stdout] | [INFO] [stdout] 448 | struct node_host [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host_v4v6` [INFO] [stdout] --> src/pf.rs:464:15 [INFO] [stdout] | [INFO] [stdout] 464 | unsafe fn host_v4v6<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host_dns` [INFO] [stdout] --> src/pf.rs:572:15 [INFO] [stdout] | [INFO] [stdout] 572 | unsafe fn host_dns<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host` [INFO] [stdout] --> src/pf.rs:718:15 [INFO] [stdout] | [INFO] [stdout] 718 | unsafe fn host<'pfcmd>(s: &'pfcmd str) -> PfResult> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:819:15 [INFO] [stdout] | [INFO] [stdout] 819 | unsafe fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:902:15 [INFO] [stdout] | [INFO] [stdout] 902 | unsafe fn new>(fd: libc::c_int, is_test: bool, src: H, dest: Option) -> PfResult<()> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_add_tables` [INFO] [stdout] --> src/pf.rs:1126:15 [INFO] [stdout] | [INFO] [stdout] 1126 | unsafe fn new_add_tables(tbl: pfr_table, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_addrs` [INFO] [stdout] --> src/pf.rs:1138:15 [INFO] [stdout] | [INFO] [stdout] 1138 | unsafe fn new_addrs(tbl: pfr_table, addr: *mut libc::c_void, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IoCtl` [INFO] [stdout] --> src/pf.rs:1152:8 [INFO] [stdout] | [INFO] [stdout] 1152 | struct IoCtl{} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_VOID` [INFO] [stdout] --> src/pf.rs:1156:5 [INFO] [stdout] | [INFO] [stdout] 1156 | const IOC_VOID: libc::c_ulong = 0x20000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_OUT` [INFO] [stdout] --> src/pf.rs:1158:5 [INFO] [stdout] | [INFO] [stdout] 1158 | const IOC_OUT: libc::c_ulong = 0x40000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_IN` [INFO] [stdout] --> src/pf.rs:1160:5 [INFO] [stdout] | [INFO] [stdout] 1160 | const IOC_IN: libc::c_ulong = 0x80000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_INOUT` [INFO] [stdout] --> src/pf.rs:1162:5 [INFO] [stdout] | [INFO] [stdout] 1162 | const IOC_INOUT: libc::c_ulong = (Self::IOC_IN|Self::IOC_OUT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_DIRMASK` [INFO] [stdout] --> src/pf.rs:1164:5 [INFO] [stdout] | [INFO] [stdout] 1164 | const IOC_DIRMASK: libc::c_ulong = (Self::IOC_VOID|Self::IOC_OUT|Self::IOC_IN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOCPARM_SHIFT` [INFO] [stdout] --> src/pf.rs:1167:5 [INFO] [stdout] | [INFO] [stdout] 1167 | const IOCPARM_SHIFT: libc::c_ulong = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOCPARM_MASK` [INFO] [stdout] --> src/pf.rs:1169:5 [INFO] [stdout] | [INFO] [stdout] 1169 | const IOCPARM_MASK: libc::c_ulong = ((1 << Self::IOCPARM_SHIFT) - 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCPARM_LEN` [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCBASECMD` [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCGROUP` [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iowr` [INFO] [stdout] --> src/pf.rs:1187:14 [INFO] [stdout] | [INFO] [stdout] 1187 | const fn iowr(group: char, num: libc::c_ulong, len: usize) -> libc::c_ulong [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRADDTABLES` [INFO] [stdout] --> src/pf.rs:1192:5 [INFO] [stdout] | [INFO] [stdout] 1192 | const DIOCRADDTABLES: libc::c_ulong = Self::iowr('D', 61, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRADDADDRS` [INFO] [stdout] --> src/pf.rs:1193:5 [INFO] [stdout] | [INFO] [stdout] 1193 | const DIOCRADDADDRS: libc::c_ulong = Self::iowr('D', 67, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRDELADDRS` [INFO] [stdout] --> src/pf.rs:1194:5 [INFO] [stdout] | [INFO] [stdout] 1194 | const DIOCRDELADDRS: libc::c_ulong = Self::iowr('D', 68, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCRTSTADDRS` [INFO] [stdout] --> src/pf.rs:1195:5 [INFO] [stdout] | [INFO] [stdout] 1195 | const DIOCRTSTADDRS: libc::c_ulong = Self::iowr('D', 73, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DIOCKILLSTATES` [INFO] [stdout] --> src/pf.rs:1196:5 [INFO] [stdout] | [INFO] [stdout] 1196 | const DIOCKILLSTATES: libc::c_ulong = Self::iowr('D', 41, std::mem::size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_PERSIST` [INFO] [stdout] --> src/pf.rs:1211:5 [INFO] [stdout] | [INFO] [stdout] 1211 | const PFR_TFLAG_PERSIST: libc::c_uint = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_CONST` [INFO] [stdout] --> src/pf.rs:1212:5 [INFO] [stdout] | [INFO] [stdout] 1212 | const PFR_TFLAG_CONST: libc::c_uint = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_ACTIVE` [INFO] [stdout] --> src/pf.rs:1213:5 [INFO] [stdout] | [INFO] [stdout] 1213 | const PFR_TFLAG_ACTIVE: libc::c_uint = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_INACTIVE` [INFO] [stdout] --> src/pf.rs:1214:5 [INFO] [stdout] | [INFO] [stdout] 1214 | const PFR_TFLAG_INACTIVE: libc::c_uint = 0x00000008; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFERENCED` [INFO] [stdout] --> src/pf.rs:1215:5 [INFO] [stdout] | [INFO] [stdout] 1215 | const PFR_TFLAG_REFERENCED: libc::c_uint = 0x00000010; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFDANCHOR` [INFO] [stdout] --> src/pf.rs:1216:5 [INFO] [stdout] | [INFO] [stdout] 1216 | const PFR_TFLAG_REFDANCHOR: libc::c_uint = 0x00000020; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_COUNTERS` [INFO] [stdout] --> src/pf.rs:1217:5 [INFO] [stdout] | [INFO] [stdout] 1217 | const PFR_TFLAG_COUNTERS: libc::c_uint = 0x00000040; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:1219:15 [INFO] [stdout] | [INFO] [stdout] 1219 | unsafe fn new(pfrt_name: &str) -> PfResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_add_tables` [INFO] [stdout] --> src/pf.rs:1243:15 [INFO] [stdout] | [INFO] [stdout] 1243 | unsafe fn pfr_add_tables(&mut self, fd: libc::c_int, size: libc::c_int, nadd: &mut libc::c_int, flags: libc::c_int, test: bool) -> Pf... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_add_addrs` [INFO] [stdout] --> src/pf.rs:1270:15 [INFO] [stdout] | [INFO] [stdout] 1270 | unsafe fn pfr_add_addrs( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_del_addrs` [INFO] [stdout] --> src/pf.rs:1310:15 [INFO] [stdout] | [INFO] [stdout] 1310 | unsafe fn pfr_del_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, ndel: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_tst_addrs` [INFO] [stdout] --> src/pf.rs:1336:15 [INFO] [stdout] | [INFO] [stdout] 1336 | unsafe fn pfr_tst_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, nmatch: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_table` [INFO] [stdout] --> src/pf.rs:1362:15 [INFO] [stdout] | [INFO] [stdout] 1362 | unsafe fn create_table(&mut self, fd: libc::c_int, test: bool) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_addrs` [INFO] [stdout] --> src/pf.rs:1382:15 [INFO] [stdout] | [INFO] [stdout] 1382 | unsafe fn add_addrs(&mut self, fd: libc::c_int, b: PfrBuffer, test: bool) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `del_addrs` [INFO] [stdout] --> src/pf.rs:1396:15 [INFO] [stdout] | [INFO] [stdout] 1396 | unsafe fn del_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tst_addrs` [INFO] [stdout] --> src/pf.rs:1410:15 [INFO] [stdout] | [INFO] [stdout] 1410 | unsafe fn tst_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pfrb_type` [INFO] [stdout] --> src/pf.rs:1431:5 [INFO] [stdout] | [INFO] [stdout] 1431 | pfrb_type: Pfrb, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pf.rs:1450:8 [INFO] [stdout] | [INFO] [stdout] 1450 | fn new(pfrb_type: Pfrb) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_addr` [INFO] [stdout] --> src/pf.rs:1458:15 [INFO] [stdout] | [INFO] [stdout] 1458 | unsafe fn append_addr<'pfcmd>(&mut self, s: &'pfcmd str, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_addr_from_str` [INFO] [stdout] --> src/pf.rs:1487:15 [INFO] [stdout] | [INFO] [stdout] 1487 | unsafe fn load_addr_from_str>(&mut self, s: H, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_addr_from_file` [INFO] [stdout] --> src/pf.rs:1503:15 [INFO] [stdout] | [INFO] [stdout] 1503 | unsafe fn load_addr_from_file>(&mut self, path: P, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfr_buf_add` [INFO] [stdout] --> src/pf.rs:1578:8 [INFO] [stdout] | [INFO] [stdout] 1578 | fn pfr_buf_add(&mut self, addr: pfr_addr) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_addr_host` [INFO] [stdout] --> src/pf.rs:1592:15 [INFO] [stdout] | [INFO] [stdout] 1592 | unsafe fn append_addr_host(&mut self, vn: Vec, is_test: libc::c_int, not: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/pf.rs:1618:5 [INFO] [stdout] | [INFO] [stdout] 1618 | fd: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `test` [INFO] [stdout] --> src/pf.rs:1619:5 [INFO] [stdout] | [INFO] [stdout] 1619 | test: bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_kill_state` [INFO] [stdout] --> src/pf.rs:1644:15 [INFO] [stdout] | [INFO] [stdout] 1644 | unsafe fn pfctl_kill_state>(&self, src: H, dest: Option) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pfctl_table` [INFO] [stdout] --> src/pf.rs:1649:15 [INFO] [stdout] | [INFO] [stdout] 1649 | unsafe fn pfctl_table>(&self, table_name: T, cmd: PfCmd) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PfListTokenizer` [INFO] [stdout] --> src/pf_tokenizer.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) struct PfListTokenizer<'token> [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/pf_tokenizer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn from_str(text_buf: &'token str) -> PfResult> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_next` [INFO] [stdout] --> src/pf_tokenizer.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn move_next(&mut self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cur_char` [INFO] [stdout] --> src/pf_tokenizer.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_cur_char(&self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `foresee_char` [INFO] [stdout] --> src/pf_tokenizer.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn foresee_char(&mut self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_eof` [INFO] [stdout] --> src/pf_tokenizer.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn is_eof(&mut self) -> bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_next` [INFO] [stdout] --> src/pf_tokenizer.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn read_next(&mut self) -> PfResult> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `htonl` [INFO] [stdout] --> src/portable/net.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn htonl(x: u32) -> u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ntohl` [INFO] [stdout] --> src/portable/net.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn ntohl(x: u32) -> u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCPARM_LEN` should have a snake case name [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `iocparm_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCBASECMD` should have a snake case name [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `iocbasecmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCGROUP` should have a snake case name [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `iocgroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 108 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/common.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stdout] 324 | | { [INFO] [stdout] 325 | | b += 1; //C b++; [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stdout] 404 | | { [INFO] [stdout] 405 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stdout] 406 | | } [INFO] [stdout] 407 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stdout] 418 | | { [INFO] [stdout] 419 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stdout] 420 | | } [INFO] [stdout] 421 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 634 | | { [INFO] [stdout] 635 | | let resp = *p_resp; [INFO] [stdout] 636 | | [INFO] [stdout] ... | [INFO] [stdout] 701 | | } [INFO] [stdout] 702 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:941:9 [INFO] [stdout] | [INFO] [stdout] 941 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stdout] 942 | | { [INFO] [stdout] 943 | | let resp = *p_resp; [INFO] [stdout] 944 | | [INFO] [stdout] ... | [INFO] [stdout] 1096 | | } [INFO] [stdout] 1097 | | ); [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:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | $init; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] ::: src/pf.rs:1012:21 [INFO] [stdout] | [INFO] [stdout] 1012 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stdout] 1013 | | { [INFO] [stdout] 1014 | | let resp1 = *p_resp1; [INFO] [stdout] 1015 | | [INFO] [stdout] ... | [INFO] [stdout] 1072 | | } [INFO] [stdout] 1073 | | ); [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: unused import: `nix::NixPath` [INFO] [stdout] --> src/pf.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use nix::NixPath; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pf.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmp` is never read [INFO] [stdout] --> src/pf.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | let mut tmp: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `af` [INFO] [stdout] --> src/pf.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_af` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pf.rs:470:21 [INFO] [stdout] | [INFO] [stdout] 470 | Err(e) => return Ok(None), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ps` [INFO] [stdout] --> src/pf.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let ps = [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mask` is never read [INFO] [stdout] --> src/pf.rs:722:17 [INFO] [stdout] | [INFO] [stdout] 722 | 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/pf.rs:821:17 [INFO] [stdout] | [INFO] [stdout] 821 | 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 `sources` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:936:17 [INFO] [stdout] | [INFO] [stdout] 936 | let mut sources: libc::c_int = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sources` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `killed` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:937:17 [INFO] [stdout] | [INFO] [stdout] 937 | let mut killed: u32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_killed` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dests` is assigned to, but never used [INFO] [stdout] --> src/pf.rs:938:17 [INFO] [stdout] | [INFO] [stdout] 938 | let mut dests: libc::c_int = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_dests` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1387:13 [INFO] [stdout] | [INFO] [stdout] 1387 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pfrb_size` [INFO] [stdout] --> src/pf.rs:1401:13 [INFO] [stdout] | [INFO] [stdout] 1401 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pf_tokenizer.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | Some(c) => [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let mut i: usize = 31; [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: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:481:21 [INFO] [stdout] | [INFO] [stdout] 481 | let mut addr_wrap: pf_addr_wrap = pf_addr_wrap::set_ipmask(PfAddr::PF_ADDR_ADDRMASK, maskv4, addr); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:819:19 [INFO] [stdout] | [INFO] [stdout] 819 | unsafe 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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pf.rs:841:13 [INFO] [stdout] | [INFO] [stdout] 841 | let mut addr = [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IF_NAMESIZE` [INFO] [stdout] --> src/pf.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const IF_NAMESIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TABLES` [INFO] [stdout] --> src/pf.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | PFRB_TABLES = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TSTATS` [INFO] [stdout] --> src/pf.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | PFRB_TSTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_ASTATS` [INFO] [stdout] --> src/pf.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | PFRB_ASTATS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_IFACES` [INFO] [stdout] --> src/pf.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | PFRB_IFACES, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PFRB_TRANS` [INFO] [stdout] --> src/pf.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | PFRB_TRANS, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_NOROUTE` [INFO] [stdout] --> src/pf.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | PF_ADDR_NOROUTE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_DYNIFTL` [INFO] [stdout] --> src/pf.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | PF_ADDR_DYNIFTL, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_TABLE` [INFO] [stdout] --> src/pf.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | PF_ADDR_TABLE, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_URPFFAILED` [INFO] [stdout] --> src/pf.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | PF_ADDR_URPFFAILED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PF_ADDR_RANGE` [INFO] [stdout] --> src/pf.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | PF_ADDR_RANGE [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/pf.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_zeroed` [INFO] [stdout] --> src/pf.rs:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | unsafe fn new_zeroed() -> Self [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_VOID` [INFO] [stdout] --> src/pf.rs:1156:5 [INFO] [stdout] | [INFO] [stdout] 1156 | const IOC_VOID: libc::c_ulong = 0x20000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IOC_DIRMASK` [INFO] [stdout] --> src/pf.rs:1164:5 [INFO] [stdout] | [INFO] [stdout] 1164 | const IOC_DIRMASK: libc::c_ulong = (Self::IOC_VOID|Self::IOC_OUT|Self::IOC_IN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCPARM_LEN` [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCBASECMD` [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `IOCGROUP` [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_CONST` [INFO] [stdout] --> src/pf.rs:1212:5 [INFO] [stdout] | [INFO] [stdout] 1212 | const PFR_TFLAG_CONST: libc::c_uint = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_ACTIVE` [INFO] [stdout] --> src/pf.rs:1213:5 [INFO] [stdout] | [INFO] [stdout] 1213 | const PFR_TFLAG_ACTIVE: libc::c_uint = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_INACTIVE` [INFO] [stdout] --> src/pf.rs:1214:5 [INFO] [stdout] | [INFO] [stdout] 1214 | const PFR_TFLAG_INACTIVE: libc::c_uint = 0x00000008; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFERENCED` [INFO] [stdout] --> src/pf.rs:1215:5 [INFO] [stdout] | [INFO] [stdout] 1215 | const PFR_TFLAG_REFERENCED: libc::c_uint = 0x00000010; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_REFDANCHOR` [INFO] [stdout] --> src/pf.rs:1216:5 [INFO] [stdout] | [INFO] [stdout] 1216 | const PFR_TFLAG_REFDANCHOR: libc::c_uint = 0x00000020; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PFR_TFLAG_COUNTERS` [INFO] [stdout] --> src/pf.rs:1217:5 [INFO] [stdout] | [INFO] [stdout] 1217 | const PFR_TFLAG_COUNTERS: libc::c_uint = 0x00000040; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_addr_from_file` [INFO] [stdout] --> src/pf.rs:1503:15 [INFO] [stdout] | [INFO] [stdout] 1503 | unsafe fn load_addr_from_file>(&mut self, path: P, is_test: libc::c_int) -> PfResult<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `foresee_char` [INFO] [stdout] --> src/pf_tokenizer.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn foresee_char(&mut self) -> Option [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCPARM_LEN` should have a snake case name [INFO] [stdout] --> src/pf.rs:1171:8 [INFO] [stdout] | [INFO] [stdout] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `iocparm_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCBASECMD` should have a snake case name [INFO] [stdout] --> src/pf.rs:1176:8 [INFO] [stdout] | [INFO] [stdout] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `iocbasecmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `IOCGROUP` should have a snake case name [INFO] [stdout] --> src/pf.rs:1181:8 [INFO] [stdout] | [INFO] [stdout] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `iocgroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.16s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/pf_rs-859b84339f56eb65) [INFO] running `Command { std: "docker" "inspect" "6a5ab9624b4543795320da8b263ca9412ef0ebed8b2f42ee5ee974d1490333b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a5ab9624b4543795320da8b263ca9412ef0ebed8b2f42ee5ee974d1490333b8", kill_on_drop: false }` [INFO] [stdout] 6a5ab9624b4543795320da8b263ca9412ef0ebed8b2f42ee5ee974d1490333b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1389ce819d3b3be7e494955a5ef7004c318fcbeba55ebca1f81e8a1b47426792 [INFO] running `Command { std: "docker" "start" "-a" "1389ce819d3b3be7e494955a5ef7004c318fcbeba55ebca1f81e8a1b47426792", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:323:13 [INFO] [stderr] | [INFO] [stderr] 323 | / cfor!(let mut i = 31; tmp & (1 << i) > 0; i -= 1; // or (i = 31; tmp & (1 << i); --i) [INFO] [stderr] 324 | | { [INFO] [stderr] 325 | | b += 1; //C b++; [INFO] [stderr] 326 | | } [INFO] [stderr] 327 | | ); [INFO] [stderr] | |_____________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:403:9 [INFO] [stderr] | [INFO] [stderr] 403 | / cfor!(let mut i = 31; i > 31-b; i -= 1; // for (i = 31; i > 31-b; --i) [INFO] [stderr] 404 | | { [INFO] [stderr] 405 | | m.pfa.addr32[j] |= 1 << i; // m->addr32[j] |= (1 << i); [INFO] [stderr] 406 | | } [INFO] [stderr] 407 | | ); [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:417:13 [INFO] [stderr] | [INFO] [stderr] 417 | / cfor!(let mut i = 0; i < 4; i += 1; // for (i = 0; i < 4; i++) [INFO] [stderr] 418 | | { [INFO] [stderr] 419 | | addr.pfa.addr32[i] = addr.pfa.addr32[i] & m.pfa.addr32[i]; // n->addr32[i] = n->addr32[i] & m->addr32[i]; [INFO] [stderr] 420 | | } [INFO] [stderr] 421 | | ); [INFO] [stderr] | |_____________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:633:13 [INFO] [stderr] | [INFO] [stderr] 633 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stderr] 634 | | { [INFO] [stderr] 635 | | let resp = *p_resp; [INFO] [stderr] 636 | | [INFO] [stderr] ... | [INFO] [stderr] 701 | | } [INFO] [stderr] 702 | | ); [INFO] [stderr] | |_____________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:941:9 [INFO] [stderr] | [INFO] [stderr] 941 | / cfor!(let mut p_resp = res; p_resp != std::ptr::null_mut(); p_resp = (*p_resp).ai_next; [INFO] [stderr] 942 | | { [INFO] [stderr] 943 | | let resp = *p_resp; [INFO] [stderr] 944 | | [INFO] [stderr] ... | [INFO] [stderr] 1096 | | } [INFO] [stderr] 1097 | | ); [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/common.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 6 | $init; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] ::: src/pf.rs:1012:21 [INFO] [stderr] | [INFO] [stderr] 1012 | / cfor!(let mut p_resp1 = res1; p_resp1 != std::ptr::null_mut(); p_resp1 = (*p_resp1).ai_next; [INFO] [stderr] 1013 | | { [INFO] [stderr] 1014 | | let resp1 = *p_resp1; [INFO] [stderr] 1015 | | [INFO] [stderr] ... | [INFO] [stderr] 1072 | | } [INFO] [stderr] 1073 | | ); [INFO] [stderr] | |_____________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `cfor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `nix::NixPath` [INFO] [stderr] --> src/pf.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | use nix::NixPath; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/pf.rs:309:17 [INFO] [stderr] | [INFO] [stderr] 309 | let mut i: usize = 31; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `tmp` is never read [INFO] [stderr] --> src/pf.rs:312:17 [INFO] [stderr] | [INFO] [stderr] 312 | let mut tmp: u32 = 0; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `af` [INFO] [stderr] --> src/pf.rs:307:29 [INFO] [stderr] | [INFO] [stderr] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_af` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/pf.rs:470:21 [INFO] [stderr] | [INFO] [stderr] 470 | Err(e) => return Ok(None), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ps` [INFO] [stderr] --> src/pf.rs:576:13 [INFO] [stderr] | [INFO] [stderr] 576 | let ps = [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ps` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `mask` is never read [INFO] [stderr] --> src/pf.rs:722:17 [INFO] [stderr] | [INFO] [stderr] 722 | let mut mask: libc::c_int = -1; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `bits` is never read [INFO] [stderr] --> src/pf.rs:821:17 [INFO] [stderr] | [INFO] [stderr] 821 | let mut bits: libc::c_int = 0; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable `sources` is assigned to, but never used [INFO] [stderr] --> src/pf.rs:936:17 [INFO] [stderr] | [INFO] [stderr] 936 | let mut sources: libc::c_int = 0; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_sources` instead [INFO] [stderr] [INFO] [stderr] warning: variable `killed` is assigned to, but never used [INFO] [stderr] --> src/pf.rs:937:17 [INFO] [stderr] | [INFO] [stderr] 937 | let mut killed: u32 = 0; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_killed` instead [INFO] [stderr] [INFO] [stderr] warning: variable `dests` is assigned to, but never used [INFO] [stderr] --> src/pf.rs:938:17 [INFO] [stderr] | [INFO] [stderr] 938 | let mut dests: libc::c_int = 0; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_dests` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pfrb_size` [INFO] [stderr] --> src/pf.rs:1387:13 [INFO] [stderr] | [INFO] [stderr] 1387 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pfrb_size` [INFO] [stderr] --> src/pf.rs:1401:13 [INFO] [stderr] | [INFO] [stderr] 1401 | let pfrb_size = b.pfrb_caddr.len(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pfrb_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/pf_tokenizer.rs:156:22 [INFO] [stderr] | [INFO] [stderr] 156 | Some(c) => [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pf.rs:309:13 [INFO] [stderr] | [INFO] [stderr] 309 | let mut i: usize = 31; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pf.rs:481:21 [INFO] [stderr] | [INFO] [stderr] 481 | let mut addr_wrap: pf_addr_wrap = pf_addr_wrap::set_ipmask(PfAddr::PF_ADDR_ADDRMASK, maskv4, addr); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pf.rs:819:19 [INFO] [stderr] | [INFO] [stderr] 819 | unsafe fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pf.rs:841:13 [INFO] [stderr] | [INFO] [stderr] 841 | let mut addr = [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `IF_NAMESIZE` [INFO] [stderr] --> src/pf.rs:53:1 [INFO] [stderr] | [INFO] [stderr] 53 | const IF_NAMESIZE: usize = 16; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `AI_NUMERICHOST` [INFO] [stderr] --> src/pf.rs:56:1 [INFO] [stderr] | [INFO] [stderr] 56 | const AI_NUMERICHOST: libc::c_int = 0x00000004; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_TABLES` [INFO] [stderr] --> src/pf.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | PFRB_TABLES = 1, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_TSTATS` [INFO] [stderr] --> src/pf.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | PFRB_TSTATS, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_ADDRS` [INFO] [stderr] --> src/pf.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 79 | PFRB_ADDRS, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_ASTATS` [INFO] [stderr] --> src/pf.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | PFRB_ASTATS, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_IFACES` [INFO] [stderr] --> src/pf.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 81 | PFRB_IFACES, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] running 12 tests [INFO] [stderr] [INFO] [stdout] test pf::test_set_ipmask_cidr ... ok [INFO] [stderr] warning: variant is never constructed: `PFRB_TRANS` [INFO] [stderr] --> src/pf.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | PFRB_TRANS, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PFRB_MAX` [INFO] [stderr] --> src/pf.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | PFRB_MAX [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Pfrb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_ADDRMASK` [INFO] [stderr] --> src/pf.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | PF_ADDR_ADDRMASK = 0, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_NOROUTE` [INFO] [stderr] --> src/pf.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | PF_ADDR_NOROUTE, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_DYNIFTL` [INFO] [stderr] --> src/pf.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | PF_ADDR_DYNIFTL, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_TABLE` [INFO] [stderr] --> src/pf.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | PF_ADDR_TABLE, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_URPFFAILED` [INFO] [stderr] --> src/pf.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | PF_ADDR_URPFFAILED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PF_ADDR_RANGE` [INFO] [stderr] --> src/pf.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | PF_ADDR_RANGE [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PfAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/pf.rs:87:10 [INFO] [stderr] | [INFO] [stderr] 87 | #[derive(Debug, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_empty` [INFO] [stderr] --> src/pf.rs:179:8 [INFO] [stderr] | [INFO] [stderr] 179 | fn new_empty() -> Self [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfctl_addrprefix` [INFO] [stderr] --> src/pf.rs:184:15 [INFO] [stderr] | [INFO] [stderr] 184 | unsafe fn pfctl_addrprefix<'addr>(&mut self, addr: &'addr str) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unmask` [INFO] [stderr] --> src/pf.rs:307:15 [INFO] [stderr] | [INFO] [stderr] 307 | unsafe fn unmask(&self, af: libc::sa_family_t) -> libc::c_int [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_zeroed` [INFO] [stderr] --> src/pf.rs:348:15 [INFO] [stderr] | [INFO] [stderr] 348 | unsafe fn new_zeroed() -> Self [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_ipmask` [INFO] [stderr] --> src/pf.rs:389:15 [INFO] [stderr] | [INFO] [stderr] 389 | unsafe fn set_ipmask(pf_addr_type: PfAddr, bits: libc::c_int, mut addr: pf_addr) -> Self [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `node_host` [INFO] [stderr] --> src/pf.rs:448:8 [INFO] [stderr] | [INFO] [stderr] 448 | struct node_host [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `host_v4v6` [INFO] [stderr] --> src/pf.rs:464:15 [INFO] [stderr] | [INFO] [stderr] 464 | unsafe fn host_v4v6<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `host_dns` [INFO] [stderr] --> src/pf.rs:572:15 [INFO] [stderr] | [INFO] [stderr] 572 | unsafe fn host_dns<'pfcmd>(s: &'pfcmd str, maskv4: libc::c_int, maskv6: libc::c_int) -> PfResult>> [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `host` [INFO] [stderr] --> src/pf.rs:718:15 [INFO] [stderr] | [INFO] [stderr] 718 | unsafe fn host<'pfcmd>(s: &'pfcmd str) -> PfResult> [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/pf.rs:819:15 [INFO] [stderr] | [INFO] [stderr] 819 | unsafe fn new(mut n: node_host, is_test: libc::c_int, not: libc::c_int) -> PfResult [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/pf.rs:902:15 [INFO] [stderr] | [INFO] [stderr] 902 | unsafe fn new>(fd: libc::c_int, is_test: bool, src: H, dest: Option) -> PfResult<()> [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_add_tables` [INFO] [stderr] --> src/pf.rs:1126:15 [INFO] [stderr] | [INFO] [stderr] 1126 | unsafe fn new_add_tables(tbl: pfr_table, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_addrs` [INFO] [stderr] --> src/pf.rs:1138:15 [INFO] [stderr] | [INFO] [stderr] 1138 | unsafe fn new_addrs(tbl: pfr_table, addr: *mut libc::c_void, size: libc::c_int, flags: libc::c_int) -> Self [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `IoCtl` [INFO] [stderr] --> src/pf.rs:1152:8 [INFO] [stderr] | [INFO] [stderr] 1152 | struct IoCtl{} [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOC_VOID` [INFO] [stderr] --> src/pf.rs:1156:5 [INFO] [stderr] | [INFO] [stderr] 1156 | const IOC_VOID: libc::c_ulong = 0x20000000; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOC_OUT` [INFO] [stderr] --> src/pf.rs:1158:5 [INFO] [stderr] | [INFO] [stderr] 1158 | const IOC_OUT: libc::c_ulong = 0x40000000; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOC_IN` [INFO] [stderr] --> src/pf.rs:1160:5 [INFO] [stderr] | [INFO] [stderr] 1160 | const IOC_IN: libc::c_ulong = 0x80000000; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOC_INOUT` [INFO] [stderr] --> src/pf.rs:1162:5 [INFO] [stderr] | [INFO] [stderr] 1162 | const IOC_INOUT: libc::c_ulong = (Self::IOC_IN|Self::IOC_OUT); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOC_DIRMASK` [INFO] [stderr] --> src/pf.rs:1164:5 [INFO] [stderr] | [INFO] [stderr] 1164 | const IOC_DIRMASK: libc::c_ulong = (Self::IOC_VOID|Self::IOC_OUT|Self::IOC_IN); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOCPARM_SHIFT` [INFO] [stderr] --> src/pf.rs:1167:5 [INFO] [stderr] | [INFO] [stderr] 1167 | const IOCPARM_SHIFT: libc::c_ulong = 13; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IOCPARM_MASK` [INFO] [stderr] --> src/pf.rs:1169:5 [INFO] [stderr] | [INFO] [stderr] 1169 | const IOCPARM_MASK: libc::c_ulong = ((1 << Self::IOCPARM_SHIFT) - 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `IOCPARM_LEN` [INFO] [stderr] --> src/pf.rs:1171:8 [INFO] [stderr] | [INFO] [stderr] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `IOCBASECMD` [INFO] [stderr] --> src/pf.rs:1176:8 [INFO] [stderr] | [INFO] [stderr] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `IOCGROUP` [INFO] [stderr] --> src/pf.rs:1181:8 [INFO] [stderr] | [INFO] [stderr] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `iowr` [INFO] [stderr] --> src/pf.rs:1187:14 [INFO] [stderr] | [INFO] [stderr] 1187 | const fn iowr(group: char, num: libc::c_ulong, len: usize) -> libc::c_ulong [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `DIOCRADDTABLES` [INFO] [stderr] --> src/pf.rs:1192:5 [INFO] [stderr] | [INFO] [stderr] 1192 | const DIOCRADDTABLES: libc::c_ulong = Self::iowr('D', 61, std::mem::size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `DIOCRADDADDRS` [INFO] [stderr] --> src/pf.rs:1193:5 [INFO] [stderr] | [INFO] [stderr] 1193 | const DIOCRADDADDRS: libc::c_ulong = Self::iowr('D', 67, std::mem::size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `DIOCRDELADDRS` [INFO] [stderr] --> src/pf.rs:1194:5 [INFO] [stderr] | [INFO] [stderr] 1194 | const DIOCRDELADDRS: libc::c_ulong = Self::iowr('D', 68, std::mem::size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `DIOCRTSTADDRS` [INFO] [stderr] --> src/pf.rs:1195:5 [INFO] [stderr] | [INFO] [stderr] 1195 | const DIOCRTSTADDRS: libc::c_ulong = Self::iowr('D', 73, std::mem::size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `DIOCKILLSTATES` [INFO] [stderr] --> src/pf.rs:1196:5 [INFO] [stderr] | [INFO] [stderr] 1196 | const DIOCKILLSTATES: libc::c_ulong = Self::iowr('D', 41, std::mem::size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_PERSIST` [INFO] [stderr] --> src/pf.rs:1211:5 [INFO] [stderr] | [INFO] [stderr] 1211 | const PFR_TFLAG_PERSIST: libc::c_uint = 0x00000001; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_CONST` [INFO] [stderr] --> src/pf.rs:1212:5 [INFO] [stderr] | [INFO] [stderr] 1212 | const PFR_TFLAG_CONST: libc::c_uint = 0x00000002; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_ACTIVE` [INFO] [stderr] --> src/pf.rs:1213:5 [INFO] [stderr] | [INFO] [stderr] 1213 | const PFR_TFLAG_ACTIVE: libc::c_uint = 0x00000004; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_INACTIVE` [INFO] [stderr] --> src/pf.rs:1214:5 [INFO] [stderr] | [INFO] [stderr] 1214 | const PFR_TFLAG_INACTIVE: libc::c_uint = 0x00000008; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_REFERENCED` [INFO] [stderr] --> src/pf.rs:1215:5 [INFO] [stderr] | [INFO] [stderr] 1215 | const PFR_TFLAG_REFERENCED: libc::c_uint = 0x00000010; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_REFDANCHOR` [INFO] [stderr] --> src/pf.rs:1216:5 [INFO] [stderr] | [INFO] [stderr] 1216 | const PFR_TFLAG_REFDANCHOR: libc::c_uint = 0x00000020; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PFR_TFLAG_COUNTERS` [INFO] [stderr] --> src/pf.rs:1217:5 [INFO] [stderr] | [INFO] [stderr] 1217 | const PFR_TFLAG_COUNTERS: libc::c_uint = 0x00000040; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/pf.rs:1219:15 [INFO] [stderr] | [INFO] [stderr] 1219 | unsafe fn new(pfrt_name: &str) -> PfResult [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfr_add_tables` [INFO] [stderr] --> src/pf.rs:1243:15 [INFO] [stderr] | [INFO] [stderr] 1243 | unsafe fn pfr_add_tables(&mut self, fd: libc::c_int, size: libc::c_int, nadd: &mut libc::c_int, flags: libc::c_int, test: bool) -> Pf... [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfr_add_addrs` [INFO] [stderr] --> src/pf.rs:1270:15 [INFO] [stderr] | [INFO] [stderr] 1270 | unsafe fn pfr_add_addrs( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfr_del_addrs` [INFO] [stderr] --> src/pf.rs:1310:15 [INFO] [stderr] | [INFO] [stderr] 1310 | unsafe fn pfr_del_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, ndel: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfr_tst_addrs` [INFO] [stderr] --> src/pf.rs:1336:15 [INFO] [stderr] | [INFO] [stderr] 1336 | unsafe fn pfr_tst_addrs(&mut self, fd: libc::c_int, mut b: PfrBuffer, nmatch: &mut libc::c_int, flags: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_table` [INFO] [stderr] --> src/pf.rs:1362:15 [INFO] [stderr] | [INFO] [stderr] 1362 | unsafe fn create_table(&mut self, fd: libc::c_int, test: bool) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_addrs` [INFO] [stderr] --> src/pf.rs:1382:15 [INFO] [stderr] | [INFO] [stderr] 1382 | unsafe fn add_addrs(&mut self, fd: libc::c_int, b: PfrBuffer, test: bool) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `del_addrs` [INFO] [stderr] --> src/pf.rs:1396:15 [INFO] [stderr] | [INFO] [stderr] 1396 | unsafe fn del_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `tst_addrs` [INFO] [stderr] --> src/pf.rs:1410:15 [INFO] [stderr] | [INFO] [stderr] 1410 | unsafe fn tst_addrs(&mut self, fd: libc::c_int, b: PfrBuffer) -> PfResult [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pfrb_type` [INFO] [stderr] --> src/pf.rs:1431:5 [INFO] [stderr] | [INFO] [stderr] 1431 | pfrb_type: Pfrb, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/pf.rs:1450:8 [INFO] [stderr] | [INFO] [stderr] 1450 | fn new(pfrb_type: Pfrb) -> Self [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append_addr` [INFO] [stderr] --> src/pf.rs:1458:15 [INFO] [stderr] | [INFO] [stderr] 1458 | unsafe fn append_addr<'pfcmd>(&mut self, s: &'pfcmd str, is_test: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_addr_from_str` [INFO] [stderr] --> src/pf.rs:1487:15 [INFO] [stderr] | [INFO] [stderr] 1487 | unsafe fn load_addr_from_str>(&mut self, s: H, is_test: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_addr_from_file` [INFO] [stderr] --> src/pf.rs:1503:15 [INFO] [stderr] | [INFO] [stderr] 1503 | unsafe fn load_addr_from_file>(&mut self, path: P, is_test: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfr_buf_add` [INFO] [stderr] --> src/pf.rs:1578:8 [INFO] [stderr] | [INFO] [stderr] 1578 | fn pfr_buf_add(&mut self, addr: pfr_addr) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append_addr_host` [INFO] [stderr] --> src/pf.rs:1592:15 [INFO] [stderr] | [INFO] [stderr] 1592 | unsafe fn append_addr_host(&mut self, vn: Vec, is_test: libc::c_int, not: libc::c_int) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `fd` [INFO] [stderr] --> src/pf.rs:1618:5 [INFO] [stderr] | [INFO] [stderr] 1618 | fd: i32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `test` [INFO] [stderr] --> src/pf.rs:1619:5 [INFO] [stderr] | [INFO] [stderr] 1619 | test: bool [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfctl_kill_state` [INFO] [stderr] --> src/pf.rs:1644:15 [INFO] [stderr] | [INFO] [stderr] 1644 | unsafe fn pfctl_kill_state>(&self, src: H, dest: Option) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pfctl_table` [INFO] [stderr] --> src/pf.rs:1649:15 [INFO] [stderr] | [INFO] [stderr] 1649 | unsafe fn pfctl_table>(&self, table_name: T, cmd: PfCmd) -> PfResult<()> [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `PfListTokenizer` [INFO] [stderr] --> src/pf_tokenizer.rs:38:19 [INFO] [stderr] | [INFO] [stderr] 38 | pub(crate) struct PfListTokenizer<'token> [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_str` [INFO] [stderr] --> src/pf_tokenizer.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn from_str(text_buf: &'token str) -> PfResult> [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `move_next` [INFO] [stderr] --> src/pf_tokenizer.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn move_next(&mut self) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_cur_char` [INFO] [stderr] --> src/pf_tokenizer.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 83 | fn get_cur_char(&self) -> Option [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `foresee_char` [INFO] [stderr] --> src/pf_tokenizer.rs:89:8 [INFO] [stderr] | [INFO] [stderr] 89 | fn foresee_char(&mut self) -> Option [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_eof` [INFO] [stderr] --> src/pf_tokenizer.rs:99:8 [INFO] [stderr] | [INFO] [stderr] 99 | fn is_eof(&mut self) -> bool [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_next` [INFO] [stderr] --> src/pf_tokenizer.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn read_next(&mut self) -> PfResult> [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `htonl` [INFO] [stderr] --> src/portable/net.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn htonl(x: u32) -> u32 [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ntohl` [INFO] [stderr] --> src/portable/net.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn ntohl(x: u32) -> u32 [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `IOCPARM_LEN` should have a snake case name [INFO] [stderr] --> src/pf.rs:1171:8 [INFO] [stderr] | [INFO] [stderr] 1171 | fn IOCPARM_LEN(x: libc::c_ulong) -> libc::c_ulong [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `iocparm_len` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `IOCBASECMD` should have a snake case name [INFO] [stderr] --> src/pf.rs:1176:8 [INFO] [stderr] | [INFO] [stderr] 1176 | fn IOCBASECMD(x: libc::c_ulong) -> libc::c_ulong [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `iocbasecmd` [INFO] [stderr] [INFO] [stderr] warning: method `IOCGROUP` should have a snake case name [INFO] [stderr] --> src/pf.rs:1181:8 [INFO] [stderr] | [INFO] [stderr] 1181 | fn IOCGROUP(x: libc::c_uint) -> libc::c_uint [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `iocgroup` [INFO] [stderr] [INFO] [stderr] warning: `pf-rs` (lib) generated 108 warnings [INFO] [stderr] warning: `pf-rs` (lib test) generated 52 warnings (52 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pf_rs-859b84339f56eb65) [INFO] [stdout] test pf::fake_test_real_kill_state ... ok [INFO] [stdout] test pf::test_set_ipmask ... ok [INFO] [stdout] test pf::test_unmask ... ok [INFO] [stdout] test pf_tokenizer::test ... ok [INFO] [stdout] test pf::fake_test_add ... ok [INFO] [stdout] test pf::fake_test2_add ... ok [INFO] [stdout] test pf::test_real_add ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] test pf::test_real_del ... FAILED [INFO] [stdout] test pf::test_real_check ... FAILED [INFO] [stdout] test pf::test_kill_state ... FAILED [INFO] [stdout] test pf::test_struct_sizes ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- pf::test_real_add stdout ---- [INFO] [stdout] thread 'pf::test_real_add' panicked at 'called `Result::unwrap()` on an `Err` value: open() failed path /dev/pf err: ENOENT: No such file or directory', src/pf.rs:1723:29 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5582f679e14d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5582f679e14d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5582f679e14d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5582f679e14d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5582f67c0cbc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x5582f6799c21 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x5582f679fe95 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5582f679fe95 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5582f679fe95 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5582f679fb84 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5582f67a03e2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5582f67a02c7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5582f679e604 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5582f679fff9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5582f67213e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5582f67214d3 - core::result::unwrap_failed::h6bc7b183ec719494 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x5582f672fffd - core::result::Result::unwrap::h902901a8300d1b58 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1078:23 [INFO] [stdout] 17: 0x5582f672d254 - pf_rs::pf::test_real_add::haa47558fa0cb389d [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1723:14 [INFO] [stdout] 18: 0x5582f672d21a - pf_rs::pf::test_real_add::{{closure}}::h8011e99380b7d4e6 [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1721:1 [INFO] [stdout] 19: 0x5582f67336ce - core::ops::function::FnOnce::call_once::h6b8674229cb636e7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5582f6770ab3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5582f6770ab3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x5582f676f869 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x5582f676f869 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5582f676f869 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5582f676f869 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5582f676f869 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5582f676f869 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x5582f676f869 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x5582f673ba1e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x5582f673ba1e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5582f6740f88 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5582f6740f88 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5582f6740f88 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5582f6740f88 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5582f6740f88 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x5582f67a4c43 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7ff0b602e609 - start_thread [INFO] [stdout] 42: 0x7ff0b5dfc163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- pf::test_real_del stdout ---- [INFO] [stdout] thread 'pf::test_real_del' panicked at 'called `Result::unwrap()` on an `Err` value: open() failed path /dev/pf err: ENOENT: No such file or directory', src/pf.rs:1739:29 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5582f679e14d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5582f679e14d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5582f679e14d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5582f679e14d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5582f67c0cbc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x5582f6799c21 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x5582f679fe95 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5582f679fe95 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5582f679fe95 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5582f679fb84 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5582f67a03e2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5582f67a02c7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5582f679e604 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5582f679fff9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5582f67213e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5582f67214d3 - core::result::unwrap_failed::h6bc7b183ec719494 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x5582f672fffd - core::result::Result::unwrap::h902901a8300d1b58 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1078:23 [INFO] [stdout] 17: 0x5582f672d514 - pf_rs::pf::test_real_del::haddac9c5baffcd3e [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1739:14 [INFO] [stdout] 18: 0x5582f672d4da - pf_rs::pf::test_real_del::{{closure}}::h07c37e72ccdd5e2d [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1737:1 [INFO] [stdout] 19: 0x5582f673375e - core::ops::function::FnOnce::call_once::h96cd3a3d17832cb3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5582f6770ab3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5582f6770ab3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x5582f676f869 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x5582f676f869 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5582f676f869 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5582f676f869 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5582f676f869 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5582f676f869 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x5582f676f869 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x5582f673ba1e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x5582f673ba1e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5582f6740f88 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5582f6740f88 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5582f6740f88 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5582f6740f88 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5582f6740f88 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x5582f67a4c43 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7ff0b602e609 - start_thread [INFO] [stdout] 42: 0x7ff0b5dfc163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- pf::test_real_check stdout ---- [INFO] [stdout] thread 'pf::test_real_check' panicked at 'called `Result::unwrap()` on an `Err` value: open() failed path /dev/pf err: ENOENT: No such file or directory', src/pf.rs:1731:29 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5582f679e14d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5582f679e14d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5582f679e14d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5582f679e14d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5582f67c0cbc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x5582f6799c21 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x5582f679fe95 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5582f679fe95 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5582f679fe95 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5582f679fb84 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5582f67a03e2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5582f67a02c7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5582f679e604 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5582f679fff9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5582f67213e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5582f67214d3 - core::result::unwrap_failed::h6bc7b183ec719494 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x5582f672fffd - core::result::Result::unwrap::h902901a8300d1b58 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1078:23 [INFO] [stdout] 17: 0x5582f672d3b4 - pf_rs::pf::test_real_check::h02fb6e55eac982b3 [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1731:14 [INFO] [stdout] 18: 0x5582f672d37a - pf_rs::pf::test_real_check::{{closure}}::h022af16dcc4f1731 [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1729:1 [INFO] [stdout] 19: 0x5582f673370e - core::ops::function::FnOnce::call_once::h761673e367b2bed9 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5582f6770ab3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5582f6770ab3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x5582f676f869 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x5582f676f869 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5582f676f869 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5582f676f869 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5582f676f869 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5582f676f869 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x5582f676f869 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x5582f673ba1e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x5582f673ba1e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5582f6740f88 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5582f6740f88 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5582f6740f88 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5582f6740f88 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5582f6740f88 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x5582f67a4c43 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7ff0b602e609 - start_thread [INFO] [stdout] 42: 0x7ff0b5dfc163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- pf::test_kill_state stdout ---- [INFO] [stdout] thread 'pf::test_kill_state' panicked at 'called `Result::unwrap()` on an `Err` value: open() failed path /dev/pf err: ENOENT: No such file or directory', src/pf.rs:1747:29 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5582f679e14d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5582f679e14d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5582f679e14d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5582f679e14d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5582f67c0cbc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x5582f6799c21 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x5582f679fe95 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5582f679fe95 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5582f679fe95 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5582f679fb84 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5582f67a03e2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5582f67a02c7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5582f679e604 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5582f679fff9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5582f67213e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5582f67214d3 - core::result::unwrap_failed::h6bc7b183ec719494 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x5582f672fffd - core::result::Result::unwrap::h902901a8300d1b58 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1078:23 [INFO] [stdout] 17: 0x5582f672d671 - pf_rs::pf::test_kill_state::he8f138377aefc3fd [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1747:14 [INFO] [stdout] 18: 0x5582f672d63a - pf_rs::pf::test_kill_state::{{closure}}::h173e920eb876858e [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1745:1 [INFO] [stdout] 19: 0x5582f673386e - core::ops::function::FnOnce::call_once::hf553deab5f0fef97 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5582f6770ab3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5582f6770ab3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x5582f676f869 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x5582f676f869 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5582f676f869 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5582f676f869 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5582f676f869 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5582f676f869 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x5582f676f869 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x5582f673ba1e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x5582f673ba1e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5582f6740f88 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5582f6740f88 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5582f6740f88 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5582f6740f88 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5582f6740f88 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x5582f67a4c43 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7ff0b602e609 - start_thread [INFO] [stdout] 42: 0x7ff0b5dfc163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- pf::test_struct_sizes stdout ---- [INFO] [stdout] sizeof(struct pfioc_table = 1104) ?= 1104 [INFO] [stdout] sizeof(struct pfr_table = 1064) ?= 1064 [INFO] [stdout] sizeof(struct pfioc_state_kill = 224) ?= 224 [INFO] [stdout] sizeof(psk.psk_af) = 2 [INFO] [stdout] thread 'pf::test_struct_sizes' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `1`, [INFO] [stdout] right: `2`', src/pf.rs:1794:5 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5582f679e14d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5582f679e14d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5582f679e14d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5582f679e14d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5582f67c0cbc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x5582f6799c21 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x5582f679fe95 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5582f679fe95 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5582f679fe95 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5582f679fb84 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5582f67a03e2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5582f67a02c7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5582f679e604 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5582f679fff9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5582f67213e3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5582f67bf888 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x5582f677bd4a - core::panicking::assert_failed::hf4c41d4bffe0fae5 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x5582f672df35 - pf_rs::pf::test_struct_sizes::he09c4d398780d62a [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1794:5 [INFO] [stdout] 18: 0x5582f672da3a - pf_rs::pf::test_struct_sizes::{{closure}}::h644b1e32032b4253 [INFO] [stdout] at /opt/rustwide/workdir/src/pf.rs:1777:1 [INFO] [stdout] 19: 0x5582f67337ee - core::ops::function::FnOnce::call_once::h9dee6bec03cfeed9 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5582f6770ab3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5582f6770ab3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x5582f676f869 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x5582f676f869 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5582f676f869 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5582f676f869 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5582f676f869 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5582f676f869 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x5582f676f869 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x5582f673ba1e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x5582f673ba1e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5582f6740f88 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5582f6740f88 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5582f6740f88 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5582f6740f88 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5582f6740f88 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5582f6740f88 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x5582f67a4c43 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x5582f67a4c43 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7ff0b602e609 - start_thread [INFO] [stdout] 42: 0x7ff0b5dfc163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] pf::test_kill_state [INFO] [stdout] pf::test_real_add [INFO] [stdout] pf::test_real_check [INFO] [stdout] pf::test_real_del [INFO] [stdout] pf::test_struct_sizes [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1389ce819d3b3be7e494955a5ef7004c318fcbeba55ebca1f81e8a1b47426792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1389ce819d3b3be7e494955a5ef7004c318fcbeba55ebca1f81e8a1b47426792", kill_on_drop: false }` [INFO] [stdout] 1389ce819d3b3be7e494955a5ef7004c318fcbeba55ebca1f81e8a1b47426792