[INFO] cloning repository https://github.com/manhtai/rust-plan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/manhtai/rust-plan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanhtai%2Frust-plan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanhtai%2Frust-plan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2dcc42449c2703d244c1b682a2bb774e281511ed [INFO] testing manhtai/rust-plan against master#432e145bd5a974c5b6f4dd9b352891bd7502b69d for pr-87041 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanhtai%2Frust-plan" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/manhtai/rust-plan on toolchain 432e145bd5a974c5b6f4dd9b352891bd7502b69d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/manhtai/rust-plan [INFO] finished tweaking git repo https://github.com/manhtai/rust-plan [INFO] tweaked toml for git repo https://github.com/manhtai/rust-plan written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/manhtai/rust-plan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ea016f09a366e35d6f138ee97339eaf64c27a811b8e9c5d3adfcf2257591319 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3ea016f09a366e35d6f138ee97339eaf64c27a811b8e9c5d3adfcf2257591319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ea016f09a366e35d6f138ee97339eaf64c27a811b8e9c5d3adfcf2257591319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ea016f09a366e35d6f138ee97339eaf64c27a811b8e9c5d3adfcf2257591319", kill_on_drop: false }` [INFO] [stdout] 3ea016f09a366e35d6f138ee97339eaf64c27a811b8e9c5d3adfcf2257591319 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ab7f5320bf4e49b282150f754e1656fccb83c29f9ee71099ae849663a874e36 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7ab7f5320bf4e49b282150f754e1656fccb83c29f9ee71099ae849663a874e36", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling rayon-core v1.6.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling bb v0.1.0 (/opt/rustwide/workdir/bb-4) [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling lock_api v0.3.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling backtrace v0.3.40 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling crossbeam-channel v0.4.0 [INFO] [stderr] Compiling crossbeam-queue v0.2.0 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling crossbeam v0.7.3 [INFO] [stderr] Compiling rayon v1.2.0 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling synstructure v0.12.1 [INFO] [stderr] Compiling structopt v0.2.18 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling serde_bytes v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling sled v0.29.2 [INFO] [stderr] Compiling kvs v0.1.0 (/opt/rustwide/workdir/project-4) [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> project-4/src/lib.rs:244:17 [INFO] [stdout] | [INFO] [stdout] 244 | Err(err) => Err(KvError::KeyNotFound), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/naive.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/rayon.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/shared_queue.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clone` [INFO] [stdout] --> project-4/src/lib.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | store.set("".to_owned(), "".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:222:25 [INFO] [stdout] | [INFO] [stdout] 222 | KvStore::load(&mut store, &cmd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &self.storage.insert(key.into_bytes(), value.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | &self.storage.remove(key.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut store: &mut dyn KvsEngine; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut stream = stream.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-client.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | reader.read_line(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | exchange(stream, store); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "7ab7f5320bf4e49b282150f754e1656fccb83c29f9ee71099ae849663a874e36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ab7f5320bf4e49b282150f754e1656fccb83c29f9ee71099ae849663a874e36", kill_on_drop: false }` [INFO] [stdout] 7ab7f5320bf4e49b282150f754e1656fccb83c29f9ee71099ae849663a874e36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b8e74397ec522516edf0dc46da810f195bb395e9fe4360353495942c9ccd30b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1b8e74397ec522516edf0dc46da810f195bb395e9fe4360353495942c9ccd30b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Compiling cast v0.2.2 [INFO] [stderr] Compiling panic-control v0.1.4 [INFO] [stderr] Compiling bb v0.1.0 (/opt/rustwide/workdir/bb-4) [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling regex-automata v0.1.8 [INFO] [stderr] Compiling rand_xoshiro v0.1.0 [INFO] [stderr] Compiling csv-core v0.1.6 [INFO] [stderr] Compiling float-cmp v0.4.0 [INFO] [stderr] Compiling tinytemplate v1.0.2 [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> project-4/src/lib.rs:244:17 [INFO] [stdout] | [INFO] [stdout] 244 | Err(err) => Err(KvError::KeyNotFound), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/naive.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/rayon.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/shared_queue.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clone` [INFO] [stdout] --> project-4/src/lib.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | store.set("".to_owned(), "".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:222:25 [INFO] [stdout] | [INFO] [stdout] 222 | KvStore::load(&mut store, &cmd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &self.storage.insert(key.into_bytes(), value.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | &self.storage.remove(key.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-client.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut store: &mut dyn KvsEngine; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut stream = stream.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | reader.read_line(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | exchange(stream, store); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling predicates v1.0.1 [INFO] [stderr] Compiling bstr v0.2.8 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling criterion-plot v0.3.1 [INFO] [stderr] Compiling assert_cmd v0.11.1 [INFO] [stderr] Compiling csv v1.1.1 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling criterion v0.2.11 [INFO] [stderr] Compiling kvs v0.1.0 (/opt/rustwide/workdir/project-4) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut store: &mut dyn KvsEngine; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut stream = stream.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | reader.read_line(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> project-4/src/bin/kvs-server.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | exchange(stream, store); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> project-4/src/bin/kvs-client.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write, BufReader, BufRead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> project-4/src/lib.rs:244:17 [INFO] [stdout] | [INFO] [stdout] 244 | Err(err) => Err(KvError::KeyNotFound), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/naive.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/rayon.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threads` [INFO] [stdout] --> project-4/src/thread_pool/shared_queue.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(threads: u32) -> Result where Self: Sized { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clone` [INFO] [stdout] --> project-4/src/lib.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | store.set("".to_owned(), "".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:222:25 [INFO] [stdout] | [INFO] [stdout] 222 | KvStore::load(&mut store, &cmd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &self.storage.insert(key.into_bytes(), value.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | &self.storage.remove(key.into_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> project-4/src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | &self.storage.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> project-4/src/lib.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | file.read(&mut first_bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `clone` is private [INFO] [stdout] --> project-4/tests/kv_store.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | let store = store.clone(); [INFO] [stdout] | ^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `clone` is private [INFO] [stdout] --> project-4/tests/kv_store.rs:173:27 [INFO] [stdout] | [INFO] [stdout] 173 | let store = store.clone(); [INFO] [stdout] | ^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `clone` is private [INFO] [stdout] --> project-4/tests/kv_store.rs:194:27 [INFO] [stdout] | [INFO] [stdout] 194 | let store = store.clone(); [INFO] [stdout] | ^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0624`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kvs` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1b8e74397ec522516edf0dc46da810f195bb395e9fe4360353495942c9ccd30b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b8e74397ec522516edf0dc46da810f195bb395e9fe4360353495942c9ccd30b", kill_on_drop: false }` [INFO] [stdout] 1b8e74397ec522516edf0dc46da810f195bb395e9fe4360353495942c9ccd30b