[INFO] cloning repository https://github.com/marxin/codecrafters-redis-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marxin/codecrafters-redis-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarxin%2Fcodecrafters-redis-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarxin%2Fcodecrafters-redis-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31458345ef3961ed35f2e06f02c952e2e5375723 [INFO] checking marxin/codecrafters-redis-rust against try#028201683a76a5cd349729c6819c46607119c4e8 for pr-144157 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarxin%2Fcodecrafters-redis-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/marxin/codecrafters-redis-rust [INFO] finished tweaking git repo https://github.com/marxin/codecrafters-redis-rust [INFO] tweaked toml for git repo https://github.com/marxin/codecrafters-redis-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/marxin/codecrafters-redis-rust on toolchain 028201683a76a5cd349729c6819c46607119c4e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/marxin/codecrafters-redis-rust 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" "+028201683a76a5cd349729c6819c46607119c4e8" "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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2be129637b00c2d5bd26a38ea57a3b0c64ae0d977edc61cac738d4253dadd527 [INFO] running `Command { std: "docker" "start" "-a" "2be129637b00c2d5bd26a38ea57a3b0c64ae0d977edc61cac738d4253dadd527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2be129637b00c2d5bd26a38ea57a3b0c64ae0d977edc61cac738d4253dadd527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2be129637b00c2d5bd26a38ea57a3b0c64ae0d977edc61cac738d4253dadd527", kill_on_drop: false }` [INFO] [stdout] 2be129637b00c2d5bd26a38ea57a3b0c64ae0d977edc61cac738d4253dadd527 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49b4130ea2791c787584134b9a5541babd5b4fcd87bc6e0fb414c37e506ba036 [INFO] running `Command { std: "docker" "start" "-a" "49b4130ea2791c787584134b9a5541babd5b4fcd87bc6e0fb414c37e506ba036", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/server.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::{debug, error, info, info_span, warn, Instrument}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/server.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::{debug, error, info, info_span, warn, Instrument}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio::io::BufReader: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`redis_starter_rust`) [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:25:89 [INFO] [stdout] | [INFO] [stdout] 25 | async fn read_n(reader: &mut BufReader, n: usize) -> anyhow::Result> { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 26 | | let mut buffer = vec![0u8; n]; [INFO] [stdout] 27 | | reader [INFO] [stdout] 28 | | .read_exact(&mut buffer) [INFO] [stdout] ... | [INFO] [stdout] 31 | | Ok(buffer) [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:34:77 [INFO] [stdout] | [INFO] [stdout] 34 | async fn next_char(reader: &mut BufReader) -> anyhow::Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 35 | | read_n(reader, 1) [INFO] [stdout] 36 | | .await? [INFO] [stdout] 37 | | .into_iter() [INFO] [stdout] 38 | | .next() [INFO] [stdout] 39 | | .ok_or(anyhow::anyhow!("a non empty string expected")) [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> anyhow::Result { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 46 | | let mut buffer = Vec::new(); [INFO] [stdout] 47 | | (*read_bytes) += reader.read_until(SEPARATOR[0], &mut buffer).await?; [INFO] [stdout] 48 | | anyhow::ensure!(next_char(reader).await? == SEPARATOR[1]); [INFO] [stdout] ... | [INFO] [stdout] 53 | | Ok(String::from_utf8(buffer)?) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/replica.rs:112:91 [INFO] [stdout] | [INFO] [stdout] 112 | async fn handle_connection(storage: Storage, stream: TcpStream) -> anyhow::Result<()> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 113 | | let mut stream = BufReader::new(stream); [INFO] [stdout] 114 | | [INFO] [stdout] 115 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 136 | | Ok(()) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/replica.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | async move { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `ManuallyDrop<{async block@src/replica.rs:147:17: 147:27}>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/mem/manually_drop.rs:157:12 [INFO] [stdout] note: required because it appears within the type `Instrumented<{async block@src/replica.rs:147:17: 147:27}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.40/src/instrument.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct Instrumented { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio::io::BufReader: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`redis_starter_rust`) [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:25:89 [INFO] [stdout] | [INFO] [stdout] 25 | async fn read_n(reader: &mut BufReader, n: usize) -> anyhow::Result> { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 26 | | let mut buffer = vec![0u8; n]; [INFO] [stdout] 27 | | reader [INFO] [stdout] 28 | | .read_exact(&mut buffer) [INFO] [stdout] ... | [INFO] [stdout] 31 | | Ok(buffer) [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:34:77 [INFO] [stdout] | [INFO] [stdout] 34 | async fn next_char(reader: &mut BufReader) -> anyhow::Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 35 | | read_n(reader, 1) [INFO] [stdout] 36 | | .await? [INFO] [stdout] 37 | | .into_iter() [INFO] [stdout] 38 | | .next() [INFO] [stdout] 39 | | .ok_or(anyhow::anyhow!("a non empty string expected")) [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> anyhow::Result { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 46 | | let mut buffer = Vec::new(); [INFO] [stdout] 47 | | (*read_bytes) += reader.read_until(SEPARATOR[0], &mut buffer).await?; [INFO] [stdout] 48 | | anyhow::ensure!(next_char(reader).await? == SEPARATOR[1]); [INFO] [stdout] ... | [INFO] [stdout] 53 | | Ok(String::from_utf8(buffer)?) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/replica.rs:112:91 [INFO] [stdout] | [INFO] [stdout] 112 | async fn handle_connection(storage: Storage, stream: TcpStream) -> anyhow::Result<()> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 113 | | let mut stream = BufReader::new(stream); [INFO] [stdout] 114 | | [INFO] [stdout] 115 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 136 | | Ok(()) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/replica.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | async move { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `ManuallyDrop<{async block@src/replica.rs:147:17: 147:27}>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/mem/manually_drop.rs:157:12 [INFO] [stdout] note: required because it appears within the type `Instrumented<{async block@src/replica.rs:147:17: 147:27}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.40/src/instrument.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct Instrumented { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio::io::BufReader: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`redis_starter_rust`) [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:25:89 [INFO] [stdout] | [INFO] [stdout] 25 | async fn read_n(reader: &mut BufReader, n: usize) -> anyhow::Result> { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 26 | | let mut buffer = vec![0u8; n]; [INFO] [stdout] 27 | | reader [INFO] [stdout] 28 | | .read_exact(&mut buffer) [INFO] [stdout] ... | [INFO] [stdout] 31 | | Ok(buffer) [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:34:77 [INFO] [stdout] | [INFO] [stdout] 34 | async fn next_char(reader: &mut BufReader) -> anyhow::Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 35 | | read_n(reader, 1) [INFO] [stdout] 36 | | .await? [INFO] [stdout] 37 | | .into_iter() [INFO] [stdout] 38 | | .next() [INFO] [stdout] 39 | | .ok_or(anyhow::anyhow!("a non empty string expected")) [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> anyhow::Result { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 46 | | let mut buffer = Vec::new(); [INFO] [stdout] 47 | | (*read_bytes) += reader.read_until(SEPARATOR[0], &mut buffer).await?; [INFO] [stdout] 48 | | anyhow::ensure!(next_char(reader).await? == SEPARATOR[1]); [INFO] [stdout] ... | [INFO] [stdout] 53 | | Ok(String::from_utf8(buffer)?) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/server.rs:156:98 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_connection(&self, stream: TcpStream, addr: SocketAddr) -> anyhow::Result<()> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 157 | | let mut stream = BufReader::new(stream); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 183 | | Ok(()) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/server.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | async move { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `ManuallyDrop<{async block@src/server.rs:194:17: 194:27}>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/mem/manually_drop.rs:157:12 [INFO] [stdout] note: required because it appears within the type `Instrumented<{async block@src/server.rs:194:17: 194:27}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.40/src/instrument.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct Instrumented { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0275]: overflow evaluating the requirement `&mut tokio::io::BufReader: Send` [INFO] [stdout] | [INFO] [stdout] = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`redis_starter_rust`) [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:25:89 [INFO] [stdout] | [INFO] [stdout] 25 | async fn read_n(reader: &mut BufReader, n: usize) -> anyhow::Result> { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 26 | | let mut buffer = vec![0u8; n]; [INFO] [stdout] 27 | | reader [INFO] [stdout] 28 | | .read_exact(&mut buffer) [INFO] [stdout] ... | [INFO] [stdout] 31 | | Ok(buffer) [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:34:77 [INFO] [stdout] | [INFO] [stdout] 34 | async fn next_char(reader: &mut BufReader) -> anyhow::Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 35 | | read_n(reader, 1) [INFO] [stdout] 36 | | .await? [INFO] [stdout] 37 | | .into_iter() [INFO] [stdout] 38 | | .next() [INFO] [stdout] 39 | | .ok_or(anyhow::anyhow!("a non empty string expected")) [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> anyhow::Result { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 46 | | let mut buffer = Vec::new(); [INFO] [stdout] 47 | | (*read_bytes) += reader.read_until(SEPARATOR[0], &mut buffer).await?; [INFO] [stdout] 48 | | anyhow::ensure!(next_char(reader).await? == SEPARATOR[1]); [INFO] [stdout] ... | [INFO] [stdout] 53 | | Ok(String::from_utf8(buffer)?) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required for `Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/parser.rs:56:100 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn parse_token(reader: &mut BufReader) -> anyhow::Result<(RedisValue, usize)> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 57 | | let mut read_bytes = 0; [INFO] [stdout] 58 | | let Ok(start_letter) = next_char(reader).await else { [INFO] [stdout] 59 | | return Ok((RedisValue::None, read_bytes)); [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/server.rs:156:98 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_connection(&self, stream: TcpStream, addr: SocketAddr) -> anyhow::Result<()> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 157 | | let mut stream = BufReader::new(stream); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 183 | | Ok(()) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/server.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | async move { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `ManuallyDrop<{async block@src/server.rs:194:17: 194:27}>` [INFO] [stdout] --> /rustc/028201683a76a5cd349729c6819c46607119c4e8/library/core/src/mem/manually_drop.rs:157:12 [INFO] [stdout] note: required because it appears within the type `Instrumented<{async block@src/server.rs:194:17: 194:27}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.40/src/instrument.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct Instrumented { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0275`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust" test) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "49b4130ea2791c787584134b9a5541babd5b4fcd87bc6e0fb414c37e506ba036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49b4130ea2791c787584134b9a5541babd5b4fcd87bc6e0fb414c37e506ba036", kill_on_drop: false }` [INFO] [stdout] 49b4130ea2791c787584134b9a5541babd5b4fcd87bc6e0fb414c37e506ba036