[INFO] cloning repository https://github.com/Yassen-Higazi/http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yassen-Higazi/http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYassen-Higazi%2Fhttp-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYassen-Higazi%2Fhttp-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1aa2e4be3f37437a1ed2790163790221aac924c [INFO] building Yassen-Higazi/http-server/a1aa2e4be3f37437a1ed2790163790221aac924c against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYassen-Higazi%2Fhttp-server" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yassen-Higazi/http-server on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yassen-Higazi/http-server [INFO] finished tweaking git repo https://github.com/Yassen-Higazi/http-server [INFO] tweaked toml for git repo https://github.com/Yassen-Higazi/http-server written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Yassen-Higazi/http-server 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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a555c7bfafcbab773929bfef2ee3c3b8ae6f48e8848e2fb5fe80624bdf2bf69 [INFO] running `Command { std: "docker" "start" "-a" "7a555c7bfafcbab773929bfef2ee3c3b8ae6f48e8848e2fb5fe80624bdf2bf69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a555c7bfafcbab773929bfef2ee3c3b8ae6f48e8848e2fb5fe80624bdf2bf69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a555c7bfafcbab773929bfef2ee3c3b8ae6f48e8848e2fb5fe80624bdf2bf69", kill_on_drop: false }` [INFO] [stdout] 7a555c7bfafcbab773929bfef2ee3c3b8ae6f48e8848e2fb5fe80624bdf2bf69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dde3620a05a0044845b9fe67e906e9eb3778232568a4f90e8f77db02d6518a4c [INFO] running `Command { std: "docker" "start" "-a" "dde3620a05a0044845b9fe67e906e9eb3778232568a4f90e8f77db02d6518a4c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling clap_builder v4.5.17 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling clap v4.5.17 [INFO] [stderr] Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | .get("/", |req, res| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `query` are never read [INFO] [stdout] --> src/request.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub host: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub query: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Multipart` and `UrlEncoded` are never constructed [INFO] [stdout] --> src/response.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ContentType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 31 | Multipart, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | UrlEncoded, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NewJob` is never constructed [INFO] [stdout] --> src/thread_pool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 5 | NewJob(Job), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call_box` is never used [INFO] [stdout] --> src/thread_pool.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | trait FnBox { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 15 | fn call_box(self: Box); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/thread_pool.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread_pool.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 83 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put`, `patch`, `delete`, `options`, and `head` are never used [INFO] [stdout] --> src/router.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Router { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn put(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn patch(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn delete(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn options(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn head(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.34s [INFO] running `Command { std: "docker" "inspect" "dde3620a05a0044845b9fe67e906e9eb3778232568a4f90e8f77db02d6518a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dde3620a05a0044845b9fe67e906e9eb3778232568a4f90e8f77db02d6518a4c", kill_on_drop: false }` [INFO] [stdout] dde3620a05a0044845b9fe67e906e9eb3778232568a4f90e8f77db02d6518a4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6712e3cf0e2233972af33eb4cf137072fc5f7bb8d68131ad4a712dfc3e74a2c1 [INFO] running `Command { std: "docker" "start" "-a" "6712e3cf0e2233972af33eb4cf137072fc5f7bb8d68131ad4a712dfc3e74a2c1", kill_on_drop: false }` [INFO] [stderr] Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | .get("/", |req, res| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host` and `query` are never read [INFO] [stdout] --> src/request.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub host: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub query: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Multipart` and `UrlEncoded` are never constructed [INFO] [stdout] --> src/response.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ContentType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 31 | Multipart, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | UrlEncoded, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NewJob` is never constructed [INFO] [stdout] --> src/thread_pool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 5 | NewJob(Job), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call_box` is never used [INFO] [stdout] --> src/thread_pool.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | trait FnBox { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 15 | fn call_box(self: Box); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/thread_pool.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/thread_pool.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 83 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put`, `patch`, `delete`, `options`, and `head` are never used [INFO] [stdout] --> src/router.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Router { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn put(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn patch(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn delete(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn options(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn head(&self, path: &str, handler: RequestHandler) -> &Router { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "6712e3cf0e2233972af33eb4cf137072fc5f7bb8d68131ad4a712dfc3e74a2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6712e3cf0e2233972af33eb4cf137072fc5f7bb8d68131ad4a712dfc3e74a2c1", kill_on_drop: false }` [INFO] [stdout] 6712e3cf0e2233972af33eb4cf137072fc5f7bb8d68131ad4a712dfc3e74a2c1