[INFO] cloning repository https://github.com/0x00whitecode/http-server-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0x00whitecode/http-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x00whitecode%2Fhttp-server-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x00whitecode%2Fhttp-server-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 39a27d1234259722dff1dcf6609755c9e6ae6656
[INFO] checking 0x00whitecode/http-server-rust against master#04ff05c9c0cfbca33115c5f1b8bb20a66a54b799 for pr-147834
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x00whitecode%2Fhttp-server-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/0x00whitecode/http-server-rust
[INFO] finished tweaking git repo https://github.com/0x00whitecode/http-server-rust
[INFO] tweaked toml for git repo https://github.com/0x00whitecode/http-server-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/0x00whitecode/http-server-rust on toolchain 04ff05c9c0cfbca33115c5f1b8bb20a66a54b799
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/0x00whitecode/http-server-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" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 32fd9555f211d95c2f61b7d007222a18b968482266d42fc0c7fd0f9d86283eb4
[INFO] running `Command { std: "docker" "start" "-a" "32fd9555f211d95c2f61b7d007222a18b968482266d42fc0c7fd0f9d86283eb4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "32fd9555f211d95c2f61b7d007222a18b968482266d42fc0c7fd0f9d86283eb4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "32fd9555f211d95c2f61b7d007222a18b968482266d42fc0c7fd0f9d86283eb4", kill_on_drop: false }`
[INFO] [stdout] 32fd9555f211d95c2f61b7d007222a18b968482266d42fc0c7fd0f9d86283eb4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e8f1de05daaff57198daea7219625e175f1fd1b40368290ddda7869708385f33
[INFO] running `Command { std: "docker" "start" "-a" "e8f1de05daaff57198daea7219625e175f1fd1b40368290ddda7869708385f33", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.75
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]     Checking codecrafters-http-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `PathBuf`
[INFO] [stdout]  --> src/main.rs:1:62
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, fs, io::Write, net::TcpListener, path::{Path, PathBuf}, thread};
[INFO] [stdout]   |                                                              ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PathBuf`
[INFO] [stdout]  --> src/main.rs:1:62
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{env, fs, io::Write, net::TcpListener, path::{Path, PathBuf}, thread};
[INFO] [stdout]   |                                                              ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write as IoWrite};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{Read, Write as IoWrite};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `buffer` does not live long enough
[INFO] [stdout]   --> src/main.rs:78:55
[INFO] [stdout]    |
[INFO] [stdout] 76 |                   let mut buffer = [0; 1024];
[INFO] [stdout]    |                       ---------- binding `buffer` declared here
[INFO] [stdout] 77 |                   let _ = stream.read(&mut buffer).unwrap();
[INFO] [stdout] 78 |                   let request = String::from_utf8_lossy(&buffer);
[INFO] [stdout]    |                                                         ^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 81 | /                 thread::spawn(move || {
[INFO] [stdout] 82 | |                     handle_request(stream, request.to_string());
[INFO] [stdout] 83 | |                 });
[INFO] [stdout]    | |__________________- argument requires that `buffer` is borrowed for `'static`
[INFO] [stdout] 84 |               }
[INFO] [stdout]    |               - `buffer` dropped here while still borrowed
[INFO] [stdout]    |
[INFO] [stdout] note: requirement that the value outlives `'static` introduced here
[INFO] [stdout]   --> /rustc/04ff05c9c0cfbca33115c5f1b8bb20a66a54b799/library/std/src/thread/mod.rs:728:15
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `buffer` does not live long enough
[INFO] [stdout]   --> src/main.rs:78:55
[INFO] [stdout]    |
[INFO] [stdout] 76 |                   let mut buffer = [0; 1024];
[INFO] [stdout]    |                       ---------- binding `buffer` declared here
[INFO] [stdout] 77 |                   let _ = stream.read(&mut buffer).unwrap();
[INFO] [stdout] 78 |                   let request = String::from_utf8_lossy(&buffer);
[INFO] [stdout]    |                                                         ^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 81 | /                 thread::spawn(move || {
[INFO] [stdout] 82 | |                     handle_request(stream, request.to_string());
[INFO] [stdout] 83 | |                 });
[INFO] [stdout]    | |__________________- argument requires that `buffer` is borrowed for `'static`
[INFO] [stdout] 84 |               }
[INFO] [stdout]    |               - `buffer` dropped here while still borrowed
[INFO] [stdout]    |
[INFO] [stdout] note: requirement that the value outlives `'static` introduced here
[INFO] [stdout]   --> /rustc/04ff05c9c0cfbca33115c5f1b8bb20a66a54b799/library/std/src/thread/mod.rs:728:15
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `directory_clone`
[INFO] [stdout]   --> src/main.rs:80:21
[INFO] [stdout]    |
[INFO] [stdout] 80 |                 let directory_clone = directory.to_string();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directory_clone`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `directory_clone`
[INFO] [stdout]   --> src/main.rs:80:21
[INFO] [stdout]    |
[INFO] [stdout] 80 |                 let directory_clone = directory.to_string();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directory_clone`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-http-server` (bin "codecrafters-http-server") due to 1 previous error; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `codecrafters-http-server` (bin "codecrafters-http-server" test) due to 1 previous error; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "e8f1de05daaff57198daea7219625e175f1fd1b40368290ddda7869708385f33", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e8f1de05daaff57198daea7219625e175f1fd1b40368290ddda7869708385f33", kill_on_drop: false }`
[INFO] [stdout] e8f1de05daaff57198daea7219625e175f1fd1b40368290ddda7869708385f33
