[INFO] fetching crate rust_lldp 0.1.1... [INFO] testing rust_lldp-0.1.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-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 caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 88 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded net2 v0.2.39 [INFO] [stderr] Downloaded strsim v0.5.2 [INFO] [stderr] Downloaded pcap v0.4.2 [INFO] [stderr] Downloaded byteorder v0.3.13 [INFO] [stderr] Downloaded errno v0.2.8 [INFO] [stderr] Downloaded pcap v0.9.2 [INFO] [stderr] Downloaded docopt v0.6.86 [INFO] [stderr] Downloaded widestring v0.2.2 [INFO] [stderr] Downloaded libloading v0.6.7 [INFO] [stderr] Downloaded libc v0.1.12 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bff32e735958e970743099e13619292ec156b702e154136acbe008e8493b83c2 [INFO] running `Command { std: "docker" "start" "-a" "bff32e735958e970743099e13619292ec156b702e154136acbe008e8493b83c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bff32e735958e970743099e13619292ec156b702e154136acbe008e8493b83c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bff32e735958e970743099e13619292ec156b702e154136acbe008e8493b83c2", kill_on_drop: false }` [INFO] [stdout] bff32e735958e970743099e13619292ec156b702e154136acbe008e8493b83c2 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3f3c3ad521a09ef64b6cd224a022cde2f1cbf6416d7d33a51dca70489dd8e7cb [INFO] running `Command { std: "docker" "start" "-a" "3f3c3ad521a09ef64b6cd224a022cde2f1cbf6416d7d33a51dca70489dd8e7cb", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling strsim v0.5.2 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling pcap v0.4.2 [INFO] [stderr] Compiling pcap v0.9.2 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling docopt v0.6.86 [INFO] [stderr] Compiling rshark v0.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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:36 [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 6.12s [INFO] running `Command { std: "docker" "inspect" "3f3c3ad521a09ef64b6cd224a022cde2f1cbf6416d7d33a51dca70489dd8e7cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f3c3ad521a09ef64b6cd224a022cde2f1cbf6416d7d33a51dca70489dd8e7cb", kill_on_drop: false }` [INFO] [stdout] 3f3c3ad521a09ef64b6cd224a022cde2f1cbf6416d7d33a51dca70489dd8e7cb [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac597477d246b26f3d49806322f09d8f07a297378e3e10018f0642802cbe5a6e [INFO] running `Command { std: "docker" "start" "-a" "ac597477d246b26f3d49806322f09d8f07a297378e3e10018f0642802cbe5a6e", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) 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:36 [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] Compiling 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)]` (part of `#[warn(unused)]`) 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:36 [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 `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "ac597477d246b26f3d49806322f09d8f07a297378e3e10018f0642802cbe5a6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac597477d246b26f3d49806322f09d8f07a297378e3e10018f0642802cbe5a6e", kill_on_drop: false }` [INFO] [stdout] ac597477d246b26f3d49806322f09d8f07a297378e3e10018f0642802cbe5a6e [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b66a61cee60f3426516137e1a6a85b3f8eb15e02a1f54a21f369d2e2585350a3 [INFO] running `Command { std: "docker" "start" "-a" "b66a61cee60f3426516137e1a6a85b3f8eb15e02a1f54a21f369d2e2585350a3", kill_on_drop: false }` [INFO] [stderr] warning: associated function `get_value` is never used [INFO] [stderr] --> src/layer2/ethernet.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 13 | impl EtherType { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 21 | fn get_value(t: EtherType) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `vlan` is never read [INFO] [stderr] --> src/layer2/ethernet.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct Ethernet<'a> { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 38 | vlan: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `get_type` is never used [INFO] [stderr] --> src/tlv/mod.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 34 | impl TlvType { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 35 | fn get_type(t: u8) -> TlvType { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `management_string_length` is never read [INFO] [stderr] --> src/tlv/management_address/mod.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct ManagementAddressTLV<'a> { [INFO] [stderr] | -------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 25 | management_string_length: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ManagementAddressTLV` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | Other(bool), [INFO] [stderr] | ----- ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 7 - Other(bool), [INFO] [stderr] 7 + Other(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | Repeater(bool), [INFO] [stderr] | -------- ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 8 - Repeater(bool), [INFO] [stderr] 8 + Repeater(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | Bridge(bool), [INFO] [stderr] | ------ ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 9 - Bridge(bool), [INFO] [stderr] 9 + Bridge(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | WLANAccessPoint(bool), [INFO] [stderr] | --------------- ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 10 - WLANAccessPoint(bool), [INFO] [stderr] 10 + WLANAccessPoint(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | Router(bool), [INFO] [stderr] | ------ ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 11 - Router(bool), [INFO] [stderr] 11 + Router(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:12:15 [INFO] [stderr] | [INFO] [stderr] 12 | Telephone(bool), [INFO] [stderr] | --------- ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 12 - Telephone(bool), [INFO] [stderr] 12 + Telephone(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | DOCSIS(bool), [INFO] [stderr] | ------ ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 13 - DOCSIS(bool), [INFO] [stderr] 13 + DOCSIS(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:14:17 [INFO] [stderr] | [INFO] [stderr] 14 | StationOnly(bool), [INFO] [stderr] | ----------- ^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Capabilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 14 - StationOnly(bool), [INFO] [stderr] 14 + StationOnly(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/layer2/ethernet.rs:44:19 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn new(bytes: &[u8]) -> Ethernet { [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] 44 | pub fn new(bytes: &[u8]) -> Ethernet<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/layer2/lldp.rs:15:36 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU { [INFO] [stderr] | -- ^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 15 | pub fn new(bytes: &'a [u8]) -> LLDPU<'a> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/port_id/mod.rs:15:38 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV { [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] 15 | pub fn new(length: TlvLength, value: &TlvValue) -> PortTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/ttl/mod.rs:13:38 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV { [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] 13 | pub fn new(length: TlvLength, value: &TlvValue) -> TimeToLiveTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/chassis_id/mod.rs:32:38 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV { [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] 32 | pub fn new(length: TlvLength, value: & TlvValue) -> ChassisIdTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/port_description/mod.rs:12:38 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> PortDescriptionTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/unknown/mod.rs:12:52 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV { [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] 12 | pub fn new(tlv_type: u8, length: TlvLength, value: &TlvValue) -> UnknownTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/management_address/mod.rs:30:38 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV { [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] 30 | pub fn new(length: TlvLength, value: &TlvValue) -> ManagementAddressTLV<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/system_name/mod.rs:12:38 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemName<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/system_description/mod.rs:12:38 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription { [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] 12 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemDescription<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tlv/system_capabilities/mod.rs:32:38 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities { [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] 32 | pub fn new(length: TlvLength, value: &TlvValue) -> SystemCapabilities<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `rust_lldp` (lib) generated 23 warnings (run `cargo fix --lib -p rust_lldp` to apply 11 suggestions) [INFO] [stderr] warning: `rust_lldp` (lib test) generated 23 warnings (23 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_lldp-1d8dd1c20b147838) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Doc-tests rust_lldp [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b66a61cee60f3426516137e1a6a85b3f8eb15e02a1f54a21f369d2e2585350a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b66a61cee60f3426516137e1a6a85b3f8eb15e02a1f54a21f369d2e2585350a3", kill_on_drop: false }` [INFO] [stdout] b66a61cee60f3426516137e1a6a85b3f8eb15e02a1f54a21f369d2e2585350a3