[INFO] cloning repository https://github.com/HerveH44/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/HerveH44/codecrafters-redis-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHerveH44%2Fcodecrafters-redis-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHerveH44%2Fcodecrafters-redis-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e76cd4e4c60a3ed079f6ebee6df71bdf7ac69746 [INFO] checking HerveH44/codecrafters-redis-rust/e76cd4e4c60a3ed079f6ebee6df71bdf7ac69746 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHerveH44%2Fcodecrafters-redis-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HerveH44/codecrafters-redis-rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HerveH44/codecrafters-redis-rust [INFO] finished tweaking git repo https://github.com/HerveH44/codecrafters-redis-rust [INFO] tweaked toml for git repo https://github.com/HerveH44/codecrafters-redis-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HerveH44/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e6e08564c20c8fde9a79dd95f71ef53277bd8d3e05a3c82ef89c9d3119c95fb [INFO] running `Command { std: "docker" "start" "-a" "6e6e08564c20c8fde9a79dd95f71ef53277bd8d3e05a3c82ef89c9d3119c95fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e6e08564c20c8fde9a79dd95f71ef53277bd8d3e05a3c82ef89c9d3119c95fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e6e08564c20c8fde9a79dd95f71ef53277bd8d3e05a3c82ef89c9d3119c95fb", kill_on_drop: false }` [INFO] [stdout] 6e6e08564c20c8fde9a79dd95f71ef53277bd8d3e05a3c82ef89c9d3119c95fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42048498a8c269158ab2951f152abbeb924ec0d1e1d7e36f0b2dea75af05f04f [INFO] running `Command { std: "docker" "start" "-a" "42048498a8c269158ab2951f152abbeb924ec0d1e1d7e36f0b2dea75af05f04f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.5 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Checking thiserror v1.0.32 [INFO] [stderr] Checking redis-starter-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/connection.rs (1 fix) [INFO] [stderr] Migrating tests/helpers.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/helpers.rs (2 fixes) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/helpers.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | self.inner.read_to_end(&mut b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.inner.read_to_end(&mut b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/resp.rs (2 fixes) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | let mut parser = Parser::new(b"+OK\r\n").unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/parser.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(Value::SimpleString("ok".to_owned()), ret); [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::resp::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 116 | let mut parser = Parser::new(b"$5\r\nhello\r\n").unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/parser.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Value::BulkString("hello".to_owned()), ret); [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::resp::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | let mut parser = Parser::new(b"*2\r\n$4\r\nECHO\r\n$3\r\nhey\r\n").unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/parser.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | Value::Array(vec![ [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::resp::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/parser.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | Value::BulkString("echo".to_owned()), [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::resp::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> src/parser.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | Value::BulkString("hey".to_owned()) [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::resp::Value; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser.rs:136:26 [INFO] [stdout] | [INFO] [stdout] 136 | let mut parser = Parser::new(b"*2\r\n$4\r\nECHO\r\n$3\r\nhey\r\n").unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_command` in this scope [INFO] [stdout] --> src/parser.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | let command = parse_command(&ret); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::parse_command; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::parse_command; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::parse_command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RedisCommand` [INFO] [stdout] --> src/parser.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(vec![RedisCommand::ECHO("hey".to_owned())], command); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `RedisCommand` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 107 + use crate::connection::RedisCommand; [INFO] [stdout] | [INFO] [stdout] 107 + use crate::parser::RedisCommand; [INFO] [stdout] | [INFO] [stdout] 107 + use redis_starter_rust::connection::RedisCommand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-starter-rust` (bin "redis-starter-rust" test) due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/helpers.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | cx: &mut std::task::Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/helpers.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | self.inner.read_to_end(&mut b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = self.inner.read_to_end(&mut b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "42048498a8c269158ab2951f152abbeb924ec0d1e1d7e36f0b2dea75af05f04f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42048498a8c269158ab2951f152abbeb924ec0d1e1d7e36f0b2dea75af05f04f", kill_on_drop: false }` [INFO] [stdout] 42048498a8c269158ab2951f152abbeb924ec0d1e1d7e36f0b2dea75af05f04f