[INFO] cloning repository https://github.com/eLopez6/transport-analysis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eLopez6/transport-analysis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeLopez6%2Ftransport-analysis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeLopez6%2Ftransport-analysis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a31fc1e9e069cccea5877bf7909e86572b2b36d8 [INFO] building eLopez6/transport-analysis against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FeLopez6%2Ftransport-analysis" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eLopez6/transport-analysis on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eLopez6/transport-analysis [INFO] finished tweaking git repo https://github.com/eLopez6/transport-analysis [INFO] tweaked toml for git repo https://github.com/eLopez6/transport-analysis written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eLopez6/transport-analysis already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitvec v0.19.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b88f88236beb883ad3d878a29aecb4b8b6942f1ebbee78339b1fc8862459d1eb [INFO] running `Command { std: "docker" "start" "-a" "b88f88236beb883ad3d878a29aecb4b8b6942f1ebbee78339b1fc8862459d1eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b88f88236beb883ad3d878a29aecb4b8b6942f1ebbee78339b1fc8862459d1eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b88f88236beb883ad3d878a29aecb4b8b6942f1ebbee78339b1fc8862459d1eb", kill_on_drop: false }` [INFO] [stdout] b88f88236beb883ad3d878a29aecb4b8b6942f1ebbee78339b1fc8862459d1eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ccd712f1c0d521befd3a3be7e63080fd0142f850edcb8df3f83be71d60451c4 [INFO] running `Command { std: "docker" "start" "-a" "8ccd712f1c0d521befd3a3be7e63080fd0142f850edcb8df3f83be71d60451c4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling tap v1.0.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling funty v1.0.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling bitvec v0.19.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling transport-analysis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `filename_str` [INFO] [stdout] --> src/main.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | fn connection_summaries(filename_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename_str` [INFO] [stdout] --> src/main.rs:237:20 [INFO] [stdout] | [INFO] [stdout] 237 | fn roundtrip_times(filename_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT_MEMBERS` is never used [INFO] [stdout] --> src/main.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const ENDPOINT_MEMBERS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ignored` is never read [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct PktMetaInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | ignored: u16 // unused, but kept for explaning an extra read from the file [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PktMetaInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | EthPacket(Etherhdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 47 | EthPacket(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | IpPacket (Etherhdr, Iphdr), [INFO] [stdout] | -------- ^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 48 | IpPacket ((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | UdpPacket(Etherhdr, Iphdr, Udphdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 | UdpPacket((), Iphdr, Udphdr), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | TcpPacket(Etherhdr, Iphdr, Tcphdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 50 | TcpPacket((), Iphdr, Tcphdr), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum PacketType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 46 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct PktInfo { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 55 | meta: PktMetaInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PktInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_unknown` is never used [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl PktInfo { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 62 | fn new_unknown(meta: PktMetaInfo) -> PktInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConnInfo` is never constructed [INFO] [stdout] --> src/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct TcpConnInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `src_adr` and `dest_adr` are never read [INFO] [stdout] --> src/headers.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Etherhdr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub src_adr : [u8; MAC_LENGTH], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | pub dest_adr: [u8; MAC_LENGTH], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Etherhdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/headers.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Iphdr { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 41 | pub version : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub ihl : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | pub dscp : BitArray(6)]>, // 6 bits [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub ecn : BitArray(2)]>, // 2 bits [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | pub tot_len : u16, [INFO] [stdout] 46 | pub identification: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub flags : BitArray(3)]>, // 3 bits [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | pub frag_offset : BitArray(13)]>, // 13 bits [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | pub ttl : u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | pub protocol : u8, [INFO] [stdout] 51 | pub hdr_checksum : u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub options : Options, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | pub head_length : u16, [INFO] [stdout] 56 | pub malformed : bool // this is true when ihl*4 != the length of the packet [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Iphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `checksum` is never read [INFO] [stdout] --> src/headers.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct Udphdr { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 139 | pub checksum: u16 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Udphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `malformed_header` is never used [INFO] [stdout] --> src/headers.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl Udphdr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 142 | [INFO] [stdout] 143 | pub fn malformed_header() -> Udphdr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/headers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct Tcphdr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | pub data_off : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 169 | pub reserved : BitArray(3)]>, // 3 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | pub flags : BitArray(9)]>, // 9 bits [INFO] [stdout] | ^^^^^ [INFO] [stdout] 171 | pub window_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 172 | pub checksum : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 173 | pub urg_pointer: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 174 | pub options : Options, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 175 | pub head_length: u16, [INFO] [stdout] 176 | pub malformed : bool // this is true when the data_off*4 != the length of the packet [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tcphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.61s [INFO] running `Command { std: "docker" "inspect" "8ccd712f1c0d521befd3a3be7e63080fd0142f850edcb8df3f83be71d60451c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ccd712f1c0d521befd3a3be7e63080fd0142f850edcb8df3f83be71d60451c4", kill_on_drop: false }` [INFO] [stdout] 8ccd712f1c0d521befd3a3be7e63080fd0142f850edcb8df3f83be71d60451c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 170233eb0b8298f0305be4f8ac10ae26a450d8ce1cda2521c5212750ad836364 [INFO] running `Command { std: "docker" "start" "-a" "170233eb0b8298f0305be4f8ac10ae26a450d8ce1cda2521c5212750ad836364", kill_on_drop: false }` [INFO] [stderr] Compiling transport-analysis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `filename_str` [INFO] [stdout] --> src/main.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | fn connection_summaries(filename_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename_str` [INFO] [stdout] --> src/main.rs:237:20 [INFO] [stdout] | [INFO] [stdout] 237 | fn roundtrip_times(filename_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT_MEMBERS` is never used [INFO] [stdout] --> src/main.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const ENDPOINT_MEMBERS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ignored` is never read [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct PktMetaInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | ignored: u16 // unused, but kept for explaning an extra read from the file [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PktMetaInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | EthPacket(Etherhdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 47 | EthPacket(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | IpPacket (Etherhdr, Iphdr), [INFO] [stdout] | -------- ^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 48 | IpPacket ((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | UdpPacket(Etherhdr, Iphdr, Udphdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 | UdpPacket((), Iphdr, Udphdr), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | TcpPacket(Etherhdr, Iphdr, Tcphdr), [INFO] [stdout] | --------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 50 | TcpPacket((), Iphdr, Tcphdr), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum PacketType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 46 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PacketType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct PktInfo { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 55 | meta: PktMetaInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PktInfo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_unknown` is never used [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl PktInfo { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 62 | fn new_unknown(meta: PktMetaInfo) -> PktInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpConnInfo` is never constructed [INFO] [stdout] --> src/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct TcpConnInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct ConnectionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `src_adr` and `dest_adr` are never read [INFO] [stdout] --> src/headers.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Etherhdr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub src_adr : [u8; MAC_LENGTH], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | pub dest_adr: [u8; MAC_LENGTH], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Etherhdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/headers.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Iphdr { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 41 | pub version : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub ihl : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | pub dscp : BitArray(6)]>, // 6 bits [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub ecn : BitArray(2)]>, // 2 bits [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | pub tot_len : u16, [INFO] [stdout] 46 | pub identification: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub flags : BitArray(3)]>, // 3 bits [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | pub frag_offset : BitArray(13)]>, // 13 bits [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | pub ttl : u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | pub protocol : u8, [INFO] [stdout] 51 | pub hdr_checksum : u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub options : Options, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | pub head_length : u16, [INFO] [stdout] 56 | pub malformed : bool // this is true when ihl*4 != the length of the packet [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Iphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `checksum` is never read [INFO] [stdout] --> src/headers.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct Udphdr { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 139 | pub checksum: u16 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Udphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `malformed_header` is never used [INFO] [stdout] --> src/headers.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl Udphdr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 142 | [INFO] [stdout] 143 | pub fn malformed_header() -> Udphdr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/headers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct Tcphdr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | pub data_off : BitArray(4)]>, // 4 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 169 | pub reserved : BitArray(3)]>, // 3 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | pub flags : BitArray(9)]>, // 9 bits [INFO] [stdout] | ^^^^^ [INFO] [stdout] 171 | pub window_size: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 172 | pub checksum : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 173 | pub urg_pointer: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 174 | pub options : Options, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 175 | pub head_length: u16, [INFO] [stdout] 176 | pub malformed : bool // this is true when the data_off*4 != the length of the packet [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tcphdr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "170233eb0b8298f0305be4f8ac10ae26a450d8ce1cda2521c5212750ad836364", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "170233eb0b8298f0305be4f8ac10ae26a450d8ce1cda2521c5212750ad836364", kill_on_drop: false }` [INFO] [stdout] 170233eb0b8298f0305be4f8ac10ae26a450d8ce1cda2521c5212750ad836364