[INFO] cloning repository https://github.com/breed/punnel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/breed/punnel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbreed%2Fpunnel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbreed%2Fpunnel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 47dd7c90b93629ca61d041d753111bd24c1d60cc [INFO] checking breed/punnel against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbreed%2Fpunnel" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/breed/punnel on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/breed/punnel [INFO] finished tweaking git repo https://github.com/breed/punnel [INFO] tweaked toml for git repo https://github.com/breed/punnel written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/breed/punnel already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76d1f4cc834c721762879eb9d773f8d124be32f3c606c77cd78d31b675603f27 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "76d1f4cc834c721762879eb9d773f8d124be32f3c606c77cd78d31b675603f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76d1f4cc834c721762879eb9d773f8d124be32f3c606c77cd78d31b675603f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76d1f4cc834c721762879eb9d773f8d124be32f3c606c77cd78d31b675603f27", kill_on_drop: false }` [INFO] [stdout] 76d1f4cc834c721762879eb9d773f8d124be32f3c606c77cd78d31b675603f27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05bf267f195086e67e8055a0b7a707fc7d0babebd3d5e6cc48de8894f3a12e8a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "05bf267f195086e67e8055a0b7a707fc7d0babebd3d5e6cc48de8894f3a12e8a", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.18 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Checking vec_map v0.6.0 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking unicode-segmentation v1.0.1 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking futures v0.1.7 [INFO] [stderr] Compiling nix v0.7.0 [INFO] [stderr] Checking net2 v0.2.26 [INFO] [stderr] Checking term_size v0.2.1 [INFO] [stderr] Checking clap v2.20.0 [INFO] [stderr] Checking mio v0.6.2 [INFO] [stderr] Checking tokio-core v0.1.3 [INFO] [stderr] Checking punnel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Shutdown` [INFO] [stdout] --> src/main.rs:11:52 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::{Ipv6Addr, SocketAddr, SocketAddrV6, Shutdown}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Codec`, `Framed` [INFO] [stdout] --> src/main.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_core::io::{Io, Codec, Framed}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | type BoxedPunnelFrameSink = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Sink` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | type BoxedPunnelFrameStream = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shutdown` [INFO] [stdout] --> src/main.rs:11:52 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::{Ipv6Addr, SocketAddr, SocketAddrV6, Shutdown}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Codec`, `Framed` [INFO] [stdout] --> src/main.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_core::io::{Io, Codec, Framed}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | type BoxedPunnelFrameSink = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Sink` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | type BoxedPunnelFrameStream = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Sink}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_port` [INFO] [stdout] --> src/main.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | fn do_client(local_port: SocketAddr, server_host_port: SocketAddr) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_host_port` [INFO] [stdout] --> src/main.rs:132:38 [INFO] [stdout] | [INFO] [stdout] 132 | fn do_client(local_port: SocketAddr, server_host_port: SocketAddr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_host_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:162:53 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(listener.incoming().for_each(|(cnxn, addr)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connect_to_port` [INFO] [stdout] --> src/main.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | fn do_server(connect_to_port: SocketAddr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connect_to_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_matches` [INFO] [stdout] --> src/main.rs:197:25 [INFO] [stdout] | [INFO] [stdout] 197 | ("client", Some(sub_matches)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_matches` [INFO] [stdout] --> src/main.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | ("server", Some(sub_matches)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnxn` [INFO] [stdout] --> src/main.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(cnxn) = self.connections.remove(&id) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cnxn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_stream` [INFO] [stdout] --> src/main.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let write_stream = cnxn.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_stream` [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let read_stream = cnxn.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | }).and_then(|(cnxn, seq)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let stream = self.tunnel_stream.and_then(|connect_frame| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | if let PunnelFrame::Connect{id, seq} = p { [INFO] [stdout] | ^^^ help: try ignoring the field: `seq: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let mut local_port: SocketAddr = SocketAddr::V6(SocketAddrV6::new(get_inaddr_any(), 0, 0, 0)); [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: struct is never constructed: `ToBeAcked` [INFO] [stdout] --> src/main.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ToBeAcked { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Connection` [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ConnectionRegistry` [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct ConnectionRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register` [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn register(&mut self, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn add(&mut self, id: u32, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_connection` [INFO] [stdout] --> src/main.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn get_connection(&self, id: u32) -> Option<&Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `close` [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn close(&mut self, id: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ConnectedConnection` [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct ConnectedConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn new(registry: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tunnel` [INFO] [stdout] --> src/main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn tunnel(self) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tunnel_sink` [INFO] [stdout] --> src/main.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | tunnel_sink: BoxedPunnelFrameSink, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Sink}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_port` [INFO] [stdout] --> src/main.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | fn do_client(local_port: SocketAddr, server_host_port: SocketAddr) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_host_port` [INFO] [stdout] --> src/main.rs:132:38 [INFO] [stdout] | [INFO] [stdout] 132 | fn do_client(local_port: SocketAddr, server_host_port: SocketAddr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_host_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:162:53 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(listener.incoming().for_each(|(cnxn, addr)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connect_to_port` [INFO] [stdout] --> src/main.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | fn do_server(connect_to_port: SocketAddr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connect_to_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_matches` [INFO] [stdout] --> src/main.rs:197:25 [INFO] [stdout] | [INFO] [stdout] 197 | ("client", Some(sub_matches)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_matches` [INFO] [stdout] --> src/main.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | ("server", Some(sub_matches)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnxn` [INFO] [stdout] --> src/main.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(cnxn) = self.connections.remove(&id) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cnxn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write_stream` [INFO] [stdout] --> src/main.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let write_stream = cnxn.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_stream` [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let read_stream = cnxn.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | }).and_then(|(cnxn, seq)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let stream = self.tunnel_stream.and_then(|connect_frame| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/main.rs:142:45 [INFO] [stdout] | [INFO] [stdout] 142 | if let PunnelFrame::Connect{id, seq} = p { [INFO] [stdout] | ^^^ help: try ignoring the field: `seq: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let mut local_port: SocketAddr = SocketAddr::V6(SocketAddrV6::new(get_inaddr_any(), 0, 0, 0)); [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: struct is never constructed: `ToBeAcked` [INFO] [stdout] --> src/main.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ToBeAcked { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Connection` [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ConnectionRegistry` [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct ConnectionRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register` [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn register(&mut self, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn add(&mut self, id: u32, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_connection` [INFO] [stdout] --> src/main.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn get_connection(&self, id: u32) -> Option<&Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `close` [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn close(&mut self, id: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ConnectedConnection` [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct ConnectedConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn new(registry: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tunnel` [INFO] [stdout] --> src/main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn tunnel(self) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tunnel_sink` [INFO] [stdout] --> src/main.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | tunnel_sink: BoxedPunnelFrameSink, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `futures::stream::AndThen` that must be used [INFO] [stdout] --> src/main.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | / self.tunnel_stream.and_then(|p| { [INFO] [stdout] 142 | | if let PunnelFrame::Connect{id, seq} = p { [INFO] [stdout] 143 | | if id == 0 { [INFO] [stdout] 144 | | // create a new session [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: streams do nothing unless polled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | _ => { app.print_help(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `futures::stream::AndThen` that must be used [INFO] [stdout] --> src/main.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | / self.tunnel_stream.and_then(|p| { [INFO] [stdout] 142 | | if let PunnelFrame::Connect{id, seq} = p { [INFO] [stdout] 143 | | if id == 0 { [INFO] [stdout] 144 | | // create a new session [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: streams do nothing unless polled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | _ => { app.print_help(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.83s [INFO] running `Command { std: "docker" "inspect" "05bf267f195086e67e8055a0b7a707fc7d0babebd3d5e6cc48de8894f3a12e8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05bf267f195086e67e8055a0b7a707fc7d0babebd3d5e6cc48de8894f3a12e8a", kill_on_drop: false }` [INFO] [stdout] 05bf267f195086e67e8055a0b7a707fc7d0babebd3d5e6cc48de8894f3a12e8a