[INFO] fetching crate speed-rs-core 0.4.1... [INFO] testing speed-rs-core-0.4.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-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 dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9470fd56e65d7b3e16586672b09175a749947fb8a4a0b8381d880bb1c0ab5ebb [INFO] running `Command { std: "docker" "start" "-a" "9470fd56e65d7b3e16586672b09175a749947fb8a4a0b8381d880bb1c0ab5ebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9470fd56e65d7b3e16586672b09175a749947fb8a4a0b8381d880bb1c0ab5ebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9470fd56e65d7b3e16586672b09175a749947fb8a4a0b8381d880bb1c0ab5ebb", kill_on_drop: false }` [INFO] [stdout] 9470fd56e65d7b3e16586672b09175a749947fb8a4a0b8381d880bb1c0ab5ebb [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a3b28086a49c4cc75a0b8f542663da7caa3c0c9a3253215eee9523bdcf24b2c [INFO] running `Command { std: "docker" "start" "-a" "1a3b28086a49c4cc75a0b8f542663da7caa3c0c9a3253215eee9523bdcf24b2c", kill_on_drop: false }` [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 2.56s [INFO] running `Command { std: "docker" "inspect" "1a3b28086a49c4cc75a0b8f542663da7caa3c0c9a3253215eee9523bdcf24b2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a3b28086a49c4cc75a0b8f542663da7caa3c0c9a3253215eee9523bdcf24b2c", kill_on_drop: false }` [INFO] [stdout] 1a3b28086a49c4cc75a0b8f542663da7caa3c0c9a3253215eee9523bdcf24b2c [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba8308176d82aaf9554487bfb6a37fecb75a6974a7d821d30b9198aea47cb6bc [INFO] running `Command { std: "docker" "start" "-a" "ba8308176d82aaf9554487bfb6a37fecb75a6974a7d821d30b9198aea47cb6bc", 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)]` (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] [stderr] Compiling speed-rs-core v0.4.1 (/opt/rustwide/workdir) [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.33s [INFO] running `Command { std: "docker" "inspect" "ba8308176d82aaf9554487bfb6a37fecb75a6974a7d821d30b9198aea47cb6bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba8308176d82aaf9554487bfb6a37fecb75a6974a7d821d30b9198aea47cb6bc", kill_on_drop: false }` [INFO] [stdout] ba8308176d82aaf9554487bfb6a37fecb75a6974a7d821d30b9198aea47cb6bc [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 687752b7521e52e666b80f099c82b3cfa846a0aaa7f658472a402a3b3a2eb5fe [INFO] running `Command { std: "docker" "start" "-a" "687752b7521e52e666b80f099c82b3cfa846a0aaa7f658472a402a3b3a2eb5fe", 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.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/speed_rs_core-194dfa77d4837777) [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 94) ... FAILED [INFO] [stdout] test src/utils.rs - utils::break_request_uri (line 8) ... FAILED [INFO] [stdout] test src/lib.rs - HttpStatusStruct (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 98) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer::set_error_handler (line 349) ... FAILED [INFO] [stdout] test src/utils.rs - utils::MoreDetailsRequest (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerThreadPool (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - RequestErrorHandleFunc (line 53) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Routing (line 190) ... FAILED [INFO] [stdout] test src/utils.rs - utils::ServeStatic (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - RequestHandleFunc (line 41) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 159) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServerMode (line 25) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Router (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - HttpServer (line 106) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - HttpServer (line 94) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `HttpServer` in this scope [INFO] [stdout] --> src/lib.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | 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] 94 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServerMode` in this scope [INFO] [stdout] --> src/lib.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | 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] 94 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServerThreadPool` in this scope [INFO] [stdout] --> src/lib.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 95 | 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] 94 + 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::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] 9 | 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] 10 | 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] 8 + 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/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] 69 | HttpStatusStruct(200, "OK") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if you meant to call a macro, try [INFO] [stdout] | [INFO] [stdout] 69 | 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 - 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] 99 | 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] 100 | 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] 98 + 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] 102 | Ok(req, res) [INFO] [stdout] | ^^ --- unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/result.rs:561:4 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 102 - Ok(req, res) [INFO] [stdout] 102 + 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::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] 350 | 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] 351 | 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] 349 + 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::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] 31 | 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 - HttpServerThreadPool (line 76) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `HttpServerThreadPool` in this scope [INFO] [stdout] --> src/lib.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | HttpServerThreadPool::new(4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `HttpServerThreadPool` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 76 + 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 - 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] 54 | 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] 55 | 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] 53 + 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::Routing (line 190) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 194 - ... [INFO] [stdout] 194 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 194 - ... [INFO] [stdout] 194 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Router` in this scope [INFO] [stdout] --> src/utils.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | 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] 190 + 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] 197 | 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::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] 57 | 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] 58 | 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 - 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] 42 | 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] 43 | 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] 41 + 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 159) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Router` in this scope [INFO] [stdout] --> src/utils.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | 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] 159 + use speed_rs_core::utils::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Route` in this scope [INFO] [stdout] --> src/utils.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | 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] 159 + 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] 164 | 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] 159 + 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 - HttpServerMode (line 25) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `HttpServer` in this scope [INFO] [stdout] --> src/lib.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | 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] 25 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServerMode` in this scope [INFO] [stdout] --> src/lib.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | 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] 25 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServer` in this scope [INFO] [stdout] --> src/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 25 + use speed_rs_core::HttpServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServerMode` in this scope [INFO] [stdout] --> src/lib.rs:27:34 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 25 + use speed_rs_core::HttpServerMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpServerThreadPool` in this scope [INFO] [stdout] --> src/lib.rs:27:62 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 25 + 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/utils.rs - utils::Router (line 170) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:171:54 [INFO] [stdout] | [INFO] [stdout] 171 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 171 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 171 + router.define_route(Route::all("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 171 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 171 + 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] 171 | 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] 171 - router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] 171 + 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] 172 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 172 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 172 + router.define_route(Route::get("/test/", |req, res| {..})); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 172 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 172 + 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] 172 | 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] 172 - router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] 172 + 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] 171 | router.define_route(Route::all("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Route` in this scope [INFO] [stdout] --> src/utils.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | 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] 170 + 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] 172 | router.define_route(Route::get("/test/", |req, res| {...})); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Route` in this scope [INFO] [stdout] --> src/utils.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | 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] 170 + 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 106) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `server` in this scope [INFO] [stdout] --> src/lib.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | 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] [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.30s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "687752b7521e52e666b80f099c82b3cfa846a0aaa7f658472a402a3b3a2eb5fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "687752b7521e52e666b80f099c82b3cfa846a0aaa7f658472a402a3b3a2eb5fe", kill_on_drop: false }` [INFO] [stdout] 687752b7521e52e666b80f099c82b3cfa846a0aaa7f658472a402a3b3a2eb5fe