[INFO] cloning repository https://github.com/RavuAlHemio/dns-sniff-exporter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RavuAlHemio/dns-sniff-exporter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRavuAlHemio%2Fdns-sniff-exporter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRavuAlHemio%2Fdns-sniff-exporter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 68ebe0f3e97bc95b6e351e227624e687cc342d04 [INFO] testing RavuAlHemio/dns-sniff-exporter against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRavuAlHemio%2Fdns-sniff-exporter" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RavuAlHemio/dns-sniff-exporter [INFO] finished tweaking git repo https://github.com/RavuAlHemio/dns-sniff-exporter [INFO] tweaked toml for git repo https://github.com/RavuAlHemio/dns-sniff-exporter written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RavuAlHemio/dns-sniff-exporter on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RavuAlHemio/dns-sniff-exporter 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-appender v0.2.2 [INFO] [stderr] Downloaded macaddr v1.0.1 [INFO] [stderr] Downloaded from-to-repr v0.1.2 [INFO] [stderr] Downloaded pcap v0.10.1 [INFO] [stderr] Downloaded clap v3.2.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de14dfbf6fbcfff199d6503acaa320631cc12692fd700cfa2fabbd05b5ebca3a [INFO] running `Command { std: "docker" "start" "-a" "de14dfbf6fbcfff199d6503acaa320631cc12692fd700cfa2fabbd05b5ebca3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de14dfbf6fbcfff199d6503acaa320631cc12692fd700cfa2fabbd05b5ebca3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de14dfbf6fbcfff199d6503acaa320631cc12692fd700cfa2fabbd05b5ebca3a", kill_on_drop: false }` [INFO] [stdout] de14dfbf6fbcfff199d6503acaa320631cc12692fd700cfa2fabbd05b5ebca3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31122c4ba77e236c68777e2ba827d24880e87b1a578f89ef0e357130125a8464 [INFO] running `Command { std: "docker" "start" "-a" "31122c4ba77e236c68777e2ba827d24880e87b1a578f89ef0e357130125a8464", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling aho-corasick v0.7.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling thiserror v1.0.35 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Compiling os_str_bytes v6.3.0 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling futures-io v0.3.24 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling time v0.3.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.48 [INFO] [stderr] Compiling chrono v0.4.22 [INFO] [stderr] Compiling macaddr v1.0.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling pcap v0.10.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling thiserror-impl v1.0.35 [INFO] [stderr] Compiling clap_derive v3.2.18 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling from-to-repr v0.1.2 [INFO] [stderr] Compiling clap v3.2.20 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling tracing-subscriber v0.3.15 [INFO] [stderr] Compiling trust-dns-proto v0.22.0 [INFO] [stderr] Compiling tracing-appender v0.2.2 [INFO] [stderr] Compiling dns-sniff-exporter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `hexdump` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn hexdump(bs: &[u8]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `destination_address` is never used [INFO] [stdout] --> src/ip.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 219 | impl IpHeader { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn destination_address(&self) -> IpAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROTO_TCP` is never used [INFO] [stdout] --> src/ip.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | pub const PROTO_TCP: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpHeader` is never constructed [INFO] [stdout] --> src/tcp_udp.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TcpHeader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_take` is never used [INFO] [stdout] --> src/tcp_udp.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TcpHeader { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 25 | pub fn try_take<'b, 'h>(bytes: &'b [u8], pseudo_header: &'h [u8]) -> PacketDissection<'b, Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ethernet.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ethernet.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ip.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ip.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.45s [INFO] running `Command { std: "docker" "inspect" "31122c4ba77e236c68777e2ba827d24880e87b1a578f89ef0e357130125a8464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31122c4ba77e236c68777e2ba827d24880e87b1a578f89ef0e357130125a8464", kill_on_drop: false }` [INFO] [stdout] 31122c4ba77e236c68777e2ba827d24880e87b1a578f89ef0e357130125a8464 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66344ffaec8d4d84f96edb6b79983ac0ae28fcfafe5f1fa12c675270d87801bd [INFO] running `Command { std: "docker" "start" "-a" "66344ffaec8d4d84f96edb6b79983ac0ae28fcfafe5f1fa12c675270d87801bd", kill_on_drop: false }` [INFO] [stderr] Compiling dns-sniff-exporter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `hexdump` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn hexdump(bs: &[u8]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `destination_address` is never used [INFO] [stdout] --> src/ip.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 219 | impl IpHeader { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn destination_address(&self) -> IpAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROTO_TCP` is never used [INFO] [stdout] --> src/ip.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | pub const PROTO_TCP: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpHeader` is never constructed [INFO] [stdout] --> src/tcp_udp.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TcpHeader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_take` is never used [INFO] [stdout] --> src/tcp_udp.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TcpHeader { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 25 | pub fn try_take<'b, 'h>(bytes: &'b [u8], pseudo_header: &'h [u8]) -> PacketDissection<'b, Self> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ethernet.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ethernet.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ip.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ip.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.65s [INFO] running `Command { std: "docker" "inspect" "66344ffaec8d4d84f96edb6b79983ac0ae28fcfafe5f1fa12c675270d87801bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66344ffaec8d4d84f96edb6b79983ac0ae28fcfafe5f1fa12c675270d87801bd", kill_on_drop: false }` [INFO] [stdout] 66344ffaec8d4d84f96edb6b79983ac0ae28fcfafe5f1fa12c675270d87801bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dc47b8be1d13ecf8126c7d5a6dfacc4a056e49d860028190f94b1bc4e95d887f [INFO] running `Command { std: "docker" "start" "-a" "dc47b8be1d13ecf8126c7d5a6dfacc4a056e49d860028190f94b1bc4e95d887f", kill_on_drop: false }` [INFO] [stderr] warning: function `hexdump` is never used [INFO] [stderr] --> src/main.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | fn hexdump(bs: &[u8]) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `destination_address` is never used [INFO] [stderr] --> src/ip.rs:241:12 [INFO] [stderr] | [INFO] [stderr] 219 | impl IpHeader { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 241 | pub fn destination_address(&self) -> IpAddr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PROTO_TCP` is never used [INFO] [stderr] --> src/ip.rs:258:11 [INFO] [stderr] | [INFO] [stderr] 258 | pub const PROTO_TCP: u8 = 6; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TcpHeader` is never constructed [INFO] [stderr] --> src/tcp_udp.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct TcpHeader { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `try_take` is never used [INFO] [stderr] --> src/tcp_udp.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl TcpHeader { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 25 | pub fn try_take<'b, 'h>(bytes: &'b [u8], pseudo_header: &'h [u8]) -> PacketDissection<'b, Self> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/ethernet.rs:16:28 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 16 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/ethernet.rs:48:28 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 48 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/ip.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 25 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/ip.rs:140:28 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 140 | pub fn try_take(bytes: &[u8]) -> PacketDissection<'_, Self> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `dns-sniff-exporter` (bin "dns-sniff-exporter" test) generated 9 warnings (run `cargo fix --bin "dns-sniff-exporter" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/dns_sniff_exporter-db03da0424a8126a) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test ip::tests::test_internet_checksum ... ok [INFO] [stdout] test ip::tests::test_ones_complement_add ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dc47b8be1d13ecf8126c7d5a6dfacc4a056e49d860028190f94b1bc4e95d887f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc47b8be1d13ecf8126c7d5a6dfacc4a056e49d860028190f94b1bc4e95d887f", kill_on_drop: false }` [INFO] [stdout] dc47b8be1d13ecf8126c7d5a6dfacc4a056e49d860028190f94b1bc4e95d887f