[INFO] fetching crate netserver 0.3.5... [INFO] testing netserver-0.3.5 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate netserver 0.3.5 [INFO] finished tweaking crates.io crate netserver 0.3.5 [INFO] tweaked toml for crates.io crate netserver 0.3.5 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate netserver 0.3.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded my_threadpool v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6234a85efc9b52cc9804bc4d0f3d9e3376a39e378ce9f804e29c57d245438b6 [INFO] running `Command { std: "docker" "start" "-a" "b6234a85efc9b52cc9804bc4d0f3d9e3376a39e378ce9f804e29c57d245438b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6234a85efc9b52cc9804bc4d0f3d9e3376a39e378ce9f804e29c57d245438b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6234a85efc9b52cc9804bc4d0f3d9e3376a39e378ce9f804e29c57d245438b6", kill_on_drop: false }` [INFO] [stdout] b6234a85efc9b52cc9804bc4d0f3d9e3376a39e378ce9f804e29c57d245438b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1a8206e032a34ba851e081249b81d9019c8b3cc067dc47c18de2b0b4d98073b [INFO] running `Command { std: "docker" "start" "-a" "d1a8206e032a34ba851e081249b81d9019c8b3cc067dc47c18de2b0b4d98073b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling my_threadpool v1.0.1 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling ctrlc v3.4.1 [INFO] [stderr] Compiling netserver v0.3.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.05s [INFO] running `Command { std: "docker" "inspect" "d1a8206e032a34ba851e081249b81d9019c8b3cc067dc47c18de2b0b4d98073b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1a8206e032a34ba851e081249b81d9019c8b3cc067dc47c18de2b0b4d98073b", kill_on_drop: false }` [INFO] [stdout] d1a8206e032a34ba851e081249b81d9019c8b3cc067dc47c18de2b0b4d98073b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85c60adbdb639ca65f6e91762aa9ce7762f747b83bcaf6570dd3ebe29bcf0451 [INFO] running `Command { std: "docker" "start" "-a" "85c60adbdb639ca65f6e91762aa9ce7762f747b83bcaf6570dd3ebe29bcf0451", kill_on_drop: false }` [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling netserver v0.3.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.90s [INFO] running `Command { std: "docker" "inspect" "85c60adbdb639ca65f6e91762aa9ce7762f747b83bcaf6570dd3ebe29bcf0451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85c60adbdb639ca65f6e91762aa9ce7762f747b83bcaf6570dd3ebe29bcf0451", kill_on_drop: false }` [INFO] [stdout] 85c60adbdb639ca65f6e91762aa9ce7762f747b83bcaf6570dd3ebe29bcf0451 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c44ca26d484b72eb06459eb111bd4f904220932d38181a4d5af942419a801470 [INFO] running `Command { std: "docker" "start" "-a" "c44ca26d484b72eb06459eb111bd4f904220932d38181a4d5af942419a801470", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `response` is never read [INFO] [stderr] --> src/lib.rs:657:29 [INFO] [stderr] | [INFO] [stderr] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:525:21 [INFO] [stderr] | [INFO] [stderr] 525 | let mut data = String::from_utf8_lossy(&data); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:556:21 [INFO] [stderr] | [INFO] [stderr] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function `HttpRequest` should have a snake case name [INFO] [stderr] --> src/lib.rs:248:8 [INFO] [stderr] | [INFO] [stderr] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `netserver` (lib) generated 4 warnings (run `cargo fix --lib -p netserver` to apply 2 suggestions) [INFO] [stderr] warning: `netserver` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: found module declaration for lib.rs [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | mod lib; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lib.rs is the root of this crate's library target [INFO] [stderr] = help: to refer to it from other targets, use the library's name as the path [INFO] [stderr] = note: `#[warn(special_module_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `ErrorMessage` is never used [INFO] [stderr] --> src/lib.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub type ErrorMessage = &'static str; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stderr] --> src/lib.rs:217:5 [INFO] [stderr] | [INFO] [stderr] 215 | pub enum ResponseCode { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 216 | Rc200, [INFO] [stderr] 217 | Rc201, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 218 | Rc204, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 219 | Rc304, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 220 | Rc400, [INFO] [stderr] 221 | Rc404, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 222 | Rc429, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 223 | Rc500, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `HttpRequest` is never used [INFO] [stderr] --> src/lib.rs:248:8 [INFO] [stderr] | [INFO] [stderr] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stderr] --> src/lib.rs:333:12 [INFO] [stderr] | [INFO] [stderr] 302 | impl WebServer { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `netserver` (bin "netserver" test) generated 9 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-28d071e477464dd7) [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/netserver-ef552ca7bd334b9f) [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 netserver [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - WebServer::middleware (line 729) ... FAILED [INFO] [stdout] test src/lib.rs - Request (line 117) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::listen (line 482) ... FAILED [INFO] [stdout] test src/lib.rs - DebugOptions (line 61) ... FAILED [INFO] [stdout] test src/lib.rs - Mode (line 89) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::from_threads (line 329) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::on_static (line 349) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::new (line 308) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::on_static (line 358) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::on (line 380) ... FAILED [INFO] [stdout] test src/lib.rs - HttpRequest (line 244) ... FAILED [INFO] [stdout] test src/lib.rs - WebServer::not_found (line 442) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - WebServer::on_all (line 407) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - WebServer::middleware (line 729) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:730:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType` [INFO] [stdout] --> src/lib.rs:738:11 [INFO] [stdout] | [INFO] [stdout] 11 | server.on(RequestType::Get, "/api", |req| { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::RequestType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseCode` [INFO] [stdout] --> src/lib.rs:739:16 [INFO] [stdout] | [INFO] [stdout] 12 | (req.body, ResponseCode::Rc200) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::ResponseCode; [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 - Request (line 117) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Request` in this scope [INFO] [stdout] --> src/lib.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 5 | Request { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType` [INFO] [stdout] --> src/lib.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 8 | request_type: RequestType::Get, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::RequestType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HashMap` in this scope [INFO] [stdout] --> src/lib.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 9 | query: HashMap {id: "15"}, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HashMap` in this scope [INFO] [stdout] --> src/lib.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 10 | cookies: HashMap {}, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::listen (line 482) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:483:14 [INFO] [stdout] | [INFO] [stdout] 3 | let server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [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 - DebugOptions (line 61) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 1 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^ `let` cannot be used for global variables [INFO] [stdout] | [INFO] [stdout] = help: consider using `static` and a `Mutex` instead of `let mut` [INFO] [stdout] = note: for a full list of items that can appear in modules, see [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 - Mode (line 89) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 1 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^ `let` cannot be used for global variables [INFO] [stdout] | [INFO] [stdout] = help: consider using `static` and a `Mutex` instead of `let mut` [INFO] [stdout] = note: for a full list of items that can appear in modules, see [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 - WebServer::from_threads (line 329) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `WebServer` in this scope [INFO] [stdout] --> src/lib.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 3 | let server: WebServer = WebServer::from_threads(4); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 3 | let server: WebServer = WebServer::from_threads(4); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::on_static (line 349) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:350:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType` [INFO] [stdout] --> src/lib.rs:352:18 [INFO] [stdout] | [INFO] [stdout] 5 | server.on_static(RequestType::Get, "/api", "

Hello

"); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::RequestType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::not_found (line 434) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:435:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [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 - WebServer::new (line 308) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `WebServer` in this scope [INFO] [stdout] --> src/lib.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 3 | let server: WebServer = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:309:25 [INFO] [stdout] | [INFO] [stdout] 3 | let server: WebServer = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::mode (line 462) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mode` [INFO] [stdout] --> src/lib.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 5 | server.mode(Mode::Debug(DebugOptions { [INFO] [stdout] | ^^^^ use of undeclared type `Mode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::Mode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DebugOptions` in this scope [INFO] [stdout] --> src/lib.rs:465:29 [INFO] [stdout] | [INFO] [stdout] 5 | server.mode(Mode::Debug(DebugOptions { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::DebugOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::on_static (line 358) stdout ---- [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/lib.rs:359:11 [INFO] [stdout] | [INFO] [stdout] 3 | let res = await fetch("/api"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 3 - let res = await fetch("/api"); [INFO] [stdout] 3 + let res = fetch("/api").await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/lib.rs:360:13 [INFO] [stdout] | [INFO] [stdout] 4 | let json = await res.json(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 4 - let json = await res.json(); [INFO] [stdout] 4 + let json = res.json().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:362:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_358_0() { [INFO] [stdout] | - help: try adding a return type: `-> bool` [INFO] [stdout] ... [INFO] [stdout] 6 | json == "

Hello

" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::on (line 380) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:381:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType` [INFO] [stdout] --> src/lib.rs:383:11 [INFO] [stdout] | [INFO] [stdout] 5 | server.on(RequestType::Get, "/api", |req| { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::RequestType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseCode` [INFO] [stdout] --> src/lib.rs:384:51 [INFO] [stdout] | [INFO] [stdout] 6 | (String::from("

Welcome to my API!

"), ResponseCode::Rc200) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::ResponseCode; [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 - HttpRequest (line 244) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 3 | let response: String = WebServer::HttpRequest(Request {}).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Request` in this scope [INFO] [stdout] --> src/lib.rs:245:47 [INFO] [stdout] | [INFO] [stdout] 3 | let response: String = WebServer::HttpRequest(Request {}).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::not_found (line 442) stdout ---- [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/lib.rs:443:11 [INFO] [stdout] | [INFO] [stdout] 3 | let res = await fetch("/api/foo"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 3 - let res = await fetch("/api/foo"); [INFO] [stdout] 3 + let res = fetch("/api/foo").await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/lib.rs:444:13 [INFO] [stdout] | [INFO] [stdout] 4 | let json = await res.json(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 4 - let json = await res.json(); [INFO] [stdout] 4 + let json = res.json().await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:446:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_442_0() { [INFO] [stdout] | - help: try adding a return type: `-> bool` [INFO] [stdout] ... [INFO] [stdout] 6 | json == "

404 Not found

" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WebServer::on_all (line 407) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer` [INFO] [stdout] --> src/lib.rs:408:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut server = WebServer::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WebServer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::WebServer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType` [INFO] [stdout] --> src/lib.rs:410:15 [INFO] [stdout] | [INFO] [stdout] 5 | server.on_all(RequestType::Get, "/api", |req| { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `RequestType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::RequestType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseCode` [INFO] [stdout] --> src/lib.rs:411:51 [INFO] [stdout] | [INFO] [stdout] 6 | (String::from("

Welcome to my API!

"), ResponseCode::Rc200) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResponseCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use netserver::ResponseCode; [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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - DebugOptions (line 61) [INFO] [stdout] src/lib.rs - HttpRequest (line 244) [INFO] [stdout] src/lib.rs - Mode (line 89) [INFO] [stdout] src/lib.rs - Request (line 117) [INFO] [stdout] src/lib.rs - WebServer::from_threads (line 329) [INFO] [stdout] src/lib.rs - WebServer::listen (line 482) [INFO] [stdout] src/lib.rs - WebServer::middleware (line 729) [INFO] [stdout] src/lib.rs - WebServer::mode (line 462) [INFO] [stdout] src/lib.rs - WebServer::new (line 308) [INFO] [stdout] src/lib.rs - WebServer::not_found (line 434) [INFO] [stdout] src/lib.rs - WebServer::not_found (line 442) [INFO] [stdout] src/lib.rs - WebServer::on (line 380) [INFO] [stdout] src/lib.rs - WebServer::on_all (line 407) [INFO] [stdout] src/lib.rs - WebServer::on_static (line 349) [INFO] [stdout] src/lib.rs - WebServer::on_static (line 358) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c44ca26d484b72eb06459eb111bd4f904220932d38181a4d5af942419a801470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44ca26d484b72eb06459eb111bd4f904220932d38181a4d5af942419a801470", kill_on_drop: false }` [INFO] [stdout] c44ca26d484b72eb06459eb111bd4f904220932d38181a4d5af942419a801470