[INFO] fetching crate speed-rs-core 0.4.1... [INFO] testing speed-rs-core-0.4.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate speed-rs-core 0.4.1 into /workspace/builds/worker-6-tc1/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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate speed-rs-core 0.4.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0081b1f41f31cfc6cdb3bfc8757eb7b28bec3965281b31b56729f7904bd97d21 [INFO] running `Command { std: "docker" "start" "-a" "0081b1f41f31cfc6cdb3bfc8757eb7b28bec3965281b31b56729f7904bd97d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0081b1f41f31cfc6cdb3bfc8757eb7b28bec3965281b31b56729f7904bd97d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0081b1f41f31cfc6cdb3bfc8757eb7b28bec3965281b31b56729f7904bd97d21", kill_on_drop: false }` [INFO] [stdout] 0081b1f41f31cfc6cdb3bfc8757eb7b28bec3965281b31b56729f7904bd97d21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cbd217f5568fec915916202c0021a3b8ca49c48858e0be9b0de86d46fc7bf83 [INFO] running `Command { std: "docker" "start" "-a" "6cbd217f5568fec915916202c0021a3b8ca49c48858e0be9b0de86d46fc7bf83", kill_on_drop: false }` [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)]` 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)]` 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 1.62s [INFO] running `Command { std: "docker" "inspect" "6cbd217f5568fec915916202c0021a3b8ca49c48858e0be9b0de86d46fc7bf83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cbd217f5568fec915916202c0021a3b8ca49c48858e0be9b0de86d46fc7bf83", kill_on_drop: false }` [INFO] [stdout] 6cbd217f5568fec915916202c0021a3b8ca49c48858e0be9b0de86d46fc7bf83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 987285683c911d84e5970ff6b0909c7561b3215b69db8fee077bc13bc787bc73 [INFO] running `Command { std: "docker" "start" "-a" "987285683c911d84e5970ff6b0909c7561b3215b69db8fee077bc13bc787bc73", 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)]` 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)]` 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)]` 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)]` 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.45s [INFO] running `Command { std: "docker" "inspect" "987285683c911d84e5970ff6b0909c7561b3215b69db8fee077bc13bc787bc73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "987285683c911d84e5970ff6b0909c7561b3215b69db8fee077bc13bc787bc73", kill_on_drop: false }` [INFO] [stdout] 987285683c911d84e5970ff6b0909c7561b3215b69db8fee077bc13bc787bc73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75a1a5f35bc3b273a2ee023bf44beeed6fe744dc795a9fec5b15ae2584d14e3e [INFO] running `Command { std: "docker" "start" "-a" "75a1a5f35bc3b273a2ee023bf44beeed6fe744dc795a9fec5b15ae2584d14e3e", 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)]` 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)]` 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.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/speed_rs_core-9a19c62998b58f17) [INFO] [stdout] [INFO] [stderr] Doc-tests speed_rs_core [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] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - HttpServerMode (line 25) ... FAILED [INFO] [stdout] test src/lib.rs - HttpStatusStruct (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerThreadPool (line 76) ... FAILED [INFO] [stdout] test src/utils.rs - utils::MoreDetailsRequest (line 30) ... FAILED [INFO] [stdout] test src/utils.rs - utils::break_request_uri (line 8) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 170) ... FAILED [INFO] [stdout] test src/utils.rs - utils::ServeStatic (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 98) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Routing (line 190) ... FAILED [INFO] [stdout] test src/lib.rs - RequestHandleFunc (line 41) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 94) ... FAILED [INFO] [stdout] test src/lib.rs - RequestErrorHandleFunc (line 53) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 106) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 159) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer::set_error_handler (line 349) ... 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 - 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/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::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/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::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/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] ---- 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/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/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/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 - 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 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/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 - 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/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/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] [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.43s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "75a1a5f35bc3b273a2ee023bf44beeed6fe744dc795a9fec5b15ae2584d14e3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75a1a5f35bc3b273a2ee023bf44beeed6fe744dc795a9fec5b15ae2584d14e3e", kill_on_drop: false }` [INFO] [stdout] 75a1a5f35bc3b273a2ee023bf44beeed6fe744dc795a9fec5b15ae2584d14e3e