[INFO] cloning repository https://github.com/ShibbyContinuum/mio_pong [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShibbyContinuum/mio_pong" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShibbyContinuum%2Fmio_pong", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShibbyContinuum%2Fmio_pong'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f2dfc467c4b8ed2e47f1df9770eed7bc795bf496 [INFO] testing ShibbyContinuum/mio_pong against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShibbyContinuum%2Fmio_pong" "/workspace/builds/worker-99/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-99/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShibbyContinuum/mio_pong on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ShibbyContinuum/mio_pong [INFO] finished tweaking git repo https://github.com/ShibbyContinuum/mio_pong [INFO] tweaked toml for git repo https://github.com/ShibbyContinuum/mio_pong written to /workspace/builds/worker-99/source/Cargo.toml [INFO] crate git repo https://github.com/ShibbyContinuum/mio_pong already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3d8b32c84ee08e4a28c01dba0e5c61fea23ac90ca7e20f656167c231504a632 [INFO] running `Command { std: "docker" "start" "-a" "b3d8b32c84ee08e4a28c01dba0e5c61fea23ac90ca7e20f656167c231504a632", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3d8b32c84ee08e4a28c01dba0e5c61fea23ac90ca7e20f656167c231504a632", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3d8b32c84ee08e4a28c01dba0e5c61fea23ac90ca7e20f656167c231504a632", kill_on_drop: false }` [INFO] [stdout] b3d8b32c84ee08e4a28c01dba0e5c61fea23ac90ca7e20f656167c231504a632 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60552e05c97fbb91724ab21895b864d7d9edd53609a175c899ec3b389e125794 [INFO] running `Command { std: "docker" "start" "-a" "60552e05c97fbb91724ab21895b864d7d9edd53609a175c899ec3b389e125794", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.7 [INFO] [stderr] Compiling libc v0.2.13 [INFO] [stderr] Compiling cfg-if v0.1.0 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling slab v0.1.3 [INFO] [stderr] Compiling log v0.3.6 [INFO] [stderr] Compiling bytes v0.3.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Compiling net2 v0.2.25 [INFO] [stderr] Compiling nix v0.5.1 [INFO] [stderr] Compiling time v0.1.35 [INFO] [stderr] Compiling miow v0.1.2 [INFO] [stderr] Compiling mio v0.5.1 [INFO] [stderr] Compiling mio_pong v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mio::util::Slab` [INFO] [stdout] --> src/client/ping.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mio::util::Slab; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/client/ping.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_LINE` [INFO] [stdout] --> src/client/ping.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_LINE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `socket` [INFO] [stdout] --> src/client/ping.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | socket: TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `token` [INFO] [stdout] --> src/client/ping.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | token: Token, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/client/ping.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: State, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/client/ping.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn new(socket: TcpStream, token: Token) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ready` [INFO] [stdout] --> src/client/ping.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn ready(&mut self, event_loop: &mut EventLoop, events: EventSet) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/client/ping.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn read(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/client/ping.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn write(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reregister` [INFO] [stdout] --> src/client/ping.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_closed` [INFO] [stdout] --> src/client/ping.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | fn is_closed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Reading` [INFO] [stdout] --> src/client/ping.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | Reading(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/client/ping.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | Writing(Take>>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Closed` [INFO] [stdout] --> src/client/ping.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | Closed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_read_buf` [INFO] [stdout] --> src/client/ping.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn mut_read_buf(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_buf` [INFO] [stdout] --> src/client/ping.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn read_buf(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_buf` [INFO] [stdout] --> src/client/ping.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn write_buf(&self) -> &Take>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_write_buf` [INFO] [stdout] --> src/client/ping.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn mut_write_buf(&mut self) -> &mut Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_writing` [INFO] [stdout] --> src/client/ping.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn try_transition_to_writing(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_reading` [INFO] [stdout] --> src/client/ping.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | fn try_transition_to_reading(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `event_set` [INFO] [stdout] --> src/client/ping.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | fn event_set(&self) -> EventSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_read_buf` [INFO] [stdout] --> src/client/ping.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | fn unwrap_read_buf(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_write_buf` [INFO] [stdout] --> src/client/ping.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn unwrap_write_buf(self) -> Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `drain_to` [INFO] [stdout] --> src/client/ping.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn drain_to(vec: &mut Vec, count: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/client/ping.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | ... self.connections.read_to_end(&mut vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let pong = Pong::start("0.0.0.0:6567".parse().ok().expect("Unable to start server")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let ping = Ping::start("0.0.0.0:6567".parse().ok().expect("Unable to start client")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_pong` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let start_pong = thread::spawn(move || { start_pong() }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_ping` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let start_ping = thread::spawn(move || { start_ping() }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.35s [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "60552e05c97fbb91724ab21895b864d7d9edd53609a175c899ec3b389e125794", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60552e05c97fbb91724ab21895b864d7d9edd53609a175c899ec3b389e125794", kill_on_drop: false }` [INFO] [stdout] 60552e05c97fbb91724ab21895b864d7d9edd53609a175c899ec3b389e125794 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2862b2c31716ac56e35e887640fe5d3d82bbb4618b3e83a0dcfeae794bffe89e [INFO] running `Command { std: "docker" "start" "-a" "2862b2c31716ac56e35e887640fe5d3d82bbb4618b3e83a0dcfeae794bffe89e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling mio_pong v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mio::util::Slab` [INFO] [stdout] --> src/client/ping.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mio::util::Slab; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/client/ping.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_LINE` [INFO] [stdout] --> src/client/ping.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_LINE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `socket` [INFO] [stdout] --> src/client/ping.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | socket: TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `token` [INFO] [stdout] --> src/client/ping.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | token: Token, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/client/ping.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: State, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/client/ping.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn new(socket: TcpStream, token: Token) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ready` [INFO] [stdout] --> src/client/ping.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn ready(&mut self, event_loop: &mut EventLoop, events: EventSet) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/client/ping.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn read(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/client/ping.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn write(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reregister` [INFO] [stdout] --> src/client/ping.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_closed` [INFO] [stdout] --> src/client/ping.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | fn is_closed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Reading` [INFO] [stdout] --> src/client/ping.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | Reading(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/client/ping.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | Writing(Take>>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Closed` [INFO] [stdout] --> src/client/ping.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | Closed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_read_buf` [INFO] [stdout] --> src/client/ping.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn mut_read_buf(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_buf` [INFO] [stdout] --> src/client/ping.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn read_buf(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_buf` [INFO] [stdout] --> src/client/ping.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn write_buf(&self) -> &Take>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_write_buf` [INFO] [stdout] --> src/client/ping.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn mut_write_buf(&mut self) -> &mut Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_writing` [INFO] [stdout] --> src/client/ping.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn try_transition_to_writing(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_reading` [INFO] [stdout] --> src/client/ping.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | fn try_transition_to_reading(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `event_set` [INFO] [stdout] --> src/client/ping.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | fn event_set(&self) -> EventSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_read_buf` [INFO] [stdout] --> src/client/ping.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | fn unwrap_read_buf(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_write_buf` [INFO] [stdout] --> src/client/ping.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn unwrap_write_buf(self) -> Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `drain_to` [INFO] [stdout] --> src/client/ping.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn drain_to(vec: &mut Vec, count: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/client/ping.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | ... self.connections.read_to_end(&mut vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::util::Slab` [INFO] [stdout] --> src/client/ping.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mio::util::Slab; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/client/ping.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pong` [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let pong = Pong::start("0.0.0.0:6567".parse().ok().expect("Unable to start server")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ping` [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let ping = Ping::start("0.0.0.0:6567".parse().ok().expect("Unable to start client")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_pong` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let start_pong = thread::spawn(move || { start_pong() }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_pong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_ping` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let start_ping = thread::spawn(move || { start_ping() }); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_LINE` [INFO] [stdout] --> src/client/ping.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_LINE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `socket` [INFO] [stdout] --> src/client/ping.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | socket: TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `token` [INFO] [stdout] --> src/client/ping.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | token: Token, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/client/ping.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: State, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/client/ping.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn new(socket: TcpStream, token: Token) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ready` [INFO] [stdout] --> src/client/ping.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn ready(&mut self, event_loop: &mut EventLoop, events: EventSet) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/client/ping.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn read(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/client/ping.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn write(&mut self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reregister` [INFO] [stdout] --> src/client/ping.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_closed` [INFO] [stdout] --> src/client/ping.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | fn is_closed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Reading` [INFO] [stdout] --> src/client/ping.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | Reading(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/client/ping.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | Writing(Take>>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Closed` [INFO] [stdout] --> src/client/ping.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | Closed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/client/ping.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_read_buf` [INFO] [stdout] --> src/client/ping.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn mut_read_buf(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_buf` [INFO] [stdout] --> src/client/ping.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn read_buf(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_buf` [INFO] [stdout] --> src/client/ping.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn write_buf(&self) -> &Take>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mut_write_buf` [INFO] [stdout] --> src/client/ping.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn mut_write_buf(&mut self) -> &mut Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_writing` [INFO] [stdout] --> src/client/ping.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn try_transition_to_writing(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_transition_to_reading` [INFO] [stdout] --> src/client/ping.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | fn try_transition_to_reading(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `event_set` [INFO] [stdout] --> src/client/ping.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | fn event_set(&self) -> EventSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_read_buf` [INFO] [stdout] --> src/client/ping.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | fn unwrap_read_buf(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_write_buf` [INFO] [stdout] --> src/client/ping.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn unwrap_write_buf(self) -> Take>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `drain_to` [INFO] [stdout] --> src/client/ping.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn drain_to(vec: &mut Vec, count: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/client/ping.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | ... self.connections.read_to_end(&mut vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.55s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/mio_pong-99974fb9cdf572b4) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/mio_pong-0b093be7cc556be3) [INFO] running `Command { std: "docker" "inspect" "2862b2c31716ac56e35e887640fe5d3d82bbb4618b3e83a0dcfeae794bffe89e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2862b2c31716ac56e35e887640fe5d3d82bbb4618b3e83a0dcfeae794bffe89e", kill_on_drop: false }` [INFO] [stdout] 2862b2c31716ac56e35e887640fe5d3d82bbb4618b3e83a0dcfeae794bffe89e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 56c4087bcf1859dd871c13d5aa181e5c05661ce8cac560684636e5a28d93ecc5 [INFO] running `Command { std: "docker" "start" "-a" "56c4087bcf1859dd871c13d5aa181e5c05661ce8cac560684636e5a28d93ecc5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `mio::util::Slab` [INFO] [stderr] --> src/client/ping.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use mio::util::Slab; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::OpenOptions` [INFO] [stderr] --> src/client/ping.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::fs::OpenOptions; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MAX_LINE` [INFO] [stderr] --> src/client/ping.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const MAX_LINE: usize = 128; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `socket` [INFO] [stderr] --> src/client/ping.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | socket: TcpStream, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:67:10 [INFO] [stderr] | [INFO] [stderr] 67 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `token` [INFO] [stderr] --> src/client/ping.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | token: Token, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:67:10 [INFO] [stderr] | [INFO] [stderr] 67 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `state` [INFO] [stderr] --> src/client/ping.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 71 | state: State, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:67:10 [INFO] [stderr] | [INFO] [stderr] 67 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/client/ping.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn new(socket: TcpStream, token: Token) -> Connection { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `ready` [INFO] [stderr] --> src/client/ping.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 83 | fn ready(&mut self, event_loop: &mut EventLoop, events: EventSet) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read` [INFO] [stderr] --> src/client/ping.rs:97:8 [INFO] [stderr] | [INFO] [stderr] 97 | fn read(&mut self, event_loop: &mut EventLoop) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write` [INFO] [stderr] --> src/client/ping.rs:122:8 [INFO] [stderr] | [INFO] [stderr] 122 | fn write(&mut self, event_loop: &mut EventLoop) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reregister` [INFO] [stderr] --> src/client/ping.rs:144:8 [INFO] [stderr] | [INFO] [stderr] 144 | fn reregister(&self, event_loop: &mut EventLoop) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_closed` [INFO] [stderr] --> src/client/ping.rs:149:8 [INFO] [stderr] | [INFO] [stderr] 149 | fn is_closed(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Reading` [INFO] [stderr] --> src/client/ping.rs:159:5 [INFO] [stderr] | [INFO] [stderr] 159 | Reading(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:157:10 [INFO] [stderr] | [INFO] [stderr] 157 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Writing` [INFO] [stderr] --> src/client/ping.rs:160:5 [INFO] [stderr] | [INFO] [stderr] 160 | Writing(Take>>), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:157:10 [INFO] [stderr] | [INFO] [stderr] 157 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Closed` [INFO] [stderr] --> src/client/ping.rs:161:5 [INFO] [stderr] | [INFO] [stderr] 161 | Closed, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/client/ping.rs:157:10 [INFO] [stderr] | [INFO] [stderr] 157 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mut_read_buf` [INFO] [stderr] --> src/client/ping.rs:165:8 [INFO] [stderr] | [INFO] [stderr] 165 | fn mut_read_buf(&mut self) -> &mut Vec { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_buf` [INFO] [stderr] --> src/client/ping.rs:172:8 [INFO] [stderr] | [INFO] [stderr] 172 | fn read_buf(&self) -> &[u8] { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_buf` [INFO] [stderr] --> src/client/ping.rs:179:8 [INFO] [stderr] | [INFO] [stderr] 179 | fn write_buf(&self) -> &Take>> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mut_write_buf` [INFO] [stderr] --> src/client/ping.rs:186:8 [INFO] [stderr] | [INFO] [stderr] 186 | fn mut_write_buf(&mut self) -> &mut Take>> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `try_transition_to_writing` [INFO] [stderr] --> src/client/ping.rs:195:8 [INFO] [stderr] | [INFO] [stderr] 195 | fn try_transition_to_writing(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `try_transition_to_reading` [INFO] [stderr] --> src/client/ping.rs:216:8 [INFO] [stderr] | [INFO] [stderr] 216 | fn try_transition_to_reading(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `event_set` [INFO] [stderr] --> src/client/ping.rs:235:8 [INFO] [stderr] | [INFO] [stderr] 235 | fn event_set(&self) -> EventSet { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unwrap_read_buf` [INFO] [stderr] --> src/client/ping.rs:243:8 [INFO] [stderr] | [INFO] [stderr] 243 | fn unwrap_read_buf(self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `unwrap_write_buf` [INFO] [stderr] --> src/client/ping.rs:250:8 [INFO] [stderr] | [INFO] [stderr] 250 | fn unwrap_write_buf(self) -> Take>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `drain_to` [INFO] [stderr] --> src/client/ping.rs:258:4 [INFO] [stderr] | [INFO] [stderr] 258 | fn drain_to(vec: &mut Vec, count: usize) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/client/ping.rs:52:29 [INFO] [stderr] | [INFO] [stderr] 52 | ... self.connections.read_to_end(&mut vec); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `mio_pong` (lib) generated 26 warnings [INFO] [stderr] warning: unused variable: `pong` [INFO] [stderr] --> src/main.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | let pong = Pong::start("0.0.0.0:6567".parse().ok().expect("Unable to start server")); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pong` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ping` [INFO] [stderr] --> src/main.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let ping = Ping::start("0.0.0.0:6567".parse().ok().expect("Unable to start client")); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ping` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `start_pong` [INFO] [stderr] --> src/main.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let start_pong = thread::spawn(move || { start_pong() }); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_pong` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `start_ping` [INFO] [stderr] --> src/main.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let start_ping = thread::spawn(move || { start_ping() }); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_ping` [INFO] [stderr] [INFO] [stderr] warning: `mio_pong` (lib test) generated 26 warnings (26 duplicates) [INFO] [stderr] warning: `mio_pong` (bin "mio_pong" test) generated 4 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.63s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mio_pong-99974fb9cdf572b4) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mio_pong-0b093be7cc556be3) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests mio_pong [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "56c4087bcf1859dd871c13d5aa181e5c05661ce8cac560684636e5a28d93ecc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56c4087bcf1859dd871c13d5aa181e5c05661ce8cac560684636e5a28d93ecc5", kill_on_drop: false }` [INFO] [stdout] 56c4087bcf1859dd871c13d5aa181e5c05661ce8cac560684636e5a28d93ecc5