[INFO] fetching crate speed-rs-core 0.4.1... [INFO] testing speed-rs-core-0.4.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate speed-rs-core 0.4.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate speed-rs-core 0.4.1 [INFO] finished tweaking crates.io crate speed-rs-core 0.4.1 [INFO] tweaked toml for crates.io crate speed-rs-core 0.4.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate speed-rs-core 0.4.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate speed-rs-core 0.4.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6faff19731d6d4d0f64f8803050a7d40eb933ef72dc6fb4c228f450f1a96a14 [INFO] running `Command { std: "docker" "start" "-a" "c6faff19731d6d4d0f64f8803050a7d40eb933ef72dc6fb4c228f450f1a96a14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6faff19731d6d4d0f64f8803050a7d40eb933ef72dc6fb4c228f450f1a96a14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6faff19731d6d4d0f64f8803050a7d40eb933ef72dc6fb4c228f450f1a96a14", kill_on_drop: false }` [INFO] [stdout] c6faff19731d6d4d0f64f8803050a7d40eb933ef72dc6fb4c228f450f1a96a14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 514b878c00fb8eb8795ecd23aae7ae02e7b448ce70b0963d8b43d5dafbd0c2ba [INFO] running `Command { std: "docker" "start" "-a" "514b878c00fb8eb8795ecd23aae7ae02e7b448ce70b0963d8b43d5dafbd0c2ba", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling speed-rs-core v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RequestErrorHandleFunc` [INFO] [stdout] --> src/utils.rs:5:89 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{HttpRequest, HttpServer, HttpStatusStruct, HttpResponse, RequestHandleFunc, RequestErrorHandleFunc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct HttpServerThreadPool { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 80 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct HttpServerThreadExecutor { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 86 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.05s [INFO] running `Command { std: "docker" "inspect" "514b878c00fb8eb8795ecd23aae7ae02e7b448ce70b0963d8b43d5dafbd0c2ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "514b878c00fb8eb8795ecd23aae7ae02e7b448ce70b0963d8b43d5dafbd0c2ba", kill_on_drop: false }` [INFO] [stdout] 514b878c00fb8eb8795ecd23aae7ae02e7b448ce70b0963d8b43d5dafbd0c2ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 988d761281812e10e50e23a15e50ce78785034f17a8426071bf5a3728ef8f594 [INFO] running `Command { std: "docker" "start" "-a" "988d761281812e10e50e23a15e50ce78785034f17a8426071bf5a3728ef8f594", kill_on_drop: false }` [INFO] [stderr] Compiling speed-rs-core v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RequestErrorHandleFunc` [INFO] [stdout] --> src/utils.rs:5:89 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{HttpRequest, HttpServer, HttpStatusStruct, HttpResponse, RequestHandleFunc, RequestErrorHandleFunc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct HttpServerThreadPool { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 80 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct HttpServerThreadExecutor { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 86 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestErrorHandleFunc` [INFO] [stdout] --> src/utils.rs:5:89 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{HttpRequest, HttpServer, HttpStatusStruct, HttpResponse, RequestHandleFunc, RequestErrorHandleFunc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct HttpServerThreadPool { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 80 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct HttpServerThreadExecutor { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 86 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "988d761281812e10e50e23a15e50ce78785034f17a8426071bf5a3728ef8f594", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "988d761281812e10e50e23a15e50ce78785034f17a8426071bf5a3728ef8f594", kill_on_drop: false }` [INFO] [stdout] 988d761281812e10e50e23a15e50ce78785034f17a8426071bf5a3728ef8f594 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 33c7ea813b72ec59309829fa45b7c6d7dff1ca76d380414d5bd63ca546316c1e [INFO] running `Command { std: "docker" "start" "-a" "33c7ea813b72ec59309829fa45b7c6d7dff1ca76d380414d5bd63ca546316c1e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `RequestErrorHandleFunc` [INFO] [stderr] --> src/utils.rs:5:89 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{HttpRequest, HttpServer, HttpStatusStruct, HttpResponse, RequestHandleFunc, RequestErrorHandleFunc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `size` is never read [INFO] [stderr] --> src/lib.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 79 | pub struct HttpServerThreadPool { [INFO] [stderr] | -------------------- field in this struct [INFO] [stderr] 80 | size: usize, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/lib.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 85 | struct HttpServerThreadExecutor { [INFO] [stderr] | ------------------------ field in this struct [INFO] [stderr] 86 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: `speed-rs-core` (lib) generated 3 warnings (run `cargo fix --lib -p speed-rs-core` to apply 1 suggestion) [INFO] [stderr] warning: `speed-rs-core` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/speed_rs_core-9a19c62998b58f17) [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 speed_rs_core [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - HttpServerMode (line 25) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 106) ... FAILED [INFO] [stdout] test src/lib.rs - RequestErrorHandleFunc (line 53) ... FAILED [INFO] [stdout] test src/lib.rs - RequestHandleFunc (line 41) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 98) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerThreadPool (line 76) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Routing (line 190) ... FAILED [INFO] [stdout] test src/lib.rs - HttpStatusStruct (line 68) ... FAILED [INFO] [stdout] test src/utils.rs - utils::MoreDetailsRequest (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 94) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 159) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer::set_error_handler (line 349) ... FAILED [INFO] [stdout] test src/utils.rs - utils::break_request_uri (line 8) ... FAILED [INFO] [stdout] test src/utils.rs - utils::ServeStatic (line 56) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - HttpServerMode (line 25) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServer` [INFO] [stdout] --> src/lib.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = HttpServer::new(HttpServerMode::SingleThread, "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerMode` [INFO] [stdout] --> src/lib.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = HttpServer::new(HttpServerMode::SingleThread, "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `HttpServerMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServer` [INFO] [stdout] --> src/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 4 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerMode` [INFO] [stdout] --> src/lib.rs:27:34 [INFO] [stdout] | [INFO] [stdout] 4 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `HttpServerMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerThreadPool` [INFO] [stdout] --> src/lib.rs:27:62 [INFO] [stdout] | [INFO] [stdout] 4 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `HttpServerThreadPool` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerThreadPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - HttpServer (line 106) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.listen(|| { [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/lib.rs - RequestErrorHandleFunc (line 53) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.set_error_handler(|req, mut res, err| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/lib.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 4 | res.set_status(HttpStatusStruct(500, "Interal Server Error")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpStatusStruct; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RequestHandleFunc (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.insert_handler(|mut req, mut res| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/lib.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 4 | res.set_status(HttpStatusStruct(200, "OK")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpStatusStruct; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - HttpServer (line 98) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.insert_handler(|mut req, mut res| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/lib.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 4 | res.set_status(HttpStatusStruct(200, "OK")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpStatusStruct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 6 | Ok(req, res) [INFO] [stdout] | ^^ --- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/result.rs:553:5 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 6 - Ok(req, res) [INFO] [stdout] 6 + Ok(req) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - HttpServerThreadPool (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerThreadPool` [INFO] [stdout] --> src/lib.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 3 | HttpServerThreadPool::new(4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `HttpServerThreadPool` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerThreadPool; [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/utils.rs - utils::Routing (line 190) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 6 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 6 - ... [INFO] [stdout] 6 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 6 - ... [INFO] [stdout] 6 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/utils.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut router = Router::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/utils.rs:197:1 [INFO] [stdout] | [INFO] [stdout] 9 | server.insert_router(router); [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: 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 - HttpStatusStruct (line 68) stdout ---- [INFO] [stdout] error: missing `fn` or `struct` for function or struct definition [INFO] [stdout] --> src/lib.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 1 | HttpStatusStruct(200, "OK") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if you meant to call a macro, try [INFO] [stdout] | [INFO] [stdout] 1 | HttpStatusStruct!(200, "OK") [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::MoreDetailsRequest (line 30) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/utils.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.insert_handler(|req, res| { [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/lib.rs - HttpServer (line 94) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServer` [INFO] [stdout] --> src/lib.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerMode` [INFO] [stdout] --> src/lib.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `HttpServerMode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpServerThreadPool` [INFO] [stdout] --> src/lib.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = HttpServer::new(HttpServerMode::MultiThread(HttpServerThreadPool::new(2)), "127.0.0.1:3000"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `HttpServerThreadPool` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpServerThreadPool; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::Router (line 159) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/utils.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut router = Router::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/utils.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 5 | router.define_route(Route::get("/test/", |req, res| { [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/utils.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 7 | res.set_status(HttpStatusStruct(200, "OK")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpStatusStruct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/utils.rs - utils::Router (line 170) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:171:54 [INFO] [stdout] | [INFO] [stdout] 3 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 3 + router.define_route(Route::all("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 3 + router.define_route(Route::all("/test/", |req, res| {..=})); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/utils.rs:171:54 [INFO] [stdout] | [INFO] [stdout] 3 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 3 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 3 + router.define_route(Route::all("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:172:54 [INFO] [stdout] | [INFO] [stdout] 4 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 4 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 4 + router.define_route(Route::get("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 4 + router.define_route(Route::get("/test/", |req, res| {..=})); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/utils.rs:172:54 [INFO] [stdout] | [INFO] [stdout] 4 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 4 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 4 + router.define_route(Route::get("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `router` in this scope [INFO] [stdout] --> src/utils.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 3 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/utils.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 3 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::Route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `router` in this scope [INFO] [stdout] --> src/utils.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 4 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Route` [INFO] [stdout] --> src/utils.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 4 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^ use of undeclared type `Route` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::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, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - HttpServer::set_error_handler (line 349) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.set_error_handler(|req, mut res, err| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/lib.rs:351:20 [INFO] [stdout] | [INFO] [stdout] 4 | res.set_status(HttpStatusStruct(500, "Interal Server Error")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::HttpStatusStruct; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::break_request_uri (line 8) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/utils.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.insert_handler(|req, res| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `break_request_uri` in this scope [INFO] [stdout] --> src/utils.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 4 | let (path, params) = break_request_uri(&req); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use speed_rs_core::utils::break_request_uri; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::ServeStatic (line 56) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/utils.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 3 | server.serve_static(None); // Default folder is "public" [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/utils.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 4 | server.serve_static(Some(String::from("your_dir"))); [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 - HttpServer (line 106) [INFO] [stdout] src/lib.rs - HttpServer (line 94) [INFO] [stdout] src/lib.rs - HttpServer (line 98) [INFO] [stdout] src/lib.rs - HttpServer::set_error_handler (line 349) [INFO] [stdout] src/lib.rs - HttpServerMode (line 25) [INFO] [stdout] src/lib.rs - HttpServerThreadPool (line 76) [INFO] [stdout] src/lib.rs - HttpStatusStruct (line 68) [INFO] [stdout] src/lib.rs - RequestErrorHandleFunc (line 53) [INFO] [stdout] src/lib.rs - RequestHandleFunc (line 41) [INFO] [stdout] src/utils.rs - utils::MoreDetailsRequest (line 30) [INFO] [stdout] src/utils.rs - utils::Router (line 159) [INFO] [stdout] src/utils.rs - utils::Router (line 170) [INFO] [stdout] src/utils.rs - utils::Routing (line 190) [INFO] [stdout] src/utils.rs - utils::ServeStatic (line 56) [INFO] [stdout] src/utils.rs - utils::break_request_uri (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.66s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "33c7ea813b72ec59309829fa45b7c6d7dff1ca76d380414d5bd63ca546316c1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33c7ea813b72ec59309829fa45b7c6d7dff1ca76d380414d5bd63ca546316c1e", kill_on_drop: false }` [INFO] [stdout] 33c7ea813b72ec59309829fa45b7c6d7dff1ca76d380414d5bd63ca546316c1e