[INFO] fetching crate rust_lldp 0.1.1... [INFO] testing rust_lldp-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate rust_lldp 0.1.1 into /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_lldp 0.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded widestring v0.2.2 [INFO] [stderr] Downloaded pcap v0.9.2 [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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c0b61f31ba9f497f8260b16c1043ab48d5abe6186182c9cea3b3174b83ac3dd [INFO] running `Command { std: "docker" "start" "-a" "9c0b61f31ba9f497f8260b16c1043ab48d5abe6186182c9cea3b3174b83ac3dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c0b61f31ba9f497f8260b16c1043ab48d5abe6186182c9cea3b3174b83ac3dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c0b61f31ba9f497f8260b16c1043ab48d5abe6186182c9cea3b3174b83ac3dd", kill_on_drop: false }` [INFO] [stdout] 9c0b61f31ba9f497f8260b16c1043ab48d5abe6186182c9cea3b3174b83ac3dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5dd096335c5f06b13cbd19384c85bed9358edb092cb57b34a1423eb7ef62ef07 [INFO] running `Command { std: "docker" "start" "-a" "5dd096335c5f06b13cbd19384c85bed9358edb092cb57b34a1423eb7ef62ef07", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling strsim v0.5.2 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling pcap v0.4.2 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling pcap v0.9.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling docopt v0.6.86 [INFO] [stderr] Compiling rshark v0.0.1 [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 7.75s [INFO] running `Command { std: "docker" "inspect" "5dd096335c5f06b13cbd19384c85bed9358edb092cb57b34a1423eb7ef62ef07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd096335c5f06b13cbd19384c85bed9358edb092cb57b34a1423eb7ef62ef07", kill_on_drop: false }` [INFO] [stdout] 5dd096335c5f06b13cbd19384c85bed9358edb092cb57b34a1423eb7ef62ef07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7444de797e6a00fa4f74658ae4746403711513e6ea2c2b81a278075d561fcdc7 [INFO] running `Command { std: "docker" "start" "-a" "7444de797e6a00fa4f74658ae4746403711513e6ea2c2b81a278075d561fcdc7", 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.74s [INFO] running `Command { std: "docker" "inspect" "7444de797e6a00fa4f74658ae4746403711513e6ea2c2b81a278075d561fcdc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7444de797e6a00fa4f74658ae4746403711513e6ea2c2b81a278075d561fcdc7", kill_on_drop: false }` [INFO] [stdout] 7444de797e6a00fa4f74658ae4746403711513e6ea2c2b81a278075d561fcdc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d15c39df3ee7332dae908c415cadb5aaf4b69168087fb406c318896689d4daa7 [INFO] running `Command { std: "docker" "start" "-a" "d15c39df3ee7332dae908c415cadb5aaf4b69168087fb406c318896689d4daa7", 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-692697e2dff95124) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::it_works ... ok [INFO] [stderr] Doc-tests rust_lldp [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] [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" "d15c39df3ee7332dae908c415cadb5aaf4b69168087fb406c318896689d4daa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d15c39df3ee7332dae908c415cadb5aaf4b69168087fb406c318896689d4daa7", kill_on_drop: false }` [INFO] [stdout] d15c39df3ee7332dae908c415cadb5aaf4b69168087fb406c318896689d4daa7