[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#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [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 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6739ab5a8499ff2cbb5f9dc50b4d4365f06b42629957c48f22bda001430da51c [INFO] running `Command { std: "docker" "start" "-a" "6739ab5a8499ff2cbb5f9dc50b4d4365f06b42629957c48f22bda001430da51c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6739ab5a8499ff2cbb5f9dc50b4d4365f06b42629957c48f22bda001430da51c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6739ab5a8499ff2cbb5f9dc50b4d4365f06b42629957c48f22bda001430da51c", kill_on_drop: false }` [INFO] [stdout] 6739ab5a8499ff2cbb5f9dc50b4d4365f06b42629957c48f22bda001430da51c [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39650de22662d545093c7fa22fb6cfca7a7550cda0e46395375dadd51f8c6baf [INFO] running `Command { std: "docker" "start" "-a" "39650de22662d545093c7fa22fb6cfca7a7550cda0e46395375dadd51f8c6baf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling io-uring v0.5.2 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [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: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(&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: 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: 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: 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 `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 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 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: 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: 25 warnings emitted [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 `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: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.07s [INFO] running `Command { std: "docker" "inspect" "39650de22662d545093c7fa22fb6cfca7a7550cda0e46395375dadd51f8c6baf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39650de22662d545093c7fa22fb6cfca7a7550cda0e46395375dadd51f8c6baf", kill_on_drop: false }` [INFO] [stdout] 39650de22662d545093c7fa22fb6cfca7a7550cda0e46395375dadd51f8c6baf [INFO] checking w41ter-l/io_perf against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fw41ter-l%2Fio_perf" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/w41ter-l/io_perf on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config [INFO] removed /workspace/builds/worker-0-tc2/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-tc2/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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32d5cc0101d9d6017f58ba724bd49bde27dd95eda12174ad8c9d4d41947d2bf9 [INFO] running `Command { std: "docker" "start" "-a" "32d5cc0101d9d6017f58ba724bd49bde27dd95eda12174ad8c9d4d41947d2bf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32d5cc0101d9d6017f58ba724bd49bde27dd95eda12174ad8c9d4d41947d2bf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32d5cc0101d9d6017f58ba724bd49bde27dd95eda12174ad8c9d4d41947d2bf9", kill_on_drop: false }` [INFO] [stdout] 32d5cc0101d9d6017f58ba724bd49bde27dd95eda12174ad8c9d4d41947d2bf9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d707557f2a6b2946bc70263594ac0402e2b9ae1fdff4b78eda451ce4fc957a7 [INFO] running `Command { std: "docker" "start" "-a" "3d707557f2a6b2946bc70263594ac0402e2b9ae1fdff4b78eda451ce4fc957a7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util 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] Checking slab v0.4.5 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling io-uring v0.5.2 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.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: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: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: 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: 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 `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: 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 `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: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.85s [INFO] running `Command { std: "docker" "inspect" "3d707557f2a6b2946bc70263594ac0402e2b9ae1fdff4b78eda451ce4fc957a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d707557f2a6b2946bc70263594ac0402e2b9ae1fdff4b78eda451ce4fc957a7", kill_on_drop: false }` [INFO] [stdout] 3d707557f2a6b2946bc70263594ac0402e2b9ae1fdff4b78eda451ce4fc957a7