[INFO] cloning repository https://github.com/varesa/rs-network-stack
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/varesa/rs-network-stack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvaresa%2Frs-network-stack", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvaresa%2Frs-network-stack'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 48d0cc59118c19121ae62a7a08e01ea891efd3d1
[INFO] checking varesa/rs-network-stack against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvaresa%2Frs-network-stack" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config
[INFO] started tweaking git repo https://github.com/varesa/rs-network-stack
[INFO] finished tweaking git repo https://github.com/varesa/rs-network-stack
[INFO] tweaked toml for git repo https://github.com/varesa/rs-network-stack written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/varesa/rs-network-stack on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/varesa/rs-network-stack already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 06f0bf2bc61a2bd63674aa48c9d5519eb903dec6fe2bed2c3b5f61ca24d3d2ef
[INFO] running `Command { std: "docker" "start" "-a" "06f0bf2bc61a2bd63674aa48c9d5519eb903dec6fe2bed2c3b5f61ca24d3d2ef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06f0bf2bc61a2bd63674aa48c9d5519eb903dec6fe2bed2c3b5f61ca24d3d2ef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06f0bf2bc61a2bd63674aa48c9d5519eb903dec6fe2bed2c3b5f61ca24d3d2ef", kill_on_drop: false }`
[INFO] [stdout] 06f0bf2bc61a2bd63674aa48c9d5519eb903dec6fe2bed2c3b5f61ca24d3d2ef
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 57032eeb532f8f422d80b628d97d127feaef7c3fa7ef6a3cdc6f162cba108c3e
[INFO] running `Command { std: "docker" "start" "-a" "57032eeb532f8f422d80b628d97d127feaef7c3fa7ef6a3cdc6f162cba108c3e", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.80
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling memoffset v0.5.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]     Checking tokio-sync v0.1.8
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling nix v0.11.1
[INFO] [stderr]    Compiling cc v1.0.62
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling heapless v0.5.6
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]     Checking scoped-tls v0.1.2
[INFO] [stderr]     Checking hash32 v0.1.1
[INFO] [stderr]     Checking bitflags v0.7.0
[INFO] [stderr]     Checking internet-checksum v0.2.0
[INFO] [stderr]     Checking tokio-executor v0.1.10
[INFO] [stderr]     Checking crossbeam-queue v0.2.3
[INFO] [stderr]     Checking crossbeam-deque v0.7.3
[INFO] [stderr]     Checking tokio-timer v0.2.13
[INFO] [stderr]     Checking tokio-current-thread v0.1.7
[INFO] [stderr]    Compiling tun-tap v0.1.2
[INFO] [stderr]     Checking generic-array v0.12.3
[INFO] [stderr]     Checking generic-array v0.13.2
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking net2 v0.2.35
[INFO] [stderr]     Checking parking_lot_core v0.6.2
[INFO] [stderr]     Checking nix v0.19.0
[INFO] [stderr]     Checking bytes v0.4.12
[INFO] [stderr]     Checking netdevice v0.1.1
[INFO] [stderr]     Checking tokio-threadpool v0.1.18
[INFO] [stderr]     Checking as-slice v0.1.4
[INFO] [stderr]     Checking parking_lot v0.9.0
[INFO] [stderr]     Checking mio v0.6.22
[INFO] [stderr]     Checking tokio-io v0.1.13
[INFO] [stderr]     Checking tokio-codec v0.1.2
[INFO] [stderr]     Checking tokio-fs v0.1.7
[INFO] [stderr]     Checking tokio-reactor v0.1.12
[INFO] [stderr]     Checking mio-uds v0.6.8
[INFO] [stderr]     Checking tokio-udp v0.1.6
[INFO] [stderr]     Checking tokio-uds v0.2.7
[INFO] [stderr]     Checking tokio-tcp v0.1.4
[INFO] [stderr]     Checking tokio v0.1.22
[INFO] [stderr]     Checking tokio-core v0.1.17
[INFO] [stderr]     Checking network_bridge v0.1.1
[INFO] [stderr]     Checking rs-network-stack v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/net.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     mut send: F
[INFO] [stdout]    |     ----^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `my_protocol_address`
[INFO] [stdout]   --> src/net.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |     my_protocol_address: &ProtocolAddress<'a>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_protocol_address`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `echo_request`
[INFO] [stdout]   --> src/net.rs:70:5
[INFO] [stdout]    |
[INFO] [stdout] 70 |     echo_request: &mut IcmpPacket<'a>,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_echo_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `send`
[INFO] [stdout]   --> src/net.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     mut send: F
[INFO] [stdout]    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/error.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 |     IoError(std::io::Error),
[INFO] [stdout]   |     ------- ^^^^^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     IoError(std::io::Error),
[INFO] [stdout] 3 +     IoError(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/error.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     NixError(nix::Error),
[INFO] [stdout]   |     -------- ^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Error` 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] 4 -     NixError(nix::Error),
[INFO] [stdout] 4 +     NixError(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_ping` is never used
[INFO] [stdout]   --> src/net.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn reply_ping<'a, F> (
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `ethertype` and `bytes` are never read
[INFO] [stdout]    --> src/protocols/ethernet.rs:150:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub struct UnknownPayload<'a> {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 150 |     ethertype: u16,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 151 |     bytes: &'a mut [u8],
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `UnknownPayload` 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 `options` is never read
[INFO] [stdout]    --> src/protocols/ipv4.rs:161:5
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub struct Ipv4Header<'a> {
[INFO] [stdout]     |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 161 |     options: Option<&'a mut [u8]>
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/main.rs:16:16
[INFO] [stdout]    |
[INFO] [stdout] 16 |         panic!(format!("Usage: {} <bridge name>", args.get(0).unwrap()));
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout]    = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 16 -         panic!(format!("Usage: {} <bridge name>", args.get(0).unwrap()));
[INFO] [stdout] 16 +         panic!("Usage: {} <bridge name>", args.get(0).unwrap());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/arp.rs:21:37
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn from(frame: &'a mut [u8]) -> ArpPacket {
[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]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn from(frame: &'a mut [u8]) -> ArpPacket<'a> {
[INFO] [stdout]    |                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]   --> src/protocols/arp.rs:25:42
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let htype = header[0..2].as_ref().clone().read_u16::<BigEndian>().unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]   --> src/protocols/arp.rs:26:42
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let ptype = header[2..4].as_ref().clone().read_u16::<BigEndian>().unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:20:48
[INFO] [stdout]    |
[INFO] [stdout] 20 |     fn generate_payload(ethertype: u16, bytes: &mut [u8]) -> Payload{
[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] 20 |     fn generate_payload(ethertype: u16, bytes: &mut [u8]) -> Payload<'_>{
[INFO] [stdout]    |                                                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:37:30
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn from_slice(frame: &mut [u8]) -> EthernetFrame {
[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] 37 |     pub fn from_slice(frame: &mut [u8]) -> EthernetFrame<'_> {
[INFO] [stdout]    |                                                         ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:55:33
[INFO] [stdout]    |
[INFO] [stdout] 55 |     pub fn uninitialized(frame: &mut [u8]) -> EthernetFrame {
[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] 55 |     pub fn uninitialized(frame: &mut [u8]) -> EthernetFrame<'_> {
[INFO] [stdout]    |                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]    --> src/protocols/ethernet.rs:129:14
[INFO] [stdout]     |
[INFO] [stdout] 129 |     ethertype.clone().read_u16::<NetworkEndian>().unwrap()
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/protocols/ethernet.rs:162:37
[INFO] [stdout]     |
[INFO] [stdout] 162 |     fn from(slice: &'a mut [u8]) -> MacAddress {
[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] 162 |     fn from(slice: &'a mut [u8]) -> MacAddress<'a> {
[INFO] [stdout]     |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ipv4.rs:16:37
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn from(slice: &'a mut [u8]) -> Ipv4Address {
[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] 16 |     fn from(slice: &'a mut [u8]) -> Ipv4Address<'a> {
[INFO] [stdout]    |                                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ipv4.rs:68:37
[INFO] [stdout]    |
[INFO] [stdout] 68 |     fn from(frame: &'a mut [u8]) -> Ipv4Packet {
[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] 68 |     fn from(frame: &'a mut [u8]) -> Ipv4Packet<'a> {
[INFO] [stdout]    |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/icmp.rs:19:37
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn from(frame: &'a mut [u8]) -> IcmpPacket {
[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] 19 |     fn from(frame: &'a mut [u8]) -> IcmpPacket<'a> {
[INFO] [stdout]    |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/net.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     mut send: F
[INFO] [stdout]    |     ----^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `my_protocol_address`
[INFO] [stdout]   --> src/net.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |     my_protocol_address: &ProtocolAddress<'a>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_protocol_address`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `echo_request`
[INFO] [stdout]   --> src/net.rs:70:5
[INFO] [stdout]    |
[INFO] [stdout] 70 |     echo_request: &mut IcmpPacket<'a>,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_echo_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `send`
[INFO] [stdout]   --> src/net.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     mut send: F
[INFO] [stdout]    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/error.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 |     IoError(std::io::Error),
[INFO] [stdout]   |     ------- ^^^^^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     IoError(std::io::Error),
[INFO] [stdout] 3 +     IoError(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/error.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     NixError(nix::Error),
[INFO] [stdout]   |     -------- ^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Error` 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] 4 -     NixError(nix::Error),
[INFO] [stdout] 4 +     NixError(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reply_ping` is never used
[INFO] [stdout]   --> src/net.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn reply_ping<'a, F> (
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `ethertype` and `bytes` are never read
[INFO] [stdout]    --> src/protocols/ethernet.rs:150:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub struct UnknownPayload<'a> {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 150 |     ethertype: u16,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 151 |     bytes: &'a mut [u8],
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `UnknownPayload` 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 `options` is never read
[INFO] [stdout]    --> src/protocols/ipv4.rs:161:5
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub struct Ipv4Header<'a> {
[INFO] [stdout]     |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 161 |     options: Option<&'a mut [u8]>
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/main.rs:16:16
[INFO] [stdout]    |
[INFO] [stdout] 16 |         panic!(format!("Usage: {} <bridge name>", args.get(0).unwrap()));
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout]    = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 16 -         panic!(format!("Usage: {} <bridge name>", args.get(0).unwrap()));
[INFO] [stdout] 16 +         panic!("Usage: {} <bridge name>", args.get(0).unwrap());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/arp.rs:21:37
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn from(frame: &'a mut [u8]) -> ArpPacket {
[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]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn from(frame: &'a mut [u8]) -> ArpPacket<'a> {
[INFO] [stdout]    |                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]   --> src/protocols/arp.rs:25:42
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let htype = header[0..2].as_ref().clone().read_u16::<BigEndian>().unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]   --> src/protocols/arp.rs:26:42
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let ptype = header[2..4].as_ref().clone().read_u16::<BigEndian>().unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:20:48
[INFO] [stdout]    |
[INFO] [stdout] 20 |     fn generate_payload(ethertype: u16, bytes: &mut [u8]) -> Payload{
[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] 20 |     fn generate_payload(ethertype: u16, bytes: &mut [u8]) -> Payload<'_>{
[INFO] [stdout]    |                                                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:37:30
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn from_slice(frame: &mut [u8]) -> EthernetFrame {
[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] 37 |     pub fn from_slice(frame: &mut [u8]) -> EthernetFrame<'_> {
[INFO] [stdout]    |                                                         ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ethernet.rs:55:33
[INFO] [stdout]    |
[INFO] [stdout] 55 |     pub fn uninitialized(frame: &mut [u8]) -> EthernetFrame {
[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] 55 |     pub fn uninitialized(frame: &mut [u8]) -> EthernetFrame<'_> {
[INFO] [stdout]    |                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&mut &[u8]` instead of cloning the inner type
[INFO] [stdout]    --> src/protocols/ethernet.rs:129:14
[INFO] [stdout]     |
[INFO] [stdout] 129 |     ethertype.clone().read_u16::<NetworkEndian>().unwrap()
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/protocols/ethernet.rs:162:37
[INFO] [stdout]     |
[INFO] [stdout] 162 |     fn from(slice: &'a mut [u8]) -> MacAddress {
[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] 162 |     fn from(slice: &'a mut [u8]) -> MacAddress<'a> {
[INFO] [stdout]     |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ipv4.rs:16:37
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn from(slice: &'a mut [u8]) -> Ipv4Address {
[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] 16 |     fn from(slice: &'a mut [u8]) -> Ipv4Address<'a> {
[INFO] [stdout]    |                                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/ipv4.rs:68:37
[INFO] [stdout]    |
[INFO] [stdout] 68 |     fn from(frame: &'a mut [u8]) -> Ipv4Packet {
[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] 68 |     fn from(frame: &'a mut [u8]) -> Ipv4Packet<'a> {
[INFO] [stdout]    |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/protocols/icmp.rs:19:37
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn from(frame: &'a mut [u8]) -> IcmpPacket {
[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] 19 |     fn from(frame: &'a mut [u8]) -> IcmpPacket<'a> {
[INFO] [stdout]    |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.62s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 10`
[INFO] running `Command { std: "docker" "inspect" "57032eeb532f8f422d80b628d97d127feaef7c3fa7ef6a3cdc6f162cba108c3e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "57032eeb532f8f422d80b628d97d127feaef7c3fa7ef6a3cdc6f162cba108c3e", kill_on_drop: false }`
[INFO] [stdout] 57032eeb532f8f422d80b628d97d127feaef7c3fa7ef6a3cdc6f162cba108c3e
