[INFO] cloning repository https://github.com/w41ter-l/io_perf
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/w41ter-l/io_perf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw41ter-l%2Fio_perf", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw41ter-l%2Fio_perf'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d6dc1c887b3d3f1357acbd9e065a2e4045a0aa10
[INFO] checking w41ter-l/io_perf against master#5a45ab9738330fb317d49e3594c2db5248b1e971 for pr-136303
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw41ter-l%2Fio_perf" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/w41ter-l/io_perf on toolchain 5a45ab9738330fb317d49e3594c2db5248b1e971
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5a45ab9738330fb317d49e3594c2db5248b1e971" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config
[INFO] removed /workspace/builds/worker-2-tc1/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/w41ter-l/io_perf
[INFO] finished tweaking git repo https://github.com/w41ter-l/io_perf
[INFO] tweaked toml for git repo https://github.com/w41ter-l/io_perf written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/w41ter-l/io_perf 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" "+5a45ab9738330fb317d49e3594c2db5248b1e971" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded io-uring v0.5.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5a45ab9738330fb317d49e3594c2db5248b1e971" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 787f12a0e20919ea38e75dc10e3ef436511fd713701dfb880cd80dcabdfd4075
[INFO] running `Command { std: "docker" "start" "-a" "787f12a0e20919ea38e75dc10e3ef436511fd713701dfb880cd80dcabdfd4075", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "787f12a0e20919ea38e75dc10e3ef436511fd713701dfb880cd80dcabdfd4075", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "787f12a0e20919ea38e75dc10e3ef436511fd713701dfb880cd80dcabdfd4075", kill_on_drop: false }`
[INFO] [stdout] 787f12a0e20919ea38e75dc10e3ef436511fd713701dfb880cd80dcabdfd4075
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5a45ab9738330fb317d49e3594c2db5248b1e971" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a0de5c4655bceecba81005a0f9282a862a5abe82342d556a610f24770a4e14eb
[INFO] running `Command { std: "docker" "start" "-a" "a0de5c4655bceecba81005a0f9282a862a5abe82342d556a610f24770a4e14eb", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling libc v0.2.119
[INFO] [stderr]    Compiling syn v1.0.86
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]     Checking futures-sink v0.3.21
[INFO] [stderr]     Checking pin-project-lite v0.2.8
[INFO] [stderr]    Compiling parking_lot_core v0.9.1
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]     Checking futures-io v0.3.21
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]     Checking slab v0.4.5
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking smallvec v1.8.0
[INFO] [stderr]     Checking lock_api v0.4.6
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling async-trait v0.1.52
[INFO] [stderr]    Compiling io-uring v0.5.2
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking once_cell v1.10.0
[INFO] [stderr]    Compiling quote v1.0.15
[INFO] [stderr]     Checking socket2 v0.4.4
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]     Checking mio v0.8.0
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking parking_lot v0.12.0
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling tokio-macros v1.7.0
[INFO] [stderr]     Checking tokio v1.17.0
[INFO] [stderr]     Checking futures-executor v0.3.21
[INFO] [stderr]     Checking futures v0.3.21
[INFO] [stderr]     Checking io v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `char::MAX`
[INFO] [stdout]   --> src/main.rs:11:47
[INFO] [stdout]    |
[INFO] [stdout] 11 |     thread::JoinHandle, io::{Write, IoSlice}, char::MAX,
[INFO] [stdout]    |                                               ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `char::MAX`
[INFO] [stdout]   --> src/main.rs:11:47
[INFO] [stdout]    |
[INFO] [stdout] 11 |     thread::JoinHandle, io::{Write, IoSlice}, char::MAX,
[INFO] [stdout]    |                                               ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:839:9
[INFO] [stdout]     |
[INFO] [stdout] 704 | /         loop {
[INFO] [stdout] 705 | |             // TODO:
[INFO] [stdout] 706 | |             // 2. how to lazy polling?
[INFO] [stdout] 707 | |             if !w.pending_completions.is_empty() || w.drain_req.is_some() {
[INFO] [stdout] ...   |
[INFO] [stdout] 838 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 839 |           println!("break to here");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:931:5
[INFO] [stdout]     |
[INFO] [stdout] 927 | /     loop {
[INFO] [stdout] 928 | |         std::thread::sleep(std::time::Duration::from_secs(1));
[INFO] [stdout] 929 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 930 |
[INFO] [stdout] 931 |       handle.join().unwrap_or_default();
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_sync`
[INFO] [stdout]    --> src/main.rs:288:13
[INFO] [stdout]     |
[INFO] [stdout] 288 |         let data_sync = opcode::Fsync::new(types::Fd(writer.as_raw_fd()))
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_sync`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `writer`
[INFO] [stdout]    --> src/main.rs:355:55
[INFO] [stdout]     |
[INFO] [stdout] 355 |     fn submit_switch_task<Writer: AsRawFd>(&mut self, writer: &Writer) {
[INFO] [stdout]     |                                                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `requests` is never read
[INFO] [stdout]    --> src/main.rs:413:17
[INFO] [stdout]     |
[INFO] [stdout] 413 |         let mut requests = VecDeque::new();
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `requests` is never read
[INFO] [stdout]    --> src/main.rs:546:17
[INFO] [stdout]     |
[INFO] [stdout] 546 |         let mut requests = VecDeque::new();
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:839:9
[INFO] [stdout]     |
[INFO] [stdout] 704 | /         loop {
[INFO] [stdout] 705 | |             // TODO:
[INFO] [stdout] 706 | |             // 2. how to lazy polling?
[INFO] [stdout] 707 | |             if !w.pending_completions.is_empty() || w.drain_req.is_some() {
[INFO] [stdout] ...   |
[INFO] [stdout] 838 | |         }
[INFO] [stdout]     | |_________- any code following this expression is unreachable
[INFO] [stdout] 839 |           println!("break to here");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:931:5
[INFO] [stdout]     |
[INFO] [stdout] 927 | /     loop {
[INFO] [stdout] 928 | |         std::thread::sleep(std::time::Duration::from_secs(1));
[INFO] [stdout] 929 | |     }
[INFO] [stdout]     | |_____- any code following this expression is unreachable
[INFO] [stdout] 930 |
[INFO] [stdout] 931 |       handle.join().unwrap_or_default();
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `handle`
[INFO] [stdout]    --> src/main.rs:846:9
[INFO] [stdout]     |
[INFO] [stdout] 846 |     let handle = log_worker_sync(
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Result` is never used
[INFO] [stdout]   --> src/main.rs:17:6
[INFO] [stdout]    |
[INFO] [stdout] 17 | type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `SequentialWriter` is never used
[INFO] [stdout]   --> src/main.rs:19:7
[INFO] [stdout]    |
[INFO] [stdout] 19 | trait SequentialWriter {
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_sync`
[INFO] [stdout]    --> src/main.rs:288:13
[INFO] [stdout]     |
[INFO] [stdout] 288 |         let data_sync = opcode::Fsync::new(types::Fd(writer.as_raw_fd()))
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_sync`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Env` is never used
[INFO] [stdout]   --> src/main.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 24 | trait Env {
[INFO] [stdout]    |       ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_SIZE` is never used
[INFO] [stdout]   --> src/main.rs:66:7
[INFO] [stdout]    |
[INFO] [stdout] 66 | const BLOCK_SIZE: usize = 1024;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Aligned` is never constructed
[INFO] [stdout]   --> src/main.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct Aligned<const CHUNK_SIZE: usize>([u8; CHUNK_SIZE]);
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlock` is never constructed
[INFO] [stdout]   --> src/main.rs:84:8
[INFO] [stdout]    |
[INFO] [stdout] 84 | struct IOBlock {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new` and `deref_block` are never used
[INFO] [stdout]   --> src/main.rs:91:8
[INFO] [stdout]    |
[INFO] [stdout] 90 | impl IOBlock {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] 91 |     fn new() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 99 |     fn deref_block(raw_block: *mut IOBlock) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlockRef` is never constructed
[INFO] [stdout]    --> src/main.rs:109:8
[INFO] [stdout]     |
[INFO] [stdout] 109 | struct IOBlockRef {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/main.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 114 | impl IOBlockRef {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 115 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     fn consumed(&self) -> usize {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     fn len(&self) -> usize {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     fn free(&self) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn extend(&mut self, src: &[u8]) {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     fn extend_zero(&mut self, size: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     fn split(&mut self) -> IOBlockView {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlockView` is never constructed
[INFO] [stdout]    --> src/main.rs:177:8
[INFO] [stdout]     |
[INFO] [stdout] 177 | struct IOBlockView {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Completion` is never constructed
[INFO] [stdout]    --> src/main.rs:188:8
[INFO] [stdout]     |
[INFO] [stdout] 188 | struct Completion {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `on_complete` are never used
[INFO] [stdout]    --> src/main.rs:195:8
[INFO] [stdout]     |
[INFO] [stdout] 194 | impl Completion {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 195 |     fn new(requests: Vec<(u64, oneshot::Sender<u64>)>, block_ref: IOBlockView) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 207 |     fn on_complete(self, result: i32) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IoStats` is never constructed
[INFO] [stdout]    --> src/main.rs:233:8
[INFO] [stdout]     |
[INFO] [stdout] 233 | struct IoStats {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `IoStats` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Worker` is never constructed
[INFO] [stdout]    --> src/main.rs:250:8
[INFO] [stdout]     |
[INFO] [stdout] 250 | struct Worker {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `append`, `consume_next_request`, and `submit_switch_task` are never used
[INFO] [stdout]    --> src/main.rs:276:8
[INFO] [stdout]     |
[INFO] [stdout] 274 | impl Worker {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] 275 |     /// Try append a entry into ring, or save it to doing if ring is full.
[INFO] [stdout] 276 |     fn append<Writer: AsRawFd>(&mut self, writer: &Writer, completion: Box<Completion>) -> bool {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 313 |     fn consume_next_request(&mut self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 355 |     fn submit_switch_task<Writer: AsRawFd>(&mut self, writer: &Writer) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `log_worker_sync_with_block_size` is never used
[INFO] [stdout]    --> src/main.rs:382:4
[INFO] [stdout]     |
[INFO] [stdout] 382 | fn log_worker_sync_with_block_size(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `log_worker` is never used
[INFO] [stdout]    --> src/main.rs:653:4
[INFO] [stdout]     |
[INFO] [stdout] 653 | fn log_worker(
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `writer`
[INFO] [stdout]    --> src/main.rs:355:55
[INFO] [stdout]     |
[INFO] [stdout] 355 |     fn submit_switch_task<Writer: AsRawFd>(&mut self, writer: &Writer) {
[INFO] [stdout]     |                                                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `requests` is never read
[INFO] [stdout]    --> src/main.rs:413:17
[INFO] [stdout]     |
[INFO] [stdout] 413 |         let mut requests = VecDeque::new();
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]    --> src/main.rs:103:26
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 unsafe { Box::from_raw(block) };
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 unsafe { let _ = Box::from_raw(block); };
[INFO] [stdout]     |                          +++++++                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `requests` is never read
[INFO] [stdout]    --> src/main.rs:546:17
[INFO] [stdout]     |
[INFO] [stdout] 546 |         let mut requests = VecDeque::new();
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `handle`
[INFO] [stdout]    --> src/main.rs:846:9
[INFO] [stdout]     |
[INFO] [stdout] 846 |     let handle = log_worker_sync(
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Result` is never used
[INFO] [stdout]   --> src/main.rs:17:6
[INFO] [stdout]    |
[INFO] [stdout] 17 | type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `SequentialWriter` is never used
[INFO] [stdout]   --> src/main.rs:19:7
[INFO] [stdout]    |
[INFO] [stdout] 19 | trait SequentialWriter {
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Env` is never used
[INFO] [stdout]   --> src/main.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 24 | trait Env {
[INFO] [stdout]    |       ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_SIZE` is never used
[INFO] [stdout]   --> src/main.rs:66:7
[INFO] [stdout]    |
[INFO] [stdout] 66 | const BLOCK_SIZE: usize = 1024;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Aligned` is never constructed
[INFO] [stdout]   --> src/main.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct Aligned<const CHUNK_SIZE: usize>([u8; CHUNK_SIZE]);
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlock` is never constructed
[INFO] [stdout]   --> src/main.rs:84:8
[INFO] [stdout]    |
[INFO] [stdout] 84 | struct IOBlock {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new` and `deref_block` are never used
[INFO] [stdout]   --> src/main.rs:91:8
[INFO] [stdout]    |
[INFO] [stdout] 90 | impl IOBlock {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] 91 |     fn new() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 99 |     fn deref_block(raw_block: *mut IOBlock) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlockRef` is never constructed
[INFO] [stdout]    --> src/main.rs:109:8
[INFO] [stdout]     |
[INFO] [stdout] 109 | struct IOBlockRef {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/main.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 114 | impl IOBlockRef {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 115 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     fn consumed(&self) -> usize {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     fn len(&self) -> usize {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     fn free(&self) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn extend(&mut self, src: &[u8]) {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     fn extend_zero(&mut self, size: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     fn split(&mut self) -> IOBlockView {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IOBlockView` is never constructed
[INFO] [stdout]    --> src/main.rs:177:8
[INFO] [stdout]     |
[INFO] [stdout] 177 | struct IOBlockView {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Completion` is never constructed
[INFO] [stdout]    --> src/main.rs:188:8
[INFO] [stdout]     |
[INFO] [stdout] 188 | struct Completion {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `on_complete` are never used
[INFO] [stdout]    --> src/main.rs:195:8
[INFO] [stdout]     |
[INFO] [stdout] 194 | impl Completion {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 195 |     fn new(requests: Vec<(u64, oneshot::Sender<u64>)>, block_ref: IOBlockView) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 207 |     fn on_complete(self, result: i32) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IoStats` is never constructed
[INFO] [stdout]    --> src/main.rs:233:8
[INFO] [stdout]     |
[INFO] [stdout] 233 | struct IoStats {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `IoStats` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Worker` is never constructed
[INFO] [stdout]    --> src/main.rs:250:8
[INFO] [stdout]     |
[INFO] [stdout] 250 | struct Worker {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `append`, `consume_next_request`, and `submit_switch_task` are never used
[INFO] [stdout]    --> src/main.rs:276:8
[INFO] [stdout]     |
[INFO] [stdout] 274 | impl Worker {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] 275 |     /// Try append a entry into ring, or save it to doing if ring is full.
[INFO] [stdout] 276 |     fn append<Writer: AsRawFd>(&mut self, writer: &Writer, completion: Box<Completion>) -> bool {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 313 |     fn consume_next_request(&mut self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 355 |     fn submit_switch_task<Writer: AsRawFd>(&mut self, writer: &Writer) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `log_worker_sync_with_block_size` is never used
[INFO] [stdout]    --> src/main.rs:382:4
[INFO] [stdout]     |
[INFO] [stdout] 382 | fn log_worker_sync_with_block_size(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `log_worker` is never used
[INFO] [stdout]    --> src/main.rs:653:4
[INFO] [stdout]     |
[INFO] [stdout] 653 | fn log_worker(
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]    --> src/main.rs:103:26
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 unsafe { Box::from_raw(block) };
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 103 |                 unsafe { let _ = Box::from_raw(block); };
[INFO] [stdout]     |                          +++++++                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.21s
[INFO] running `Command { std: "docker" "inspect" "a0de5c4655bceecba81005a0f9282a862a5abe82342d556a610f24770a4e14eb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0de5c4655bceecba81005a0f9282a862a5abe82342d556a610f24770a4e14eb", kill_on_drop: false }`
[INFO] [stdout] a0de5c4655bceecba81005a0f9282a862a5abe82342d556a610f24770a4e14eb
