[INFO] cloning repository https://github.com/sobatha/concurrent_http_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sobatha/concurrent_http_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobatha%2Fconcurrent_http_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobatha%2Fconcurrent_http_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ad16c1b8140592bbb3fc77288d4371d0a63a6721 [INFO] checking sobatha/concurrent_http_server against try#86f78589b09557f70c9db3f56ad1921e0a9f76ef for pr-138438 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsobatha%2Fconcurrent_http_server" "/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/sobatha/concurrent_http_server on toolchain 86f78589b09557f70c9db3f56ad1921e0a9f76ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sobatha/concurrent_http_server [INFO] finished tweaking git repo https://github.com/sobatha/concurrent_http_server [INFO] tweaked toml for git repo https://github.com/sobatha/concurrent_http_server written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sobatha/concurrent_http_server 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" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "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-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5122d2c4cef6cffddd936c72701850838bb12461c34f5b2e039e60de260e7a22 [INFO] running `Command { std: "docker" "start" "-a" "5122d2c4cef6cffddd936c72701850838bb12461c34f5b2e039e60de260e7a22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5122d2c4cef6cffddd936c72701850838bb12461c34f5b2e039e60de260e7a22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5122d2c4cef6cffddd936c72701850838bb12461c34f5b2e039e60de260e7a22", kill_on_drop: false }` [INFO] [stdout] 5122d2c4cef6cffddd936c72701850838bb12461c34f5b2e039e60de260e7a22 [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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae5dd47076f7ef6914f4dec27ded23e2ccd5654db0cb5a06e3f35f3f411d5c12 [INFO] running `Command { std: "docker" "start" "-a" "ae5dd47076f7ef6914f4dec27ded23e2ccd5654db0cb5a06e3f35f3f411d5c12", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/bin/io-multiplexying.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/bin/io-multiplexying.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/bin/io-multiplexying.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/bin/io-multiplexying.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/io-multiplexying.rs:31:25 [INFO] [stdout] | [INFO] [stdout] 31 | let mut reader = BufReader::new(stream); [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/bin/io-multiplexying.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let mut writer = BufWriter::new(stream1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/io-multiplexying.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let mut event = EpollEvent::new(epoll_in, fd as u64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/bin/io-multiplexying.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/io-multiplexying.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | epoll.add(stream2, event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = epoll.add(stream2, event); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/main.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/main.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | let epfd = epoll_create1(EpollCreateFlags::empty()).unwrap(); // <1> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | epoll_ctl(epfd, epoll_add, listen_fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/main.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | while let Ok(nfds) = epoll_wait(epfd, &mut events, -1) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | epoll_ctl(epfd, epoll_add, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | epoll_ctl(epfd, epoll_del, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/io-multiplexying.rs:31:25 [INFO] [stdout] | [INFO] [stdout] 31 | let mut reader = BufReader::new(stream); [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: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | let epfd = epoll_create1(EpollCreateFlags::empty()).unwrap(); // <1> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | epoll_ctl(epfd, epoll_add, listen_fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | while let Ok(nfds) = epoll_wait(epfd, &mut events, -1) { // <3> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | epoll_ctl(epfd, epoll_add, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | epoll_ctl(epfd, epoll_del, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/io-multiplexying.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let mut writer = BufWriter::new(stream1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/io-multiplexying.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let mut event = EpollEvent::new(epoll_in, fd as u64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/bin/io-multiplexying.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/main.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/main.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | let epfd = epoll_create1(EpollCreateFlags::empty()).unwrap(); // <1> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | epoll_ctl(epfd, epoll_add, listen_fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/main.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | while let Ok(nfds) = epoll_wait(epfd, &mut events, -1) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | epoll_ctl(epfd, epoll_add, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/main.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | epoll_ctl(epfd, epoll_del, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/main.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/main.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/io-multiplexying.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | epoll.add(stream2, event); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = epoll.add(stream2, event); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | epoll_create1, epoll_ctl, epoll_wait, EpollCreateFlags, EpollEvent, EpollFlags, EpollOp, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_create1`: Use Epoll::new() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | let epfd = epoll_create1(EpollCreateFlags::empty()).unwrap(); // <1> [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | epoll_ctl(epfd, epoll_add, listen_fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_wait`: Use Epoll::wait() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | while let Ok(nfds) = epoll_wait(epfd, &mut events, -1) { // <3> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | epoll_ctl(epfd, epoll_add, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `nix::sys::epoll::epoll_ctl`: Use Epoll::epoll_ctl() instead [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | epoll_ctl(epfd, epoll_del, fd, &mut ev).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/bin/thread-pool-server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/bin/thread-pool-server.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 46 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 47 | thread: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/bin/io-multiplexying-epoll.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | let (reader, writer) = fd2buf.get_mut(&fd).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/bin/thread-pool-server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `thread` are never read [INFO] [stdout] --> src/bin/thread-pool-server.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct Worker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 46 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 47 | thread: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.37s [INFO] running `Command { std: "docker" "inspect" "ae5dd47076f7ef6914f4dec27ded23e2ccd5654db0cb5a06e3f35f3f411d5c12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae5dd47076f7ef6914f4dec27ded23e2ccd5654db0cb5a06e3f35f3f411d5c12", kill_on_drop: false }` [INFO] [stdout] ae5dd47076f7ef6914f4dec27ded23e2ccd5654db0cb5a06e3f35f3f411d5c12