[INFO] fetching crate lava-http 0.1.1... [INFO] testing lava-http-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate lava-http 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate lava-http 0.1.1 [INFO] finished tweaking crates.io crate lava-http 0.1.1 [INFO] tweaked toml for crates.io crate lava-http 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lava-http 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate lava-http 0.1.1 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d23424f154cd5e475278103856ebcd8e0b0db7563e93560fb2dc7352d1ccc5a3 [INFO] running `Command { std: "docker" "start" "-a" "d23424f154cd5e475278103856ebcd8e0b0db7563e93560fb2dc7352d1ccc5a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d23424f154cd5e475278103856ebcd8e0b0db7563e93560fb2dc7352d1ccc5a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d23424f154cd5e475278103856ebcd8e0b0db7563e93560fb2dc7352d1ccc5a3", kill_on_drop: false }` [INFO] [stdout] d23424f154cd5e475278103856ebcd8e0b0db7563e93560fb2dc7352d1ccc5a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa51425920d900abc67c3a927378857351fdd52c0fb4ed700492529099541341 [INFO] running `Command { std: "docker" "start" "-a" "fa51425920d900abc67c3a927378857351fdd52c0fb4ed700492529099541341", kill_on_drop: false }` [INFO] [stderr] Compiling lava-http v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `SeekFrom`, `fmt::format`, and `string` [INFO] [stdout] --> src/server/server.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Write, SeekFrom [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | fmt::format, string [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/server/server.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut res: Response = Response { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | fn test(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | fn test2(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `functions` is never used [INFO] [stdout] --> src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn functions(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "fa51425920d900abc67c3a927378857351fdd52c0fb4ed700492529099541341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa51425920d900abc67c3a927378857351fdd52c0fb4ed700492529099541341", kill_on_drop: false }` [INFO] [stdout] fa51425920d900abc67c3a927378857351fdd52c0fb4ed700492529099541341 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2748c7ade20a3700d3d5d7ecfae38df1fac3d2660f83b3bcebcc201a3dbe9c73 [INFO] running `Command { std: "docker" "start" "-a" "2748c7ade20a3700d3d5d7ecfae38df1fac3d2660f83b3bcebcc201a3dbe9c73", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `SeekFrom`, `fmt::format`, and `string` [INFO] [stdout] --> src/server/server.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Write, SeekFrom [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | fmt::format, string [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/server/server.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut res: Response = Response { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lava-http v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | fn test(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | fn test2(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `functions` is never used [INFO] [stdout] --> src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn functions(mut res: Response, req: &Request) -> Response{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeekFrom`, `fmt::format`, and `string` [INFO] [stdout] --> src/server/server.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Write, SeekFrom [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | fmt::format, string [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/server/server.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut res: Response = Response { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "2748c7ade20a3700d3d5d7ecfae38df1fac3d2660f83b3bcebcc201a3dbe9c73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2748c7ade20a3700d3d5d7ecfae38df1fac3d2660f83b3bcebcc201a3dbe9c73", kill_on_drop: false }` [INFO] [stdout] 2748c7ade20a3700d3d5d7ecfae38df1fac3d2660f83b3bcebcc201a3dbe9c73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c0ba026672b4b68a35580af87d778a2c10949391e2c315559c8993bfc842273b [INFO] running `Command { std: "docker" "start" "-a" "c0ba026672b4b68a35580af87d778a2c10949391e2c315559c8993bfc842273b", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `SeekFrom`, `fmt::format`, and `string` [INFO] [stderr] --> src/server/server.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | Write, SeekFrom [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 9 | }, [INFO] [stderr] 10 | fmt::format, string [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `res` is never read [INFO] [stderr] --> src/server/server.rs:83:21 [INFO] [stderr] | [INFO] [stderr] 83 | let mut res: Response = Response { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `lava-http` (lib) generated 2 warnings (run `cargo fix --lib -p lava-http` to apply 1 suggestion) [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/main.rs:38:28 [INFO] [stderr] | [INFO] [stderr] 38 | fn test(mut res: Response, req: &Request) -> Response{ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/main.rs:44:29 [INFO] [stderr] | [INFO] [stderr] 44 | fn test2(mut res: Response, req: &Request) -> Response{ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: function `functions` is never used [INFO] [stderr] --> src/main.rs:10:4 [INFO] [stderr] | [INFO] [stderr] 10 | fn functions(mut res: Response, req: &Request) -> Response{ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `lava-http` (bin "lava-http" test) generated 3 warnings [INFO] [stderr] warning: `lava-http` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lava_http-882bf69ca86faf8e) [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/main.rs (/opt/rustwide/target/debug/deps/lava_http-b262292bd290cafd) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests lava_http [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 13 tests [INFO] [stdout] test src/response/res.rs - response::res::Response::append_string_header (line 166) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::set_header (line 110) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::get_body (line 88) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::append_header (line 127) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::get_status (line 33) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::clear_header (line 146) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::send_body (line 43) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::redirect (line 187) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::set_status (line 17) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::set_string_header (line 156) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::send_file (line 61) ... FAILED [INFO] [stdout] test src/response/res.rs - response::res::Response::get_header (line 178) ... FAILED [INFO] [stdout] test src/server/server.rs - server::server::Server::erupt (line 59) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/response/res.rs - response::res::Response::append_string_header (line 166) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.append_string_header("Key: Value"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::set_header (line 110) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/response/res.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut headers: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/response/res.rs:111:40 [INFO] [stdout] | [INFO] [stdout] 3 | let mut headers: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 7 | res.set_header(&headers); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::get_body (line 88) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.get_body(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::append_header (line 127) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/response/res.rs:128:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut headers: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/response/res.rs:128:40 [INFO] [stdout] | [INFO] [stdout] 3 | let mut headers: HashMap<&str, &str> = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:132:1 [INFO] [stdout] | [INFO] [stdout] 7 | res.append_header(&headers); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::get_status (line 33) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.get_status(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::clear_header (line 146) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.clear_header(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::send_body (line 43) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.send_body("body content"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::redirect (line 187) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.redirect("/path"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::set_status (line 17) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.set_status(404); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::set_string_header (line 156) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.set_string_header("Key: Value"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::send_file (line 61) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.send_file("path.html"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response/res.rs - response::res::Response::get_header (line 178) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `res` in this scope [INFO] [stdout] --> src/response/res.rs:179:1 [INFO] [stdout] | [INFO] [stdout] 3 | res.get_header(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server/server.rs - server::server::Server::erupt (line 59) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Server` in this scope [INFO] [stdout] --> src/server/server.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 3 | let server: Server = Server{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use lava_http::server::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Server` in this scope [INFO] [stdout] --> src/server/server.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 3 | let server: Server = Server{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use lava_http::server::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `routes` in this scope [INFO] [stdout] --> src/server/server.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 6 | routes: routes [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/response/res.rs - response::res::Response::append_header (line 127) [INFO] [stdout] src/response/res.rs - response::res::Response::append_string_header (line 166) [INFO] [stdout] src/response/res.rs - response::res::Response::clear_header (line 146) [INFO] [stdout] src/response/res.rs - response::res::Response::get_body (line 88) [INFO] [stdout] src/response/res.rs - response::res::Response::get_header (line 178) [INFO] [stdout] src/response/res.rs - response::res::Response::get_status (line 33) [INFO] [stdout] src/response/res.rs - response::res::Response::redirect (line 187) [INFO] [stdout] src/response/res.rs - response::res::Response::send_body (line 43) [INFO] [stdout] src/response/res.rs - response::res::Response::send_file (line 61) [INFO] [stdout] src/response/res.rs - response::res::Response::set_header (line 110) [INFO] [stdout] src/response/res.rs - response::res::Response::set_status (line 17) [INFO] [stdout] src/response/res.rs - response::res::Response::set_string_header (line 156) [INFO] [stdout] src/server/server.rs - server::server::Server::erupt (line 59) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c0ba026672b4b68a35580af87d778a2c10949391e2c315559c8993bfc842273b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0ba026672b4b68a35580af87d778a2c10949391e2c315559c8993bfc842273b", kill_on_drop: false }` [INFO] [stdout] c0ba026672b4b68a35580af87d778a2c10949391e2c315559c8993bfc842273b