[INFO] cloning repository https://github.com/cecarbs/codecrafters_redis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cecarbs/codecrafters_redis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcecarbs%2Fcodecrafters_redis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcecarbs%2Fcodecrafters_redis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7ea92a1279b346a068e8a2f8d0140fe84cea297 [INFO] checking cecarbs/codecrafters_redis against try#5fee451ebd94296ea05214e819c311e164b30af6 for pr-139042 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcecarbs%2Fcodecrafters_redis" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cecarbs/codecrafters_redis on toolchain 5fee451ebd94296ea05214e819c311e164b30af6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cecarbs/codecrafters_redis [INFO] finished tweaking git repo https://github.com/cecarbs/codecrafters_redis [INFO] tweaked toml for git repo https://github.com/cecarbs/codecrafters_redis written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cecarbs/codecrafters_redis 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" "+5fee451ebd94296ea05214e819c311e164b30af6" "fetch" "--manifest-path" "Cargo.toml", 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 204dc34c4b80e08ca2452001e55df0323963782b036779e412eb60759fc99ba9 [INFO] running `Command { std: "docker" "start" "-a" "204dc34c4b80e08ca2452001e55df0323963782b036779e412eb60759fc99ba9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "204dc34c4b80e08ca2452001e55df0323963782b036779e412eb60759fc99ba9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "204dc34c4b80e08ca2452001e55df0323963782b036779e412eb60759fc99ba9", kill_on_drop: false }` [INFO] [stdout] 204dc34c4b80e08ca2452001e55df0323963782b036779e412eb60759fc99ba9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 496c4f4911a3d5da40184ca0f40fe3505056073bcf17ba2a38888f7e67a4ffe6 [INFO] running `Command { std: "docker" "start" "-a" "496c4f4911a3d5da40184ca0f40fe3505056073bcf17ba2a38888f7e67a4ffe6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.5 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Checking thiserror v1.0.32 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::redis_server::connection_handler` [INFO] [stdout] --> src/redis_server/master.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | connection_handler, encode_resp_bulk_string, encode_simple_string, handle_connection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `connection_handler` in `redis_server` [INFO] [stdout] | help: a similar name exists in the module: `ConnectionHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::redis_server::connection_handler` [INFO] [stdout] --> src/redis_server/master.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | connection_handler, encode_resp_bulk_string, encode_simple_string, handle_connection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `connection_handler` in `redis_server` [INFO] [stdout] | help: a similar name exists in the module: `ConnectionHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `replica` [INFO] [stdout] --> src/redis_server/master.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | hex_to_binary, replica, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/redis_server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `replica` [INFO] [stdout] --> src/redis_server/master.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | hex_to_binary, replica, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/redis_server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/redis_server.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/redis_server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::timed_hashmap::TimedHashMap` [INFO] [stdout] --> src/redis_server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use self::timed_hashmap::TimedHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/redis_server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/redis_server.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::timed_hashmap::TimedHashMap` [INFO] [stdout] --> src/redis_server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use self::timed_hashmap::TimedHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in an async function that returns `Result` [INFO] [stdout] --> src/redis_server.rs:95:92 [INFO] [stdout] | [INFO] [stdout] 83 | ) -> Result<(), Box> { [INFO] [stdout] | _____________________________________________- [INFO] [stdout] 84 | | let mut buf = [0; 1024]; [INFO] [stdout] 85 | | [INFO] [stdout] 86 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 95 | | let decoded_str: Vec = decode_resp_bulk_string(request.to_string())?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), Box>` [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in an async function that returns `Result` [INFO] [stdout] --> src/redis_server.rs:95:92 [INFO] [stdout] | [INFO] [stdout] 83 | ) -> Result<(), Box> { [INFO] [stdout] | _____________________________________________- [INFO] [stdout] 84 | | let mut buf = [0; 1024]; [INFO] [stdout] 85 | | [INFO] [stdout] 86 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 95 | | let decoded_str: Vec = decode_resp_bulk_string(request.to_string())?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), Box>` [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | Command::Echo => handler.handle_echo(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 109 | Command::Echo => handler.handle_echo(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | Command::Echo => handler.handle_echo(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 109 | Command::Echo => handler.handle_echo(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | Command::Ping => handler.handle_ping(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 110 | Command::Ping => handler.handle_ping(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | Command::Ping => handler.handle_ping(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 110 | Command::Ping => handler.handle_ping(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | Command::Set => handler.handle_set(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 111 | Command::Set => handler.handle_set(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | Command::Get => handler.handle_get(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 112 | Command::Get => handler.handle_get(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | Command::Set => handler.handle_set(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 111 | Command::Set => handler.handle_set(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | Command::Info => handler.handle_info(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 113 | Command::Info => handler.handle_info(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | Command::Get => handler.handle_get(&decoded_str, &mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 112 | Command::Get => handler.handle_get(&decoded_str, &mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:114:42 [INFO] [stdout] | [INFO] [stdout] 114 | Command::Replconf => handler.handle_replconf(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 114 | Command::Replconf => handler.handle_replconf(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | Command::Info => handler.handle_info(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 113 | Command::Info => handler.handle_info(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:114:42 [INFO] [stdout] | [INFO] [stdout] 114 | Command::Replconf => handler.handle_replconf(&mut stream)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 114 | Command::Replconf => handler.handle_replconf(&mut stream).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `replication_id` on type `H` [INFO] [stdout] --> src/redis_server.rs:115:82 [INFO] [stdout] | [INFO] [stdout] 80 | async fn handle_connection( [INFO] [stdout] | - type parameter 'H' declared here [INFO] [stdout] ... [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id)?, [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `replication_id` on type `H` [INFO] [stdout] --> src/redis_server.rs:115:82 [INFO] [stdout] | [INFO] [stdout] 80 | async fn handle_connection( [INFO] [stdout] | - type parameter 'H' declared here [INFO] [stdout] ... [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id)?, [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/redis_server.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 115 | Command::Psync => handler.handle_psync(&mut stream, &handler.replication_id).await?, [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/master.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/master.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/master.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/master.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/master.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [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] --> src/redis_server/master.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [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] --> src/redis_server/master.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/master.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/redis_server/master.rs:100:61 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0].clone()).await.unwrap(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/redis_server/master.rs:100:61 [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 100 | let mut replica_stream = TcpStream::connect(self.replicas[0].clone()).await.unwrap(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/redis_server/master.rs:117:61 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0].clone()).await.unwrap(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/redis_server/master.rs:117:61 [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 117 | let mut replica_stream = TcpStream::connect(self.replicas[0].clone()).await.unwrap(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redis_server/master.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.") [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] help: the type constructed contains `&'static str` due to the type of the argument passed [INFO] [stdout] --> src/redis_server/master.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.") [INFO] [stdout] | ^^^^-------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/5fee451ebd94296ea05214e819c311e164b30af6/library/core/src/result.rs:537:5 [INFO] [stdout] help: call `Into::into` on this expression to convert `&'static str` into `Box` [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.".into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redis_server/master.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.") [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] help: the type constructed contains `&'static str` due to the type of the argument passed [INFO] [stdout] --> src/redis_server/master.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.") [INFO] [stdout] | ^^^^-------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/5fee451ebd94296ea05214e819c311e164b30af6/library/core/src/result.rs:537:5 [INFO] [stdout] help: call `Into::into` on this expression to convert `&'static str` into `Box` [INFO] [stdout] | [INFO] [stdout] 152 | Err("Master: unable to send successful response in GET commmand.".into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared_master_stream` [INFO] [stdout] --> src/redis_server/replica.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut shared_master_stream = send_handshake_to_master(&mut master_stream, address).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared_master_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared_master_stream` [INFO] [stdout] --> src/redis_server/replica.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let shared_master_stream = RwLock::new(master_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared_master_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared_master_stream` [INFO] [stdout] --> src/redis_server/replica.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut shared_master_stream = send_handshake_to_master(&mut master_stream, address).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared_master_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared_master_stream` [INFO] [stdout] --> src/redis_server/replica.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let shared_master_stream = RwLock::new(master_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared_master_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut shared_master_stream = send_handshake_to_master(&mut master_stream, address).await; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut shared_master_stream = send_handshake_to_master(&mut master_stream, address).await; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/replica.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/replica.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/replica.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replica_stream` [INFO] [stdout] --> src/redis_server/replica.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replica_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis_server/replica.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let mut replica_stream = TcpStream::connect(&self.master_address).await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/redis_server/replica.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | stream: &mut TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/redis_server/replica.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | stream: &mut TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replication_id` [INFO] [stdout] --> src/redis_server/replica.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | replication_id: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replication_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/redis_server/replica.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | stream: &mut TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/redis_server/replica.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | stream: &mut TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replication_id` [INFO] [stdout] --> src/redis_server/replica.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | replication_id: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replication_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust") due to 13 previous errors; 19 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust" test) due to 13 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "496c4f4911a3d5da40184ca0f40fe3505056073bcf17ba2a38888f7e67a4ffe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "496c4f4911a3d5da40184ca0f40fe3505056073bcf17ba2a38888f7e67a4ffe6", kill_on_drop: false }` [INFO] [stdout] 496c4f4911a3d5da40184ca0f40fe3505056073bcf17ba2a38888f7e67a4ffe6