[INFO] fetching crate responder 0.1.991... [INFO] testing responder-0.1.991 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate responder 0.1.991 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate responder 0.1.991 [INFO] finished tweaking crates.io crate responder 0.1.991 [INFO] tweaked toml for crates.io crate responder 0.1.991 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate responder 0.1.991 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] crate crates.io crate responder 0.1.991 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 73b9a5d9a0ab9ffaded4470e6a131185ee7e587b99ee10bf3077fbf16e617d0c [INFO] running `Command { std: "docker" "start" "-a" "73b9a5d9a0ab9ffaded4470e6a131185ee7e587b99ee10bf3077fbf16e617d0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73b9a5d9a0ab9ffaded4470e6a131185ee7e587b99ee10bf3077fbf16e617d0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73b9a5d9a0ab9ffaded4470e6a131185ee7e587b99ee10bf3077fbf16e617d0c", kill_on_drop: false }` [INFO] [stdout] 73b9a5d9a0ab9ffaded4470e6a131185ee7e587b99ee10bf3077fbf16e617d0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 654093664bd2d42ec32d77cac8d9ffd7ef0e13a6870ca15cca7756c056e08ce9 [INFO] running `Command { std: "docker" "start" "-a" "654093664bd2d42ec32d77cac8d9ffd7ef0e13a6870ca15cca7756c056e08ce9", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling responder v0.1.991 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | 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] 76 | pub fn parse_req(request:&str) -> Result, u8> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "654093664bd2d42ec32d77cac8d9ffd7ef0e13a6870ca15cca7756c056e08ce9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "654093664bd2d42ec32d77cac8d9ffd7ef0e13a6870ca15cca7756c056e08ce9", kill_on_drop: false }` [INFO] [stdout] 654093664bd2d42ec32d77cac8d9ffd7ef0e13a6870ca15cca7756c056e08ce9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c69020faf4e08a1e21f859402d92a6a5edf830fb7245a6b6dc8857d5b72dcee1 [INFO] running `Command { std: "docker" "start" "-a" "c69020faf4e08a1e21f859402d92a6a5edf830fb7245a6b6dc8857d5b72dcee1", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | 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] 76 | pub fn parse_req(request:&str) -> Result, u8> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling responder v0.1.991 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | 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] 76 | pub fn parse_req(request:&str) -> Result, u8> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.12s [INFO] running `Command { std: "docker" "inspect" "c69020faf4e08a1e21f859402d92a6a5edf830fb7245a6b6dc8857d5b72dcee1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c69020faf4e08a1e21f859402d92a6a5edf830fb7245a6b6dc8857d5b72dcee1", kill_on_drop: false }` [INFO] [stdout] c69020faf4e08a1e21f859402d92a6a5edf830fb7245a6b6dc8857d5b72dcee1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 52cfc07a8562f540280729c80fa2a08c2de6f8eda56e9ef8cf04e90ea43a4e07 [INFO] running `Command { std: "docker" "start" "-a" "52cfc07a8562f540280729c80fa2a08c2de6f8eda56e9ef8cf04e90ea43a4e07", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/request.rs:76:34 [INFO] [stderr] | [INFO] [stderr] 76 | 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] 76 | pub fn parse_req(request:&str) -> Result, u8> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `responder` (lib) generated 1 warning (run `cargo fix --lib -p responder` to apply 1 suggestion) [INFO] [stderr] warning: `responder` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/responder-e5f15ca78ab9390c) [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 responder [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/response.rs - response::Respond::text (line 142) ... FAILED [INFO] [stdout] test src/response.rs - response::Respond::json (line 158) ... FAILED [INFO] [stdout] test src/lib.rs - Server::start (line 518) ... FAILED [INFO] [stdout] test src/response.rs - response::Respond (line 45) ... FAILED [INFO] [stdout] test src/response.rs - response::not_found (line 78) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::expect_headers (line 215) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::respond_file (line 273) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::payload_status (line 150) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::get_cookies (line 317) ... FAILED [INFO] [stdout] test src/response.rs - response::Respond::content (line 205) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::get_mut_inner_ref (line 170) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::redirect (line 181) ... FAILED [INFO] [stdout] test src/request.rs - request::info::RequestInfo<'_>::parse_req (line 73) ... FAILED [INFO] [stdout] test src/response.rs - response::Respond::html (line 175) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::respond (line 41) ... FAILED [INFO] [stdout] test src/lib.rs - Route (line 100) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::expect_headers_ignore_caps (line 245) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::payload (line 140) ... FAILED [INFO] [stdout] test src/stream.rs - stream::Stream<'a>::respond_status (line 107) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/response.rs - response::Respond::text (line 142) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:143:1 [INFO] [stdout] | [INFO] [stdout] 3 | Respond::new().text("Hello, world!"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/response.rs - response::Respond::json (line 158) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:159:1 [INFO] [stdout] | [INFO] [stdout] 3 | Respond::new().json("{{\"hello\":\"world!\"}}"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Server::start (line 518) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Server` [INFO] [stdout] --> src/lib.rs:519:1 [INFO] [stdout] | [INFO] [stdout] 3 | Server::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Server` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `routes` in this scope [INFO] [stdout] --> src/lib.rs:520:13 [INFO] [stdout] | [INFO] [stdout] 4 | .routes(routes) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] ---- src/response.rs - response::Respond (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 3 | let text_response = Respond::new().text("Hello, world!"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 4 | let json_response = Respond::new().json("{{\"key\": \"value\"}}"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/response.rs - response::not_found (line 78) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `not_found` in this scope [INFO] [stdout] --> src/response.rs:79: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 responder::not_found; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/response.rs:79: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:79: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/stream.rs - stream::Stream<'a>::expect_headers (line 215) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 4 | if stream.expect_headers(&["authentification"]) { return; }; [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/stream.rs - stream::Stream<'a>::respond_file (line 273) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:274:1 [INFO] [stdout] | [INFO] [stdout] 3 | stream.respond_file(200u16, "/path/to/file.png") [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/stream.rs - stream::Stream<'a>::payload_status (line 150) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 4 | stream.payload_status(200); [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/stream.rs - stream::Stream<'a>::get_cookies (line 317) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/stream.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 3 | let cookies:HashMap<&str, &str> = stream.get_cookies(); [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 value `stream` in this scope [INFO] [stdout] --> src/stream.rs:318:35 [INFO] [stdout] | [INFO] [stdout] 3 | let cookies:HashMap<&str, &str> = stream.get_cookies(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [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::Respond::content (line 205) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:206:1 [INFO] [stdout] | [INFO] [stdout] 3 | Respond::new().content("

Hello!

", ResponseType::Html); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseType` [INFO] [stdout] --> src/response.rs:206:69 [INFO] [stdout] | [INFO] [stdout] 3 | Respond::new().content("

Hello!

", ResponseType::Html); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::response::ResponseType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/stream.rs - stream::Stream<'a>::get_mut_inner_ref (line 170) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 3 | stream.get_mut_inner_ref(); [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/stream.rs - stream::Stream<'a>::redirect (line 181) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Stream` in this scope [INFO] [stdout] --> src/stream.rs:182:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn redirect_user(stream:&mut Stream) -> () { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/request.rs - request::info::RequestInfo<'_>::parse_req (line 73) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RequestInfo` in this scope [INFO] [stdout] --> src/request.rs:74: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 responder::request::info::RequestInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestInfo` [INFO] [stdout] --> src/request.rs:74: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 responder::request::info::RequestInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `request` in this scope [INFO] [stdout] --> src/request.rs:74: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::Respond::html (line 175) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/response.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 3 | Respond::new().html("

Hello!

"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/stream.rs - stream::Stream<'a>::respond (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] --> src/stream.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 4 | stream.respond(200u16, Respond::new().text("Hello, world!")); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/stream.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 4 | stream.respond(200u16, Respond::new().text("Hello, world!")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 7 | stream.respond(200u16, Respond::new().json("{{\"key\":\"value\"}}")); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Respond` [INFO] [stdout] --> src/stream.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 7 | stream.respond(200u16, Respond::new().json("{{\"key\":\"value\"}}")); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Respond` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Respond; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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] ---- src/lib.rs - Route (line 100) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:103: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 responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 6 | Route::Post("value", |stream| {}), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:105: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 responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 8 | Route::Get("value1", |stream| {}), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 9 | Route::Get("value2", |stream| {}), [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 11 | Route::ControlledStack(origin_control, "admin", &[ [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `origin_control` in this scope [INFO] [stdout] --> src/lib.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 11 | Route::ControlledStack(origin_control, "admin", &[ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/lib.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 12 | Route::Get("self-destruct", |stream| {}) [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use responder::Route; [INFO] [stdout] | [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] ---- src/stream.rs - stream::Stream<'a>::expect_headers_ignore_caps (line 245) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 4 | if stream.expect_headers(&["authentification"]) { return; }; [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/stream.rs - stream::Stream<'a>::payload (line 140) stdout ---- [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/stream.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 4 | stream.payload(json!({"key":"value"})); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 4 | stream.payload(json!({"key":"value"})); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/stream.rs - stream::Stream<'a>::respond_status (line 107) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 4 | stream.respond_status(200u16); // Response body will look like this: "200 OK" [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stream` in this scope [INFO] [stdout] --> src/stream.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 7 | stream.respond_status(600u16); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Route (line 100) [INFO] [stdout] src/lib.rs - Server::start (line 518) [INFO] [stdout] src/request.rs - request::info::RequestInfo<'_>::parse_req (line 73) [INFO] [stdout] src/response.rs - response::Respond (line 45) [INFO] [stdout] src/response.rs - response::Respond::content (line 205) [INFO] [stdout] src/response.rs - response::Respond::html (line 175) [INFO] [stdout] src/response.rs - response::Respond::json (line 158) [INFO] [stdout] src/response.rs - response::Respond::text (line 142) [INFO] [stdout] src/response.rs - response::not_found (line 78) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::expect_headers (line 215) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::expect_headers_ignore_caps (line 245) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::get_cookies (line 317) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::get_mut_inner_ref (line 170) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::payload (line 140) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::payload_status (line 150) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::redirect (line 181) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::respond (line 41) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::respond_file (line 273) [INFO] [stdout] src/stream.rs - stream::Stream<'a>::respond_status (line 107) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "52cfc07a8562f540280729c80fa2a08c2de6f8eda56e9ef8cf04e90ea43a4e07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52cfc07a8562f540280729c80fa2a08c2de6f8eda56e9ef8cf04e90ea43a4e07", kill_on_drop: false }` [INFO] [stdout] 52cfc07a8562f540280729c80fa2a08c2de6f8eda56e9ef8cf04e90ea43a4e07