[INFO] fetching crate speed-rs-core 0.4.1... [INFO] testing speed-rs-core-0.4.1 against master#1ddedbaa5919b7b3e70d984660e21e844c615c97 for pr-128400 [INFO] extracting crate speed-rs-core 0.4.1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate speed-rs-core 0.4.1 on toolchain 1ddedbaa5919b7b3e70d984660e21e844c615c97 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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] 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" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60ef7b7c1c8741b26fc99aaf0c65ab636cadd01b4d7618206ce681325b8bf8e7 [INFO] running `Command { std: "docker" "start" "-a" "60ef7b7c1c8741b26fc99aaf0c65ab636cadd01b4d7618206ce681325b8bf8e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60ef7b7c1c8741b26fc99aaf0c65ab636cadd01b4d7618206ce681325b8bf8e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60ef7b7c1c8741b26fc99aaf0c65ab636cadd01b4d7618206ce681325b8bf8e7", kill_on_drop: false }` [INFO] [stdout] 60ef7b7c1c8741b26fc99aaf0c65ab636cadd01b4d7618206ce681325b8bf8e7 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ad5c159b7feac26051610442a6c9b1e5aef505c930bff59104b1c999eb2c37a [INFO] running `Command { std: "docker" "start" "-a" "1ad5c159b7feac26051610442a6c9b1e5aef505c930bff59104b1c999eb2c37a", kill_on_drop: false }` [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling mime v0.3.17 [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] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.13s [INFO] running `Command { std: "docker" "inspect" "1ad5c159b7feac26051610442a6c9b1e5aef505c930bff59104b1c999eb2c37a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ad5c159b7feac26051610442a6c9b1e5aef505c930bff59104b1c999eb2c37a", kill_on_drop: false }` [INFO] [stdout] 1ad5c159b7feac26051610442a6c9b1e5aef505c930bff59104b1c999eb2c37a [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15656f9a89e64c468fad0fee28e90c2a7ab7ae9308e8971065c5c47a24ebbd91 [INFO] running `Command { std: "docker" "start" "-a" "15656f9a89e64c468fad0fee28e90c2a7ab7ae9308e8971065c5c47a24ebbd91", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: failed to download `mime v0.3.17` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] unable to get packages from source [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] attempting to make an HTTP request, but --frozen was specified [INFO] running `Command { std: "docker" "inspect" "15656f9a89e64c468fad0fee28e90c2a7ab7ae9308e8971065c5c47a24ebbd91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15656f9a89e64c468fad0fee28e90c2a7ab7ae9308e8971065c5c47a24ebbd91", kill_on_drop: false }` [INFO] [stdout] 15656f9a89e64c468fad0fee28e90c2a7ab7ae9308e8971065c5c47a24ebbd91 [INFO] testing speed-rs-core-0.4.1 against try#33f1d8bb92813a1bfc23c093c9f443ab09290307 for pr-128400 [INFO] extracting crate speed-rs-core 0.4.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate speed-rs-core 0.4.1 on toolchain 33f1d8bb92813a1bfc23c093c9f443ab09290307 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc2/source/Cargo.toml [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" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc24d90168ef503c1a99ea73192a146d6e3de873e501c615133eff271dfd24d6 [INFO] running `Command { std: "docker" "start" "-a" "bc24d90168ef503c1a99ea73192a146d6e3de873e501c615133eff271dfd24d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc24d90168ef503c1a99ea73192a146d6e3de873e501c615133eff271dfd24d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc24d90168ef503c1a99ea73192a146d6e3de873e501c615133eff271dfd24d6", kill_on_drop: false }` [INFO] [stdout] bc24d90168ef503c1a99ea73192a146d6e3de873e501c615133eff271dfd24d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71c9f1bd3c811325f684d1765e8c4427e0e20ddc1545e31bd067074d9aa82c5b [INFO] running `Command { std: "docker" "start" "-a" "71c9f1bd3c811325f684d1765e8c4427e0e20ddc1545e31bd067074d9aa82c5b", kill_on_drop: false }` [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling mime v0.3.17 [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] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "71c9f1bd3c811325f684d1765e8c4427e0e20ddc1545e31bd067074d9aa82c5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71c9f1bd3c811325f684d1765e8c4427e0e20ddc1545e31bd067074d9aa82c5b", kill_on_drop: false }` [INFO] [stdout] 71c9f1bd3c811325f684d1765e8c4427e0e20ddc1545e31bd067074d9aa82c5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad17f912182be8a67d6402cf2b64ce72ba0e16fed39b23f4c315a0945d8e4acc [INFO] running `Command { std: "docker" "start" "-a" "ad17f912182be8a67d6402cf2b64ce72ba0e16fed39b23f4c315a0945d8e4acc", kill_on_drop: false }` [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] Compiling speed-rs-core v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: 3 warnings emitted [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] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "ad17f912182be8a67d6402cf2b64ce72ba0e16fed39b23f4c315a0945d8e4acc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad17f912182be8a67d6402cf2b64ce72ba0e16fed39b23f4c315a0945d8e4acc", kill_on_drop: false }` [INFO] [stdout] ad17f912182be8a67d6402cf2b64ce72ba0e16fed39b23f4c315a0945d8e4acc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 771c521d00777321497f76d4e7c86086173e6e26ad04ac2284653af293092d06 [INFO] running `Command { std: "docker" "start" "-a" "771c521d00777321497f76d4e7c86086173e6e26ad04ac2284653af293092d06", 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.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/speed_rs_core-a7c8805481826794) [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 - HttpServer (line 98) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 106) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer::set_error_handler (line 349) ... FAILED [INFO] [stdout] test src/lib.rs - RequestErrorHandleFunc (line 53) ... FAILED [INFO] [stdout] test src/utils.rs - utils::ServeStatic (line 56) ... FAILED [INFO] [stdout] test src/utils.rs - utils::MoreDetailsRequest (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerMode (line 25) ... FAILED [INFO] [stdout] test src/lib.rs - RequestHandleFunc (line 41) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 94) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerThreadPool (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - HttpStatusStruct (line 68) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 159) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Routing (line 190) ... FAILED [INFO] [stdout] test src/utils.rs - utils::break_request_uri (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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/33f1d8bb92813a1bfc23c093c9f443ab09290307/library/core/src/result.rs:531: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 - 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 - 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/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/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/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 - 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 - 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/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] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [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| {...})); // This will be called again if client request with a GET method [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| {..})); // This will be called again if client request with a GET method [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 | router.define_route(Route::get("/test/", |req, res| {..=})); // This will be called again if client request with a GET method [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| {...})); // This will be called again if client request with a GET method [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| {...})); // This will be called again if client request with a GET method [INFO] [stdout] 4 + router.define_route(Route::get("/test/", |req, res| {..})); // This will be called again if client request with a GET method [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| {...})); // This will be called again if client request with a GET method [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| {...})); // This will be called again if client request with a GET method [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 (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 - 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) // 4 threads for handling requests [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/lib.rs - HttpStatusStruct (line 68) stdout ---- [INFO] [stdout] error: expected `;`, found `HttpStatusStruct` [INFO] [stdout] --> src/lib.rs:69:28 [INFO] [stdout] | [INFO] [stdout] 3 | HttpStatusStruct(200, "OK") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | HttpStatusStruct(400, "Not Found") [INFO] [stdout] | ---------------- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `HttpStatusStruct` [INFO] [stdout] --> src/lib.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 4 | HttpStatusStruct(400, "Not Found") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | HttpStatusStruct(500, "This is not a bug. It is a feature.") [INFO] [stdout] | ---------------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HttpStatusStruct` in this scope [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 5 | HttpStatusStruct(500, "This is not a bug. It is a feature.") [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] 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/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] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [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/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] [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.13s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "771c521d00777321497f76d4e7c86086173e6e26ad04ac2284653af293092d06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "771c521d00777321497f76d4e7c86086173e6e26ad04ac2284653af293092d06", kill_on_drop: false }` [INFO] [stdout] 771c521d00777321497f76d4e7c86086173e6e26ad04ac2284653af293092d06