[INFO] fetching crate rust_web_framework 0.1.6... [INFO] testing rust_web_framework-0.1.6 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rust_web_framework 0.1.6 into /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_web_framework 0.1.6 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65715c9f3cdbff6fa3809f7408d10984e061746100c04337cae6ab51011eca42 [INFO] running `Command { std: "docker" "start" "-a" "65715c9f3cdbff6fa3809f7408d10984e061746100c04337cae6ab51011eca42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65715c9f3cdbff6fa3809f7408d10984e061746100c04337cae6ab51011eca42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65715c9f3cdbff6fa3809f7408d10984e061746100c04337cae6ab51011eca42", kill_on_drop: false }` [INFO] [stdout] 65715c9f3cdbff6fa3809f7408d10984e061746100c04337cae6ab51011eca42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b024658c4a449c65331ba64531ad7bdc13bdf5ab23d9afb0e24d0eb92f77ede2 [INFO] running `Command { std: "docker" "start" "-a" "b024658c4a449c65331ba64531ad7bdc13bdf5ab23d9afb0e24d0eb92f77ede2", 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.63s [INFO] running `Command { std: "docker" "inspect" "b024658c4a449c65331ba64531ad7bdc13bdf5ab23d9afb0e24d0eb92f77ede2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b024658c4a449c65331ba64531ad7bdc13bdf5ab23d9afb0e24d0eb92f77ede2", kill_on_drop: false }` [INFO] [stdout] b024658c4a449c65331ba64531ad7bdc13bdf5ab23d9afb0e24d0eb92f77ede2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89fa8816015592ebd9c469b97666a68440aad77c4469ab4752b69cc9c02c74de [INFO] running `Command { std: "docker" "start" "-a" "89fa8816015592ebd9c469b97666a68440aad77c4469ab4752b69cc9c02c74de", 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.40s [INFO] running `Command { std: "docker" "inspect" "89fa8816015592ebd9c469b97666a68440aad77c4469ab4752b69cc9c02c74de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89fa8816015592ebd9c469b97666a68440aad77c4469ab4752b69cc9c02c74de", kill_on_drop: false }` [INFO] [stdout] 89fa8816015592ebd9c469b97666a68440aad77c4469ab4752b69cc9c02c74de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7859c429baa7d4b465fcb26f894e085b49e746883ad631b96d55b52af9157a48 [INFO] running `Command { std: "docker" "start" "-a" "7859c429baa7d4b465fcb26f894e085b49e746883ad631b96d55b52af9157a48", 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.02s [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] [stderr] Doc-tests rust_web_framework [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 8 tests [INFO] [stdout] test src/request_info.rs - request_info::RequestInfo<'_>::parse_req (line 25) ... FAILED [INFO] [stdout] test src/response.rs - response::not_found (line 153) ... FAILED [INFO] [stdout] test src/response.rs - response::respond (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - Function (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - start (line 146) ... FAILED [INFO] [stdout] test src/response.rs - response::with_file (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - Route (line 116) ... FAILED [INFO] [stdout] test src/request.rs - request::require_headers (line 26) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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::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/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/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/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::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 - 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] ---- 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] [stderr] error: doctest failed, to rerun pass `--doc` [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.21s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7859c429baa7d4b465fcb26f894e085b49e746883ad631b96d55b52af9157a48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7859c429baa7d4b465fcb26f894e085b49e746883ad631b96d55b52af9157a48", kill_on_drop: false }` [INFO] [stdout] 7859c429baa7d4b465fcb26f894e085b49e746883ad631b96d55b52af9157a48