[INFO] cloning repository https://github.com/maromcik/packet_rewriter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maromcik/packet_rewriter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaromcik%2Fpacket_rewriter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaromcik%2Fpacket_rewriter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dac07d69f81e4693b31b9d869bb027539ff390fd [INFO] checking maromcik/packet_rewriter against master#c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2 for pr-142712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaromcik%2Fpacket_rewriter" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/maromcik/packet_rewriter [INFO] finished tweaking git repo https://github.com/maromcik/packet_rewriter [INFO] tweaked toml for git repo https://github.com/maromcik/packet_rewriter written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maromcik/packet_rewriter on toolchain c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maromcik/packet_rewriter 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" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gat-std-proc v0.1.0 [INFO] [stderr] Downloaded gat-std v0.1.1 [INFO] [stderr] Downloaded pcap v2.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 343dd13ce8456e67302d77da17c3372fc1ed01c186456c43559a78cddb78ee58 [INFO] running `Command { std: "docker" "start" "-a" "343dd13ce8456e67302d77da17c3372fc1ed01c186456c43559a78cddb78ee58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "343dd13ce8456e67302d77da17c3372fc1ed01c186456c43559a78cddb78ee58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "343dd13ce8456e67302d77da17c3372fc1ed01c186456c43559a78cddb78ee58", kill_on_drop: false }` [INFO] [stdout] 343dd13ce8456e67302d77da17c3372fc1ed01c186456c43559a78cddb78ee58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f22e6b55fe5a969fc894e524c3df6d9c689581c8492bfeda48c21e199ec5c8bd [INFO] running `Command { std: "docker" "start" "-a" "f22e6b55fe5a969fc894e524c3df6d9c689581c8492bfeda48c21e199ec5c8bd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking no-std-net v0.6.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking pnet_base v0.35.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking pnet_macros_support v0.35.0 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling pnet v0.35.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking pnet_sys v0.35.0 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking clap_builder v4.5.32 [INFO] [stderr] Checking errno v0.2.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking dns-parser v0.8.0 (/opt/rustwide/workdir/dns-parser) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> dns-parser/src/enums.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | 6...15 => Reserved(code), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/name.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | try!(fmt.write_char('.')); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/name.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | try!(fmt.write_str(from_utf8(&data[pos+1..end]).unwrap())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/name.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | try!(fmt.write_char('.')); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | let header = try!(Header::parse(data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let name = try!(Name::scan(&data[offset..], data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 24 | let qtype = try!(QueryType::parse( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:28:44 [INFO] [stdout] | [INFO] [stdout] 28 | let (prefer_unicast, qclass) = try!(parse_qclass_code( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | answers.push(try!(parse_record(data, &mut offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | nameservers.push(try!(parse_record(data, &mut offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | opt = Some(try!(parse_opt_record(data, &mut offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | additional.push(try!(parse_record(data, &mut offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let qclass = try!(QueryClass::parse(qclass_code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | let cls = try!(Class::parse(class_code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | let name = try!(Name::scan(&data[*offset..], data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | let typ = try!(Type::parse( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | let (multicast_unique, cls) = try!(parse_class_code(class_code)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | let data = try!(RData::parse(typ, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | let typ = try!(Type::parse( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/parser.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | let data = try!(RData::parse(typ, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/rdata/soa.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | let primary_name_server = try!(Name::scan(rdata, original)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> dns-parser/src/rdata/soa.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | let mailbox = try!(Name::scan(&rdata[pos..], original)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> dns-parser/src/parser.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn parse(data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | pub fn parse(data: &[u8]) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ipnetwork v0.20.0 [INFO] [stderr] Checking pnet_datalink v0.35.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pnet_macros v0.35.0 [INFO] [stderr] Compiling pcap v2.2.0 [INFO] [stderr] Checking pnet_packet v0.35.0 [INFO] [stderr] Checking clap v4.5.32 [INFO] [stderr] Compiling gat-std-proc v0.1.0 [INFO] [stderr] Checking gat-std v0.1.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking pnet_transport v0.35.0 [INFO] [stderr] Checking packet_rewriter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/network/capture.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UdpPacket` [INFO] [stdout] --> src/network/packet.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | use pnet::packet::udp::{MutableUdpPacket, UdpPacket}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/network/packet.rs:533:41 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn rewrite(&mut self) -> Option<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 533 - pub fn rewrite(&mut self) -> Option<(Vec)> { [INFO] [stdout] 533 + pub fn rewrite(&mut self) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/network/capture.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UdpPacket` [INFO] [stdout] --> src/network/packet.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | use pnet::packet::udp::{MutableUdpPacket, UdpPacket}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/network/packet.rs:533:41 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn rewrite(&mut self) -> Option<(Vec)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 533 - pub fn rewrite(&mut self) -> Option<(Vec)> { [INFO] [stdout] 533 + pub fn rewrite(&mut self) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_dns_packet` [INFO] [stdout] --> src/network/rewrite.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let new_dns_packet = dns_packet.application_packet_type.rewrite()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_dns_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PacketRewriteError` is never constructed [INFO] [stdout] --> src/network/error.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum NetworkErrorKind { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | PacketRewriteError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rx` is never read [INFO] [stdout] --> src/network/interface.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NetworkChannel { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 14 | pub rx: Box, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_payload`, `get_mut_packet`, `get_packet`, and `set_payload` are never used [INFO] [stdout] --> src/network/packet.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait NetworkPacket { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 34 | fn get_payload(&self) -> &[u8]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 35 | fn get_mut_packet(&mut self) -> &mut [u8]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | fn get_packet(&self) -> &[u8]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | fn set_payload(&mut self, payload: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NetworkApplicationPacket` is never used [INFO] [stdout] --> src/network/packet.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait NetworkApplicationPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_dns_packet` [INFO] [stdout] --> src/network/rewrite.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let new_dns_packet = dns_packet.application_packet_type.rewrite()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_dns_packet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_eth`, `new_vlan`, `get_ether_type`, and `get_length` are never used [INFO] [stdout] --> src/network/packet.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl<'a> DataLinkPacket<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn new_eth(packet: MutableEthernetPacket<'a>) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_vlan(packet: MutableVlanPacket<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn get_ether_type(&'a self) -> EtherType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_next_header_protocol` is never used [INFO] [stdout] --> src/network/packet.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 331 | impl<'a> IpPacket<'a> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 332 | pub fn get_next_header_protocol(&self) -> IpNextHeaderProtocol { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/network/packet.rs:156:50 [INFO] [stdout] | [INFO] [stdout] 156 | fn get_ip_packet(ether_type: EtherType, payload: &mut [u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | fn get_ip_packet(ether_type: EtherType, payload: &mut [u8]) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/network/packet.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn unpack_vlan(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 207 | pub fn unpack_vlan(&mut self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PacketRewriteError` is never constructed [INFO] [stdout] --> src/network/error.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum NetworkErrorKind { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | PacketRewriteError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rx` is never read [INFO] [stdout] --> src/network/interface.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NetworkChannel { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 14 | pub rx: Box, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_payload`, `get_mut_packet`, `get_packet`, and `set_payload` are never used [INFO] [stdout] --> src/network/packet.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait NetworkPacket { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 34 | fn get_payload(&self) -> &[u8]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 35 | fn get_mut_packet(&mut self) -> &mut [u8]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | fn get_packet(&self) -> &[u8]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | fn set_payload(&mut self, payload: &[u8]); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NetworkApplicationPacket` is never used [INFO] [stdout] --> src/network/packet.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait NetworkApplicationPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_eth`, `new_vlan`, `get_ether_type`, and `get_length` are never used [INFO] [stdout] --> src/network/packet.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl<'a> DataLinkPacket<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn new_eth(packet: MutableEthernetPacket<'a>) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_vlan(packet: MutableVlanPacket<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn get_ether_type(&'a self) -> EtherType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_next_header_protocol` is never used [INFO] [stdout] --> src/network/packet.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 331 | impl<'a> IpPacket<'a> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 332 | pub fn get_next_header_protocol(&self) -> IpNextHeaderProtocol { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/network/packet.rs:156:50 [INFO] [stdout] | [INFO] [stdout] 156 | fn get_ip_packet(ether_type: EtherType, payload: &mut [u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | fn get_ip_packet(ether_type: EtherType, payload: &mut [u8]) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/network/packet.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn unpack_vlan(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 207 | pub fn unpack_vlan(&mut self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.50s [INFO] running `Command { std: "docker" "inspect" "f22e6b55fe5a969fc894e524c3df6d9c689581c8492bfeda48c21e199ec5c8bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f22e6b55fe5a969fc894e524c3df6d9c689581c8492bfeda48c21e199ec5c8bd", kill_on_drop: false }` [INFO] [stdout] f22e6b55fe5a969fc894e524c3df6d9c689581c8492bfeda48c21e199ec5c8bd