[INFO] fetching crate rust_web_framework 0.1.6... [INFO] testing rust_web_framework-0.1.6 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate rust_web_framework 0.1.6 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate rust_web_framework 0.1.6 [INFO] finished tweaking crates.io crate rust_web_framework 0.1.6 [INFO] tweaked toml for crates.io crate rust_web_framework 0.1.6 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_web_framework 0.1.6 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terminal-link v0.1.0 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ceb62bb7393d68f6b1b2e7e86ced72ed03214592d0a7b87bbc2de90bdb8d9284 [INFO] running `Command { std: "docker" "start" "-a" "ceb62bb7393d68f6b1b2e7e86ced72ed03214592d0a7b87bbc2de90bdb8d9284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ceb62bb7393d68f6b1b2e7e86ced72ed03214592d0a7b87bbc2de90bdb8d9284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ceb62bb7393d68f6b1b2e7e86ced72ed03214592d0a7b87bbc2de90bdb8d9284", kill_on_drop: false }` [INFO] [stdout] ceb62bb7393d68f6b1b2e7e86ced72ed03214592d0a7b87bbc2de90bdb8d9284 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82f67bb7ffbd2273ceef0ba4d4c172ae627d3de766c1455aed4ceb2623b096f1 [INFO] running `Command { std: "docker" "start" "-a" "82f67bb7ffbd2273ceef0ba4d4c172ae627d3de766c1455aed4ceb2623b096f1", kill_on_drop: false }` [INFO] [stderr] Compiling terminal-link v0.1.0 [INFO] [stderr] Compiling rust_web_framework v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request_info.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result, ()> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "82f67bb7ffbd2273ceef0ba4d4c172ae627d3de766c1455aed4ceb2623b096f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82f67bb7ffbd2273ceef0ba4d4c172ae627d3de766c1455aed4ceb2623b096f1", kill_on_drop: false }` [INFO] [stdout] 82f67bb7ffbd2273ceef0ba4d4c172ae627d3de766c1455aed4ceb2623b096f1 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35113683d389aafd3bd1a4a842e21f111d4731c2b49773e5e568c1b2faad600d [INFO] running `Command { std: "docker" "start" "-a" "35113683d389aafd3bd1a4a842e21f111d4731c2b49773e5e568c1b2faad600d", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request_info.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result, ()> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust_web_framework v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request_info.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn parse_req(request:&str) -> Result, ()> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "35113683d389aafd3bd1a4a842e21f111d4731c2b49773e5e568c1b2faad600d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35113683d389aafd3bd1a4a842e21f111d4731c2b49773e5e568c1b2faad600d", kill_on_drop: false }` [INFO] [stdout] 35113683d389aafd3bd1a4a842e21f111d4731c2b49773e5e568c1b2faad600d [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 18ef916180bc42a79088ba7b0c11c2ceb18105fcf0f199105d2f65595e9265c6 [INFO] running `Command { std: "docker" "start" "-a" "18ef916180bc42a79088ba7b0c11c2ceb18105fcf0f199105d2f65595e9265c6", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/request_info.rs:28:30 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn parse_req(request:&str) -> Result { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 28 | pub fn parse_req(request:&str) -> Result, ()> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `rust_web_framework` (lib) generated 1 warning (run `cargo fix --lib -p rust_web_framework` to apply 1 suggestion) [INFO] [stderr] warning: `rust_web_framework` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_web_framework-a33060746fa1ce6d) [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 rust_web_framework [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - Function (line 72) ... FAILED [INFO] [stdout] test src/request_info.rs - request_info::RequestInfo<'_>::parse_req (line 25) ... FAILED [INFO] [stdout] test src/response.rs - response::with_file (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - start (line 146) ... FAILED [INFO] [stdout] test src/response.rs - response::respond (line 69) ... FAILED [INFO] [stdout] test src/response.rs - response::not_found (line 153) ... FAILED [INFO] [stdout] test src/request.rs - request::require_headers (line 26) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - Route (line 116) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Function (line 72) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `(` [INFO] [stdout] --> src/lib.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 2 | Route::Tail(Method::GET, "enpoint1", Function::S(some_function)), [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request_info.rs - request_info::RequestInfo<'_>::parse_req (line 25) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RequestInfo` in this scope [INFO] [stdout] --> src/request_info.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 3 | let info:RequestInfo = RequestInfo::parse_req(&request); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::RequestInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestInfo` [INFO] [stdout] --> src/request_info.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 3 | let info:RequestInfo = RequestInfo::parse_req(&request); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestInfo` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::RequestInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `request` in this scope [INFO] [stdout] --> src/request_info.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 3 | let info:RequestInfo = RequestInfo::parse_req(&request); [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.rs - response::with_file (line 170) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `respond` in this scope [INFO] [stdout] --> src/response.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 3 | respond(&mut stream, 200u16, with_file("/path/to/file.png")) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:171:14 [INFO] [stdout] | [INFO] [stdout] 3 | respond(&mut stream, 200u16, with_file("/path/to/file.png")) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_file` in this scope [INFO] [stdout] --> src/response.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 3 | respond(&mut stream, 200u16, with_file("/path/to/file.png")) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::with_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - start (line 146) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `start` in this scope [INFO] [stdout] --> src/lib.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 3 | start(ServerConfig { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::start; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerConfig` in this scope [INFO] [stdout] --> src/lib.rs:147:7 [INFO] [stdout] | [INFO] [stdout] 3 | start(ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::ServerConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `routes` in this scope [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 8 | 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: E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::respond (line 69) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `respond` in this scope [INFO] [stdout] --> src/response.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 4 | respond(&mut stream, 200u16, None); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 4 | respond(&mut stream, 200u16, None); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `respond` in this scope [INFO] [stdout] --> src/response.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 7 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 7 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Respond` in this scope [INFO] [stdout] --> src/response.rs:74:35 [INFO] [stdout] | [INFO] [stdout] 7 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseType` [INFO] [stdout] --> src/response.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 9 | response_type: ResponseType::Text, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::ResponseType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `respond` in this scope [INFO] [stdout] --> src/response.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 13 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 13 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Respond` in this scope [INFO] [stdout] --> src/response.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 13 | respond(&mut stream, 200u16, Some(Respond { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseType` [INFO] [stdout] --> src/response.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 17 | response_type: ResponseType::Text, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::ResponseType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::not_found (line 153) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `not_found` in this scope [INFO] [stdout] --> src/response.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 3 | not_found(&mut stream, config); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::not_found; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:154:16 [INFO] [stdout] | [INFO] [stdout] 3 | not_found(&mut stream, config); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `config` in this scope [INFO] [stdout] --> src/response.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 3 | not_found(&mut stream, config); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::require_headers (line 26) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stdout] --> src/request.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn api_endpoint(mut stream:TcpStream, headers:HashMap<&str, &str>) -> () { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/request.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn api_endpoint(mut stream:TcpStream, headers:HashMap<&str, &str>) -> () { [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[E0425]: cannot find function `respond` in this scope [INFO] [stdout] --> src/request.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 8 | respond(&mut stream, 200u16, Respond::text("All headers exist!")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/request.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 8 | respond(&mut stream, 200u16, Respond::text("All headers exist!")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::response::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `require_headers` in this scope [INFO] [stdout] --> src/request.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 6 | if require_headers(&mut stream, headers, &["authorization"]) { return; }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - Route (line 116) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 4 | let routes = Route::Stack("", &[ [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 5 | Route::Stack("nest1", &[ [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 6 | Route::Tail(Method::POST, "value", Function::S(|_| {})), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/lib.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 6 | Route::Tail(Method::POST, "value", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/lib.rs:120:44 [INFO] [stdout] | [INFO] [stdout] 6 | Route::Tail(Method::POST, "value", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 7 | Route::Stack("nest2", &[ [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 8 | Route::Tail(Method::GET, "value1", Function::S(|_| {})), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/lib.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 8 | Route::Tail(Method::GET, "value1", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/lib.rs:122:48 [INFO] [stdout] | [INFO] [stdout] 8 | Route::Tail(Method::GET, "value1", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 9 | Route::Tail(Method::GET, "value2", Function::S(|_| {})), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/lib.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 9 | Route::Tail(Method::GET, "value2", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> src/lib.rs:123:48 [INFO] [stdout] | [INFO] [stdout] 9 | Route::Tail(Method::GET, "value2", Function::S(|_| {})), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Function` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rust_web_framework::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Function (line 72) [INFO] [stdout] src/lib.rs - Route (line 116) [INFO] [stdout] src/lib.rs - start (line 146) [INFO] [stdout] src/request.rs - request::require_headers (line 26) [INFO] [stdout] src/request_info.rs - request_info::RequestInfo<'_>::parse_req (line 25) [INFO] [stdout] src/response.rs - response::not_found (line 153) [INFO] [stdout] src/response.rs - response::respond (line 69) [INFO] [stdout] src/response.rs - response::with_file (line 170) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.40s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "18ef916180bc42a79088ba7b0c11c2ceb18105fcf0f199105d2f65595e9265c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18ef916180bc42a79088ba7b0c11c2ceb18105fcf0f199105d2f65595e9265c6", kill_on_drop: false }` [INFO] [stdout] 18ef916180bc42a79088ba7b0c11c2ceb18105fcf0f199105d2f65595e9265c6