[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#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw41ter-l%2Fio_perf" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/w41ter-l/io_perf on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config [INFO] removed /workspace/builds/worker-0-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-0-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7fc5d7f94230caa80c03f419a4acc4159f6fbd186dc9b3c021476c0bd016092 [INFO] running `Command { std: "docker" "start" "-a" "b7fc5d7f94230caa80c03f419a4acc4159f6fbd186dc9b3c021476c0bd016092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7fc5d7f94230caa80c03f419a4acc4159f6fbd186dc9b3c021476c0bd016092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7fc5d7f94230caa80c03f419a4acc4159f6fbd186dc9b3c021476c0bd016092", kill_on_drop: false }` [INFO] [stdout] b7fc5d7f94230caa80c03f419a4acc4159f6fbd186dc9b3c021476c0bd016092 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb939eee9b999060e23f6c7e07775caa4be3623f06b76224b33eda84fc53d2fc [INFO] running `Command { std: "docker" "start" "-a" "eb939eee9b999060e23f6c7e07775caa4be3623f06b76224b33eda84fc53d2fc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling io-uring v0.5.2 [INFO] [stderr] Checking lock_api v0.4.6 [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 num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.0 [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] 837 | | } [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: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] 837 | | } [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: 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: `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(&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 variable: `writer` [INFO] [stdout] --> src/main.rs:355:55 [INFO] [stdout] | [INFO] [stdout] 355 | fn submit_switch_task(&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: 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: 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 = std::result::Result>; [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([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)>, 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(&mut self, writer: &Writer, completion: Box) -> 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(&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: type alias `Result` is never used [INFO] [stdout] --> src/main.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Result = std::result::Result>; [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([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)>, 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(&mut self, writer: &Writer, completion: Box) -> 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(&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::::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: unused return value of `Box::::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: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.73s [INFO] running `Command { std: "docker" "inspect" "eb939eee9b999060e23f6c7e07775caa4be3623f06b76224b33eda84fc53d2fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb939eee9b999060e23f6c7e07775caa4be3623f06b76224b33eda84fc53d2fc", kill_on_drop: false }` [INFO] [stdout] eb939eee9b999060e23f6c7e07775caa4be3623f06b76224b33eda84fc53d2fc