[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/47dd7c90b93629ca61d041d753111bd24c1d60cc against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbreed%2Fpunnel" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/breed/punnel on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-2-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b88cf7aefbf76562453230a7429c0e018ef89573faf9a87f8e08aad6ef261873 [INFO] running `Command { std: "docker" "start" "-a" "b88cf7aefbf76562453230a7429c0e018ef89573faf9a87f8e08aad6ef261873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b88cf7aefbf76562453230a7429c0e018ef89573faf9a87f8e08aad6ef261873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b88cf7aefbf76562453230a7429c0e018ef89573faf9a87f8e08aad6ef261873", kill_on_drop: false }` [INFO] [stdout] b88cf7aefbf76562453230a7429c0e018ef89573faf9a87f8e08aad6ef261873 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d06b0f409268f573178fcf5cad7c49d640c6b2529efa68a175d68c954d1681d9 [INFO] running `Command { std: "docker" "start" "-a" "d06b0f409268f573178fcf5cad7c49d640c6b2529efa68a175d68c954d1681d9", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking libc v0.2.18 [INFO] [stderr] Checking cfg-if v0.1.0 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking log v0.3.6 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking lazycell v0.4.0 [INFO] [stderr] Checking scoped-tls v0.1.0 [INFO] [stderr] Checking unicode-segmentation v1.0.1 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Checking vec_map v0.6.0 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking futures v0.1.7 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking net2 v0.2.26 [INFO] [stderr] Checking term_size v0.2.1 [INFO] [stderr] Checking clap v2.20.0 [INFO] [stderr] Compiling nix v0.7.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` and `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: 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: 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | type BoxedPunnelFrameSink = Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Codec` and `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:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | type BoxedPunnelFrameStream = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | type BoxedPunnelFrameStream = Box>; [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | type BoxedPunnelFrameSink = Box>; [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | type BoxedPunnelFrameStream = Box>; [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 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: `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] = note: `#[warn(unused_variables)]` on by default [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: `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: `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] = note: `#[warn(unused_variables)]` on by default [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: `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] [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: `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: `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: `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: 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] [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: `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: 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: `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: `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: `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: 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: 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: 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: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: `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: struct `ToBeAcked` is never constructed [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 `Connection` is never constructed [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToBeAcked` is never constructed [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 `ConnectionRegistry` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct ConnectionRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `register`, `add`, `get_connection`, and `close` are never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl ConnectionRegistry { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 42 | // for use by the server to add a connection [INFO] [stdout] 43 | fn register(&mut self, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn add(&mut self, id: u32, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn get_connection(&self, id: u32) -> Option<&Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn close(&mut self, id: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectedConnection` is never constructed [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct ConnectedConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `tunnel` are never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl ConnectedConnection { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 87 | fn new(registry: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn tunnel(self) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tunnel_sink` is never read [INFO] [stdout] --> src/main.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 134 | struct IncomingConnection { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 135 | tunnel_sink: BoxedPunnelFrameSink, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionRegistry` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct ConnectionRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `register`, `add`, `get_connection`, and `close` are never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl ConnectionRegistry { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 42 | // for use by the server to add a connection [INFO] [stdout] 43 | fn register(&mut self, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn add(&mut self, id: u32, tcp_stream: TcpStream) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn get_connection(&self, id: u32) -> Option<&Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn close(&mut self, id: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectedConnection` is never constructed [INFO] [stdout] --> src/main.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct ConnectedConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `tunnel` are never used [INFO] [stdout] --> src/main.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl ConnectedConnection { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 87 | fn new(registry: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn tunnel(self) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tunnel_sink` is never read [INFO] [stdout] --> src/main.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 134 | struct IncomingConnection { [INFO] [stdout] | ------------------ field in this struct [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: streams do nothing unless polled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 141 | let _ = self.tunnel_stream.and_then(|p| { [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: streams do nothing unless polled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 141 | let _ = self.tunnel_stream.and_then(|p| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 161 | .and_then(move |listener| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 162 | Ok(listener.incoming().for_each(|(cnxn, addr)| { [INFO] [stdout] | ________________^ [INFO] [stdout] 163 | | let (sink, stream) = cnxn.framed(PunnelFrameCodec).split(); [INFO] [stdout] 164 | | IncomingConnection { [INFO] [stdout] 165 | | tunnel_sink: Box::new(sink), [INFO] [stdout] ... | [INFO] [stdout] 168 | | Ok(()) [INFO] [stdout] 169 | | })) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 161 | .and_then(move |listener| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 162 | Ok(listener.incoming().for_each(|(cnxn, addr)| { [INFO] [stdout] | ________________^ [INFO] [stdout] 163 | | let (sink, stream) = cnxn.framed(PunnelFrameCodec).split(); [INFO] [stdout] 164 | | IncomingConnection { [INFO] [stdout] 165 | | tunnel_sink: Box::new(sink), [INFO] [stdout] ... | [INFO] [stdout] 168 | | Ok(()) [INFO] [stdout] 169 | | })) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 206 | _ => { let _ = app.print_help(); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 206 | _ => { let _ = app.print_help(); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `punnel` (bin "punnel" test) due to 2 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `punnel` (bin "punnel") due to 2 previous errors; 27 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d06b0f409268f573178fcf5cad7c49d640c6b2529efa68a175d68c954d1681d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06b0f409268f573178fcf5cad7c49d640c6b2529efa68a175d68c954d1681d9", kill_on_drop: false }` [INFO] [stdout] d06b0f409268f573178fcf5cad7c49d640c6b2529efa68a175d68c954d1681d9