[INFO] cloning repository https://github.com/Gleiphir2769/my-redis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gleiphir2769/my-redis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGleiphir2769%2Fmy-redis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGleiphir2769%2Fmy-redis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7697768c12b9e9634b145c655ba8d54911d587dd [INFO] testing Gleiphir2769/my-redis against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGleiphir2769%2Fmy-redis" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gleiphir2769/my-redis on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gleiphir2769/my-redis [INFO] finished tweaking git repo https://github.com/Gleiphir2769/my-redis [INFO] tweaked toml for git repo https://github.com/Gleiphir2769/my-redis written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Gleiphir2769/my-redis already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atoi v0.3.3 [INFO] [stderr] Downloaded libc v0.2.117 [INFO] [stderr] Downloaded tokio v1.16.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 293f8e799e6e8d559c5f71381d065a04a9fa082283b1d7883ec601c5df484568 [INFO] running `Command { std: "docker" "start" "-a" "293f8e799e6e8d559c5f71381d065a04a9fa082283b1d7883ec601c5df484568", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "293f8e799e6e8d559c5f71381d065a04a9fa082283b1d7883ec601c5df484568", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "293f8e799e6e8d559c5f71381d065a04a9fa082283b1d7883ec601c5df484568", kill_on_drop: false }` [INFO] [stdout] 293f8e799e6e8d559c5f71381d065a04a9fa082283b1d7883ec601c5df484568 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 717acd1e9bec9fb6dd3685ab0c1b6832a64d63f1169ca7744f0e5b0e05c53a88 [INFO] running `Command { std: "docker" "start" "-a" "717acd1e9bec9fb6dd3685ab0c1b6832a64d63f1169ca7744f0e5b0e05c53a88", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling my-redis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `dict` should have an upper camel case name [INFO] [stdout] --> src/data_struct/dict.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait dict { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Dict` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/tcp/server.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/tcp/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/redis/connect.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn write_frame(&mut self, frame: &Frame) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/redis/connect.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 87 | Frame::Array(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array` [INFO] [stdout] --> src/redis/frame.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn array() -> Frame { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Connection` [INFO] [stdout] --> src/redis/connect.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_frame` [INFO] [stdout] --> src/redis/connect.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn read_frame(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_frame` [INFO] [stdout] --> src/redis/connect.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn write_frame(&mut self, frame: &Frame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/redis/connect.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(stream: TcpStream) -> Connection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_frame` [INFO] [stdout] --> src/redis/connect.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn parse_frame(&mut self) -> crate::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_value` [INFO] [stdout] --> src/redis/connect.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn write_value(&mut self, frame: &Frame) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_decimal` [INFO] [stdout] --> src/redis/connect.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn write_decimal(&mut self, val: u64) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Put` should have a snake case name [INFO] [stdout] --> src/data_struct/dict.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn Put(key: String, val: T) -> i32; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `put` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Get` should have a snake case name [INFO] [stdout] --> src/data_struct/dict.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn Get(key: String) -> (T, bool); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Mutex` is defined multiple times [INFO] [stdout] --> src/bin/server.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::sync::Mutex; [INFO] [stdout] | ------------------ previous import of the type `Mutex` here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^ `Mutex` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `Mutex` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::{Mutex as OtherMutex, MutexGuard}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mini_redis` [INFO] [stdout] --> src/bin/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mini_redis::{Connection, Frame}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use my_redis::{Connection, Frame}; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mini_redis` [INFO] [stdout] --> src/bin/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::Command::{self, Get, Set}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 | use my_redis::Command::{self, Get, Set}; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mini_redis` [INFO] [stdout] --> src/bin/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mini_redis::Command::{self, Get, Set}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 | use my_redis::Command::{self, Get, Set}; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/bin/echo_server.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::net::{TcpStream, TcpListener}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use my_redis::redis::frame::{self, Frame}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Set` in this scope [INFO] [stdout] --> src/bin/server.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Set(cmd) => { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Get` in this scope [INFO] [stdout] --> src/bin/server.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | Get(cmd) => { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MutexGuard`, `Mutex` [INFO] [stdout] --> src/bin/server.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mini_redis` [INFO] [stdout] --> src/bin/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use mini_redis::{client, blocking_client::Message}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 1 | use my_redis::{client, blocking_client::Message}; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mini_redis` [INFO] [stdout] --> src/bin/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use mini_redis::{client, blocking_client::Message}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 1 | use my_redis::{client, blocking_client::Message}; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mini_redis` [INFO] [stdout] --> src/bin/client.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | type Responder = oneshot::Sender>; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `mini_redis` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 18 | type Responder = oneshot::Sender>; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future>>>` in the current scope [INFO] [stdout] --> src/bin/server.rs:30:78 [INFO] [stdout] | [INFO] [stdout] 30 | let mut shard = self.db[calculate_hash(&key) % self.db.len()].lock().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future>>>` in the current scope [INFO] [stdout] --> src/bin/server.rs:35:74 [INFO] [stdout] | [INFO] [stdout] 35 | let shard = self.db[calculate_hash(&key) % self.db.len()].lock().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0432, E0433, E0531, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my-redis` due to 9 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning 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" "717acd1e9bec9fb6dd3685ab0c1b6832a64d63f1169ca7744f0e5b0e05c53a88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "717acd1e9bec9fb6dd3685ab0c1b6832a64d63f1169ca7744f0e5b0e05c53a88", kill_on_drop: false }` [INFO] [stdout] 717acd1e9bec9fb6dd3685ab0c1b6832a64d63f1169ca7744f0e5b0e05c53a88