[INFO] cloning repository https://github.com/simonbjerkas/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/simonbjerkas/http-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonbjerkas%2Fhttp-server-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonbjerkas%2Fhttp-server-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a67f8133f84873aa9a9208e94fe3759af9e793c2
[INFO] testing simonbjerkas/http-server-rust against 1.97.0-beta.6 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonbjerkas%2Fhttp-server-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/simonbjerkas/http-server-rust
[INFO] finished tweaking git repo https://github.com/simonbjerkas/http-server-rust
[INFO] tweaked toml for git repo https://github.com/simonbjerkas/http-server-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/simonbjerkas/http-server-rust on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/simonbjerkas/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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16
[INFO] running `Command { std: "docker" "start" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling simd-adler32 v0.3.8
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling miniz_oxide v0.8.9
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling flate2 v1.1.9
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling http-server-macros v0.1.0 (/opt/rustwide/workdir/crates/http-server-macros)
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling http-server v0.1.0 (/opt/rustwide/workdir/crates/http-server)
[INFO] [stderr]    Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir/crates/app)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.50s
[INFO] running `Command { std: "docker" "inspect" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling http-server-macros v0.1.0 (/opt/rustwide/workdir/crates/http-server-macros)
[INFO] [stderr]    Compiling http-server v0.1.0 (/opt/rustwide/workdir/crates/http-server)
[INFO] [stderr]    Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir/crates/app)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.36s
[INFO] running `Command { std: "docker" "inspect" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/codecrafters_http_server-5313ea5e9155b42c)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_server-de986d4b58814f36)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_server_macros-f6af4ef0c59d11df)
[INFO] [stderr]    Doc-tests http_server
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests http_server_macros
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test crates/http-server-macros/src/lib.rs - get (line 44) ... FAILED
[INFO] [stdout] test crates/http-server-macros/src/lib.rs - post (line 68) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- crates/http-server-macros/src/lib.rs - get (line 44) stdout ----
[INFO] [stdout] error: cannot find attribute `get` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:45:3
[INFO] [stdout]    |
[INFO] [stdout] 45 | #[get("/echo/:msg")]
[INFO] [stdout]    |   ^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Request` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `App` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:46:32
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                                ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:46:40
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:48:16
[INFO] [stdout]    |
[INFO] [stdout] 48 |         return Response::not_found();
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Headers` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:51:23
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let mut headers = Headers::new();
[INFO] [stdout]    |                       ^^^^^^^ use of undeclared type `Headers`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `ContentType` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:52:30
[INFO] [stdout]    |
[INFO] [stdout] 52 |     headers.set_content_type(ContentType::Text);
[INFO] [stdout]    |                              ^^^^^^^^^^^ use of undeclared type `ContentType`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     Response::ok(headers, msg)
[INFO] [stdout]    |     ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/http-server-macros/src/lib.rs - post (line 68) stdout ----
[INFO] [stdout] error: cannot find attribute `post` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:69:3
[INFO] [stdout]    |
[INFO] [stdout] 69 | #[post("/files/:path")]
[INFO] [stdout]    |   ^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Request` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `App` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:70:32
[INFO] [stdout]    |
[INFO] [stdout] 70 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                                ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:70:40
[INFO] [stdout]    |
[INFO] [stdout] 70 | fn message(req: Request, app: &App) -> Response {
[INFO] [stdout]    |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `PathBuf` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:75:16
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let path = PathBuf::from(path);
[INFO] [stdout]    |                ^^^^^^^ use of undeclared type `PathBuf`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 68 + use std::path::PathBuf;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `fs` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:76:24
[INFO] [stdout]    |
[INFO] [stdout] 76 |     let Ok(mut file) = fs::File::create(file_path) else {
[INFO] [stdout]    |                        ^^ use of unresolved module or unlinked crate `fs`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 68 + use std::fs::File;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `File`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 76 -     let Ok(mut file) = fs::File::create(file_path) else {
[INFO] [stdout] 76 +     let Ok(mut file) = File::create(file_path) else {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `file_path` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:76:41
[INFO] [stdout]    |
[INFO] [stdout] 76 |     let Ok(mut file) = fs::File::create(file_path) else {
[INFO] [stdout]    |                                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:72:16
[INFO] [stdout]    |
[INFO] [stdout] 72 |         return Response::not_found();
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:78:16
[INFO] [stdout]    |
[INFO] [stdout] 78 |         return Response::bad();
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 83 |         return Response::bad();
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Response` in this scope
[INFO] [stdout]   --> crates/http-server-macros/src/lib.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 86 |     Response::created()
[INFO] [stdout]    |     ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     crates/http-server-macros/src/lib.rs - get (line 44)
[INFO] [stdout]     crates/http-server-macros/src/lib.rs - post (line 68)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.32s; merged doctests compilation took 0.19s
[INFO] [stderr] error: doctest failed, to rerun pass `-p http-server-macros --doc`
[INFO] running `Command { std: "docker" "inspect" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16", kill_on_drop: false }`
[INFO] [stdout] 0f1666e1463b3442baab80935370018c1f7b0b23a7fc40e455d20042c067da16
