[INFO] fetching crate rust_lldp 0.1.1... [INFO] checking rust_lldp-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate rust_lldp 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate rust_lldp 0.1.1 [INFO] finished tweaking crates.io crate rust_lldp 0.1.1 [INFO] tweaked toml for crates.io crate rust_lldp 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_lldp 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 86 packages to latest compatible versions [INFO] [stderr] Adding pcap v0.9.2 (available: v2.3.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pcap v0.9.2 [INFO] [stderr] Downloaded byteorder v0.3.13 [INFO] [stderr] Downloaded pcap v0.4.2 [INFO] [stderr] Downloaded rshark v0.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae1ad1aa66180236d19f0f1812865de0cbd2a0d8b5225fe68a3e41a9309b10ed [INFO] running `Command { std: "docker" "start" "-a" "ae1ad1aa66180236d19f0f1812865de0cbd2a0d8b5225fe68a3e41a9309b10ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae1ad1aa66180236d19f0f1812865de0cbd2a0d8b5225fe68a3e41a9309b10ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae1ad1aa66180236d19f0f1812865de0cbd2a0d8b5225fe68a3e41a9309b10ed", kill_on_drop: false }` [INFO] [stdout] ae1ad1aa66180236d19f0f1812865de0cbd2a0d8b5225fe68a3e41a9309b10ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 979bc9034f827b3306394a2ccdf181003e4c8433c2c1f468df0da9754c115dc4 [INFO] running `Command { std: "docker" "start" "-a" "979bc9034f827b3306394a2ccdf181003e4c8433c2c1f468df0da9754c115dc4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking strsim v0.5.2 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking byteorder v0.3.13 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking pcap v0.4.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking errno v0.2.8 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking docopt v0.6.86 [INFO] [stderr] Checking rshark v0.0.1 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pcap v0.9.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking rust_lldp v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `get_value` is never used [INFO] [stdout] --> src/layer2/ethernet.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl EtherType { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_value(t: EtherType) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vlan` is never read [INFO] [stdout] --> src/layer2/ethernet.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Ethernet<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | vlan: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_type` is never used [INFO] [stdout] --> src/tlv/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl TlvType { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 35 | fn get_type(t: u8) -> TlvType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `management_string_length` is never read [INFO] [stdout] --> src/tlv/management_address/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ManagementAddressTLV<'a> { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | management_string_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ManagementAddressTLV` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Other(bool), [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 7 - Other(bool), [INFO] [stdout] 7 + Other(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | Repeater(bool), [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 8 - Repeater(bool), [INFO] [stdout] 8 + Repeater(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Bridge(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 9 - Bridge(bool), [INFO] [stdout] 9 + Bridge(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | WLANAccessPoint(bool), [INFO] [stdout] | --------------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 10 - WLANAccessPoint(bool), [INFO] [stdout] 10 + WLANAccessPoint(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Router(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 11 - Router(bool), [INFO] [stdout] 11 + Router(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | Telephone(bool), [INFO] [stdout] | --------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 12 - Telephone(bool), [INFO] [stdout] 12 + Telephone(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | DOCSIS(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 13 - DOCSIS(bool), [INFO] [stdout] 13 + DOCSIS(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | StationOnly(bool), [INFO] [stdout] | ----------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 14 - StationOnly(bool), [INFO] [stdout] 14 + StationOnly(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/layer2/ethernet.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(bytes: &[u8]) -> Ethernet { [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] 44 | pub fn new(bytes: &[u8]) -> Ethernet<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/layer2/lldp.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU { [INFO] [stdout] | ^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/port_id/mod.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV { [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] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/ttl/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV { [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] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/chassis_id/mod.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV { [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] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/port_description/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/unknown/mod.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV { [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] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/management_address/mod.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV { [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] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_name/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_description/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities { [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] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_value` is never used [INFO] [stdout] --> src/layer2/ethernet.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl EtherType { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_value(t: EtherType) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vlan` is never read [INFO] [stdout] --> src/layer2/ethernet.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Ethernet<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | vlan: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_type` is never used [INFO] [stdout] --> src/tlv/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl TlvType { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 35 | fn get_type(t: u8) -> TlvType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `management_string_length` is never read [INFO] [stdout] --> src/tlv/management_address/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ManagementAddressTLV<'a> { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | management_string_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ManagementAddressTLV` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Other(bool), [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 7 - Other(bool), [INFO] [stdout] 7 + Other(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | Repeater(bool), [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 8 - Repeater(bool), [INFO] [stdout] 8 + Repeater(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Bridge(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 9 - Bridge(bool), [INFO] [stdout] 9 + Bridge(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | WLANAccessPoint(bool), [INFO] [stdout] | --------------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 10 - WLANAccessPoint(bool), [INFO] [stdout] 10 + WLANAccessPoint(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Router(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 11 - Router(bool), [INFO] [stdout] 11 + Router(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | Telephone(bool), [INFO] [stdout] | --------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 12 - Telephone(bool), [INFO] [stdout] 12 + Telephone(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | DOCSIS(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 13 - DOCSIS(bool), [INFO] [stdout] 13 + DOCSIS(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | StationOnly(bool), [INFO] [stdout] | ----------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Capabilities` has a derived impl for the trait `Debug`, 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] 14 - StationOnly(bool), [INFO] [stdout] 14 + StationOnly(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/layer2/ethernet.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn new(bytes: &[u8]) -> Ethernet { [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] 44 | pub fn new(bytes: &[u8]) -> Ethernet<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/layer2/lldp.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU { [INFO] [stdout] | ^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/port_id/mod.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV { [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] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/ttl/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV { [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] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/chassis_id/mod.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV { [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] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/port_description/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/unknown/mod.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV { [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] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/management_address/mod.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV { [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] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_name/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_description/mod.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tlv/system_capabilities/mod.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities { [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] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.82s [INFO] running `Command { std: "docker" "inspect" "979bc9034f827b3306394a2ccdf181003e4c8433c2c1f468df0da9754c115dc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "979bc9034f827b3306394a2ccdf181003e4c8433c2c1f468df0da9754c115dc4", kill_on_drop: false }` [INFO] [stdout] 979bc9034f827b3306394a2ccdf181003e4c8433c2c1f468df0da9754c115dc4