[INFO] cloning repository https://github.com/abdul2801/sniffer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abdul2801/sniffer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabdul2801%2Fsniffer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabdul2801%2Fsniffer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ebd6dfa3046f35676dfeeae76281f98e50474db [INFO] checking abdul2801/sniffer against master#2c0f4860cc86e2354a55ea04e738848168435c90 for pr-149145 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabdul2801%2Fsniffer" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/abdul2801/sniffer [INFO] finished tweaking git repo https://github.com/abdul2801/sniffer [INFO] tweaked toml for git repo https://github.com/abdul2801/sniffer written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/abdul2801/sniffer on toolchain 2c0f4860cc86e2354a55ea04e738848168435c90 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c0f4860cc86e2354a55ea04e738848168435c90" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/abdul2801/sniffer 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" "+2c0f4860cc86e2354a55ea04e738848168435c90" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arp-parse v0.1.0 [INFO] [stderr] Downloaded pcap v2.2.0 [INFO] [stderr] Downloaded syn v2.0.82 [INFO] [stderr] Downloaded etherparse v0.16.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+2c0f4860cc86e2354a55ea04e738848168435c90" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bba0289968e65055fb03a854fb9eb79ad2f66f8d87973dbded46a3a9f571b463 [INFO] running `Command { std: "docker" "start" "-a" "bba0289968e65055fb03a854fb9eb79ad2f66f8d87973dbded46a3a9f571b463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bba0289968e65055fb03a854fb9eb79ad2f66f8d87973dbded46a3a9f571b463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bba0289968e65055fb03a854fb9eb79ad2f66f8d87973dbded46a3a9f571b463", kill_on_drop: false }` [INFO] [stdout] bba0289968e65055fb03a854fb9eb79ad2f66f8d87973dbded46a3a9f571b463 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+2c0f4860cc86e2354a55ea04e738848168435c90" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 805cac1a9389fdec224b70940e31647eeb20dec310faeba9101c1bbdb1dc0f8e [INFO] running `Command { std: "docker" "start" "-a" "805cac1a9389fdec224b70940e31647eeb20dec310faeba9101c1bbdb1dc0f8e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Checking arp-parse v0.1.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Checking etherparse v0.16.0 [INFO] [stderr] Compiling pcap v2.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking errno v0.2.8 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking sniffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Ethernet2Header` [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use etherparse::{Ethernet2Header, SlicedPacket}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Linktype` [INFO] [stdout] --> src/pcap_init.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use pcap::{Capture, Device, Linktype}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string::ParseError` [INFO] [stdout] --> src/packets/icmp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Icmpv4Type` [INFO] [stdout] --> src/packets/icmp.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use etherparse::{Icmpv4Header, Icmpv4Type}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pcap::Error` [INFO] [stdout] --> src/packets/icmp.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pcap::Error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/icmp.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `icmp::ICMP` [INFO] [stdout] --> src/packets/ether.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{arp, icmp::ICMP, Ipv4::{self}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/ether.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/Ipv4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ipv4` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ipv4 { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Ipv4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `icmp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | icmp(ICMP), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Icmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `tcp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | tcp, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Tcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `udp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | udp, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Udp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4HeaderSlice`, `SlicedPacket`, and `ipv4` [INFO] [stdout] --> src/packets/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{ipv4, LenError}, EtherType, Ethernet2Header, Ethernet2Slice, IpNumber, Ipv4Header, Ipv4HeaderSlice, LinkSlice, SlicedPacket}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pcap::Linktype` [INFO] [stdout] --> src/packets/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use pcap::Linktype; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ethernet2Header` [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use etherparse::{Ethernet2Header, SlicedPacket}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Linktype` [INFO] [stdout] --> src/pcap_init.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use pcap::{Capture, Device, Linktype}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string::ParseError` [INFO] [stdout] --> src/packets/icmp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Icmpv4Type` [INFO] [stdout] --> src/packets/icmp.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use etherparse::{Icmpv4Header, Icmpv4Type}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pcap::Error` [INFO] [stdout] --> src/packets/icmp.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pcap::Error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/icmp.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `icmp::ICMP` [INFO] [stdout] --> src/packets/ether.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{arp, icmp::ICMP, Ipv4::{self}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/ether.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/packets/Ipv4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ipv4` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ipv4 { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Ipv4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `icmp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | icmp(ICMP), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Icmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `tcp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | tcp, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Tcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `udp` should have an upper camel case name [INFO] [stdout] --> src/packets/Ipv4.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | udp, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Udp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4HeaderSlice`, `SlicedPacket`, and `ipv4` [INFO] [stdout] --> src/packets/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{ipv4, LenError}, EtherType, Ethernet2Header, Ethernet2Slice, IpNumber, Ipv4Header, Ipv4HeaderSlice, LinkSlice, SlicedPacket}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pcap::Linktype` [INFO] [stdout] --> src/packets/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use pcap::Linktype; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/packets/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let header = Ethernet2Header::from_slice(ð.slice())?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Ipv4` should have a snake case name [INFO] [stdout] --> src/packets/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Ipv4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `ipv4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/packets/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let header = Ethernet2Header::from_slice(ð.slice())?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Ipv4` should have a snake case name [INFO] [stdout] --> src/packets/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Ipv4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `ipv4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.71s [INFO] running `Command { std: "docker" "inspect" "805cac1a9389fdec224b70940e31647eeb20dec310faeba9101c1bbdb1dc0f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "805cac1a9389fdec224b70940e31647eeb20dec310faeba9101c1bbdb1dc0f8e", kill_on_drop: false }` [INFO] [stdout] 805cac1a9389fdec224b70940e31647eeb20dec310faeba9101c1bbdb1dc0f8e