[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#6cbf54b1453b438241487f195740266bb9d8c8ba for pr-139587-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvaresa%2Frs-network-stack" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/varesa/rs-network-stack on toolchain 6cbf54b1453b438241487f195740266bb9d8c8ba [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [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" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe24ea4ec2b72d3f0f13f0467a8e98218a0f3df739ecb81a3e9cca9201db460b [INFO] running `Command { std: "docker" "start" "-a" "fe24ea4ec2b72d3f0f13f0467a8e98218a0f3df739ecb81a3e9cca9201db460b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe24ea4ec2b72d3f0f13f0467a8e98218a0f3df739ecb81a3e9cca9201db460b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe24ea4ec2b72d3f0f13f0467a8e98218a0f3df739ecb81a3e9cca9201db460b", kill_on_drop: false }` [INFO] [stdout] fe24ea4ec2b72d3f0f13f0467a8e98218a0f3df739ecb81a3e9cca9201db460b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6cbf54b1453b438241487f195740266bb9d8c8ba" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2bef501d8d600261a279768c2e065ffdcef06d30b9f44f660c703ea30b4fe920 [INFO] running `Command { std: "docker" "start" "-a" "2bef501d8d600261a279768c2e065ffdcef06d30b9f44f660c703ea30b4fe920", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking futures v0.1.30 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling heapless v0.5.6 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking hash32 v0.1.1 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking nix v0.19.0 [INFO] [stderr] Checking internet-checksum v0.2.0 [INFO] [stderr] Checking netdevice v0.1.1 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Compiling tun-tap v0.1.2 [INFO] [stderr] Checking as-slice v0.1.4 [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: elided lifetime has a name [INFO] [stdout] --> src/protocols/arp.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> From <&'a mut [u8]> for ArpPacket<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 21 | fn from(frame: &'a mut [u8]) -> ArpPacket { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ethernet.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 161 | impl<'a> From<&'a mut [u8]> for MacAddress<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 162 | fn from(slice: &'a mut [u8]) -> MacAddress { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ipv4.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> From<&'a mut [u8]> for Ipv4Address<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 16 | fn from(slice: &'a mut [u8]) -> Ipv4Address { [INFO] [stdout] | ^^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ipv4.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 67 | impl<'a> From <&'a mut [u8]> for Ipv4Packet<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 68 | fn from(frame: &'a mut [u8]) -> Ipv4Packet { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/icmp.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> From <&'a mut [u8]> for IcmpPacket<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 19 | fn from(frame: &'a mut [u8]) -> IcmpPacket { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/arp.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> From <&'a mut [u8]> for ArpPacket<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 21 | fn from(frame: &'a mut [u8]) -> ArpPacket { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ethernet.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 161 | impl<'a> From<&'a mut [u8]> for MacAddress<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 162 | fn from(slice: &'a mut [u8]) -> MacAddress { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ipv4.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> From<&'a mut [u8]> for Ipv4Address<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 16 | fn from(slice: &'a mut [u8]) -> Ipv4Address { [INFO] [stdout] | ^^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/ipv4.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 67 | impl<'a> From <&'a mut [u8]> for Ipv4Packet<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 68 | fn from(frame: &'a mut [u8]) -> Ipv4Packet { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/protocols/icmp.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> From <&'a mut [u8]> for IcmpPacket<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 19 | fn from(frame: &'a mut [u8]) -> IcmpPacket { [INFO] [stdout] | ^^^^^^^^^^ this elided lifetime gets resolved as `'a` [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)]` 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:9 [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: 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)]` on by default [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)]` 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: {} ", args.get(0).unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 [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)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 16 - panic!(format!("Usage: {} ", args.get(0).unwrap())); [INFO] [stdout] 16 + panic!("Usage: {} ", args.get(0).unwrap()); [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::().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::().unwrap(); [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::().unwrap() [INFO] [stdout] | ^^^^^^^^ [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)]` 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:9 [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: 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)]` on by default [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)]` 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: {} ", args.get(0).unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 [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)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 16 - panic!(format!("Usage: {} ", args.get(0).unwrap())); [INFO] [stdout] 16 + panic!("Usage: {} ", args.get(0).unwrap()); [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::().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::().unwrap(); [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::().unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.38s [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 1` [INFO] running `Command { std: "docker" "inspect" "2bef501d8d600261a279768c2e065ffdcef06d30b9f44f660c703ea30b4fe920", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bef501d8d600261a279768c2e065ffdcef06d30b9f44f660c703ea30b4fe920", kill_on_drop: false }` [INFO] [stdout] 2bef501d8d600261a279768c2e065ffdcef06d30b9f44f660c703ea30b4fe920