[INFO] cloning repository https://github.com/chris100904/ip-tcp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chris100904/ip-tcp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchris100904%2Fip-tcp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchris100904%2Fip-tcp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 916e39d00320cd57983e2d42bca016e737fcf1c3 [INFO] checking chris100904/ip-tcp against master#2c0f4860cc86e2354a55ea04e738848168435c90 for pr-149145 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchris100904%2Fip-tcp" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chris100904/ip-tcp [INFO] finished tweaking git repo https://github.com/chris100904/ip-tcp [INFO] tweaked toml for git repo https://github.com/chris100904/ip-tcp written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chris100904/ip-tcp 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/chris100904/ip-tcp 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 thiserror-impl v2.0.0 [INFO] [stderr] Downloaded thiserror v2.0.0 [INFO] [stderr] Downloaded fd-lock v4.0.2 [INFO] [stderr] Downloaded cc v1.1.35 [INFO] [stderr] Downloaded rustyline v14.0.0 [INFO] [stderr] Downloaded etherparse v0.16.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 7288c3c48f822d5651d13956ec0875a4d63ac427745d2ddff7556e967ad32ea5 [INFO] running `Command { std: "docker" "start" "-a" "7288c3c48f822d5651d13956ec0875a4d63ac427745d2ddff7556e967ad32ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7288c3c48f822d5651d13956ec0875a4d63ac427745d2ddff7556e967ad32ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7288c3c48f822d5651d13956ec0875a4d63ac427745d2ddff7556e967ad32ea5", kill_on_drop: false }` [INFO] [stdout] 7288c3c48f822d5651d13956ec0875a4d63ac427745d2ddff7556e967ad32ea5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 823c388581692d7ba0a800aaf708452308adca34be9f292359e732acb86c6297 [INFO] running `Command { std: "docker" "start" "-a" "823c388581692d7ba0a800aaf708452308adca34be9f292359e732acb86c6297", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling thiserror v2.0.0 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking etherparse v0.16.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking fd-lock v4.0.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustyline v14.0.0 [INFO] [stderr] Checking ip-epa127 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/api/socket.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, VecDeque}; [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 imports: `Receiver`, `Sender`, and `channel` [INFO] [stdout] --> src/api/socket.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CircularBuffer` [INFO] [stdout] --> src/api/socket.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use super::buffer::{CircularBuffer, ReceiveBuffer, SendBuffer}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/api/socket.rs:655:5 [INFO] [stdout] | [INFO] [stdout] 655 | 'outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `u32::MAX` [INFO] [stdout] --> src/api/tcp.rs:1:181 [INFO] [stdout] | [INFO] [stdout] 1 | ...r, Sender}, Arc, Condvar, Mutex}, time::{Instant, Duration}, u32::MAX}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/api/tcp.rs:7:78 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{error::TcpError, packet::{Packet, TcpFlags, TcpPacket}, socket::{self, Connection, TcpListener, TcpStream, RTEntry}, TCPC... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/api/socket.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, VecDeque}; [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 imports: `Receiver`, `Sender`, and `channel` [INFO] [stdout] --> src/api/socket.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CircularBuffer` [INFO] [stdout] --> src/api/socket.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use super::buffer::{CircularBuffer, ReceiveBuffer, SendBuffer}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/api/socket.rs:655:5 [INFO] [stdout] | [INFO] [stdout] 655 | 'outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `u32::MAX` [INFO] [stdout] --> src/api/tcp.rs:1:181 [INFO] [stdout] | [INFO] [stdout] 1 | ...r, Sender}, Arc, Condvar, Mutex}, time::{Instant, Duration}, u32::MAX}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/api/tcp.rs:7:78 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{error::TcpError, packet::{Packet, TcpFlags, TcpPacket}, socket::{self, Connection, TcpListener, TcpStream, RTEntry}, TCPC... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sent_bytes` [INFO] [stdout] --> src/api/network_interface.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | Ok(sent_bytes) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sent_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sent_bytes` [INFO] [stdout] --> src/api/network_interface.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | Ok(sent_bytes) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sent_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/api/tcp.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 185 | let result = stream.write(data); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/api/tcp.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 185 | let result = stream.write(data); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:314:15 [INFO] [stdout] | [INFO] [stdout] 314 | let mut socket; [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: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:314:15 [INFO] [stdout] | [INFO] [stdout] 314 | let mut socket; [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: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:345:15 [INFO] [stdout] | [INFO] [stdout] 345 | let mut opt_socket; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:374:15 [INFO] [stdout] | [INFO] [stdout] 374 | let mut opt_socket; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:378:26 [INFO] [stdout] | [INFO] [stdout] 378 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:402:40 [INFO] [stdout] | [INFO] [stdout] 402 | if let TcpSocket::Stream(mut stream) = socket.tcp_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:613:26 [INFO] [stdout] | [INFO] [stdout] 613 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:727:26 [INFO] [stdout] | [INFO] [stdout] 727 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:345:15 [INFO] [stdout] | [INFO] [stdout] 345 | let mut opt_socket; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:374:15 [INFO] [stdout] | [INFO] [stdout] 374 | let mut opt_socket; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:378:26 [INFO] [stdout] | [INFO] [stdout] 378 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:402:40 [INFO] [stdout] | [INFO] [stdout] 402 | if let TcpSocket::Stream(mut stream) = socket.tcp_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:613:26 [INFO] [stdout] | [INFO] [stdout] 613 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:727:26 [INFO] [stdout] | [INFO] [stdout] 727 | Ok(if let Some(mut socket) = opt_socket { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send_cv` [INFO] [stdout] --> src/api/tcp.rs:406:35 [INFO] [stdout] | [INFO] [stdout] 406 | let (send_lock, send_cv, send_write_cv) = &*stream.send_buffer; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send_cv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cvar` [INFO] [stdout] --> src/api/tcp.rs:520:28 [INFO] [stdout] | [INFO] [stdout] 520 | let (lock, cvar) = &*stream.status; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cvar` [INFO] [stdout] --> src/api/tcp.rs:734:28 [INFO] [stdout] | [INFO] [stdout] 734 | let (lock, cvar) = &*stream.status; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recv_cv` [INFO] [stdout] --> src/api/tcp.rs:742:33 [INFO] [stdout] | [INFO] [stdout] 742 | let (recv_lock, recv_cv) = &*stream.receive_buffer; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recv_cv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send_cv` [INFO] [stdout] --> src/api/tcp.rs:406:35 [INFO] [stdout] | [INFO] [stdout] 406 | let (send_lock, send_cv, send_write_cv) = &*stream.send_buffer; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_send_cv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cvar` [INFO] [stdout] --> src/api/tcp.rs:520:28 [INFO] [stdout] | [INFO] [stdout] 520 | let (lock, cvar) = &*stream.status; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cvar` [INFO] [stdout] --> src/api/tcp.rs:734:28 [INFO] [stdout] | [INFO] [stdout] 734 | let (lock, cvar) = &*stream.status; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recv_cv` [INFO] [stdout] --> src/api/tcp.rs:742:33 [INFO] [stdout] | [INFO] [stdout] 742 | let (recv_lock, recv_cv) = &*stream.receive_buffer; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recv_cv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/api/tcp.rs:914:44 [INFO] [stdout] | [INFO] [stdout] 914 | if let TcpError::ReadError { message } = e { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/api/tcp.rs:914:44 [INFO] [stdout] | [INFO] [stdout] 914 | if let TcpError::ReadError { message } = e { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:934:11 [INFO] [stdout] | [INFO] [stdout] 934 | let mut socket; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/tcp.rs:934:11 [INFO] [stdout] | [INFO] [stdout] 934 | let mut socket; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/api/tcp.rs:978:17 [INFO] [stdout] | [INFO] [stdout] 978 | let seq = status.seq_num; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/api/tcp.rs:978:17 [INFO] [stdout] | [INFO] [stdout] 978 | let seq = status.seq_num; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/api/parser.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl InterfaceConfig { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 141 | fn clone(&self) -> InterfaceConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/api/parser.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl InterfaceConfig { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 141 | fn clone(&self) -> InterfaceConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/api/packet.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | tcp_header.write(&mut result); // TODO [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = tcp_header.write(&mut result); // TODO [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/api/tcp.rs:783:7 [INFO] [stdout] | [INFO] [stdout] 783 | self.tcp_send_ip.send((packet, dst_ip)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 783 | let _ = self.tcp_send_ip.send((packet, dst_ip)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/api/packet.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | tcp_header.write(&mut result); // TODO [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = tcp_header.write(&mut result); // TODO [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/api/tcp.rs:783:7 [INFO] [stdout] | [INFO] [stdout] 783 | self.tcp_send_ip.send((packet, dst_ip)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 783 | let _ = self.tcp_send_ip.send((packet, dst_ip)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/bin/vhost.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 99 | Ok((packet, src_ip)) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/vhost.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 104 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/vhost.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | Ok(mut safe_host) => { [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: `e` [INFO] [stdout] --> src/bin/vhost.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_ip` [INFO] [stdout] --> src/bin/vhost.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 99 | Ok((packet, src_ip)) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/vhost.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 104 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/vhost.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | Ok(mut safe_host) => { [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: `e` [INFO] [stdout] --> src/bin/vhost.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.57s [INFO] running `Command { std: "docker" "inspect" "823c388581692d7ba0a800aaf708452308adca34be9f292359e732acb86c6297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "823c388581692d7ba0a800aaf708452308adca34be9f292359e732acb86c6297", kill_on_drop: false }` [INFO] [stdout] 823c388581692d7ba0a800aaf708452308adca34be9f292359e732acb86c6297