[INFO] fetching crate netserver 0.3.5...
[INFO] testing netserver-0.3.5 against 1.75.0 for beta-1.76-1
[INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-5-tc1/source
[INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-5-tc1/source/Cargo.toml
[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" "+1.75.0" "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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 75c8e489c8653a9f355a2fa57c6bd279da0a1206e0dea0a6a58519b86f69d90c
[INFO] running `Command { std: "docker" "start" "-a" "75c8e489c8653a9f355a2fa57c6bd279da0a1206e0dea0a6a58519b86f69d90c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "75c8e489c8653a9f355a2fa57c6bd279da0a1206e0dea0a6a58519b86f69d90c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "75c8e489c8653a9f355a2fa57c6bd279da0a1206e0dea0a6a58519b86f69d90c", kill_on_drop: false }`
[INFO] [stdout] 75c8e489c8653a9f355a2fa57c6bd279da0a1206e0dea0a6a58519b86f69d90c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a453f66bd191f17976b1cd1a1c23ba34f5b5fbbeb7b6c0a11259aceb041e17a3
[INFO] running `Command { std: "docker" "start" "-a" "a453f66bd191f17976b1cd1a1c23ba34f5b5fbbeb7b6c0a11259aceb041e17a3", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[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)]` 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)]` 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::<Vec<&str>>();
[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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 3.22s
[INFO] running `Command { std: "docker" "inspect" "a453f66bd191f17976b1cd1a1c23ba34f5b5fbbeb7b6c0a11259aceb041e17a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a453f66bd191f17976b1cd1a1c23ba34f5b5fbbeb7b6c0a11259aceb041e17a3", kill_on_drop: false }`
[INFO] [stdout] a453f66bd191f17976b1cd1a1c23ba34f5b5fbbeb7b6c0a11259aceb041e17a3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5becd86e4399841352bc4739462b498e6f1a11911bbd7ec5aac11e9c390809a5
[INFO] running `Command { std: "docker" "start" "-a" "5becd86e4399841352bc4739462b498e6f1a11911bbd7ec5aac11e9c390809a5", 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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling netserver v0.3.5 (/opt/rustwide/workdir)
[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)]` 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)]` 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::<Vec<&str>>();
[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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` 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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.42s
[INFO] running `Command { std: "docker" "inspect" "5becd86e4399841352bc4739462b498e6f1a11911bbd7ec5aac11e9c390809a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5becd86e4399841352bc4739462b498e6f1a11911bbd7ec5aac11e9c390809a5", kill_on_drop: false }`
[INFO] [stdout] 5becd86e4399841352bc4739462b498e6f1a11911bbd7ec5aac11e9c390809a5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 1404c55ff25cb17e96fba4f59153163ff48a03cf4f31787c852a5fcceaa8ed16
[INFO] running `Command { std: "docker" "start" "-a" "1404c55ff25cb17e96fba4f59153163ff48a03cf4f31787c852a5fcceaa8ed16", 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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stderr]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(non_snake_case)]` 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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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 [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-83075fb654ba8b30)
[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-62f112618b64907c)
[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::listen (line 482) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::middleware (line 729) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::new (line 308) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::from_threads (line 329) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_all (line 407) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED
[INFO] [stdout] test src/lib.rs - Mode (line 89) ... FAILED
[INFO] [stdout] test src/lib.rs - HttpRequest (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - DebugOptions (line 61) ... FAILED
[INFO] [stdout] test src/lib.rs - Request (line 117) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on (line 380) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 349) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 358) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 442) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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:484:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | let server = WebServer::new();
[INFO] [stdout]   |              ^^^^^^^^^ use of undeclared type `WebServer`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use netserver::WebServer;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 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::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 - 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::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_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("<h1>Welcome to my API!</h1>"), 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 - 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 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 - Mode (line 89) stdout ----
[INFO] [stdout] error: expected `;`, found `server`
[INFO] [stdout]   --> src/lib.rs:100:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     server.on_static(RequestType::Get, "/", "123")
[INFO] [stdout]    |                                                   ^ help: add `;` here
[INFO] [stdout] 14 |  
[INFO] [stdout] 15 |     server.listen("127.0.0.1:5000").unwrap();
[INFO] [stdout]    |     ------ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:90: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:92: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:92: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 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 - 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 items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::error::Request;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use netserver::Request;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::error::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 - DebugOptions (line 61) stdout ----
[INFO] [stdout] error: expected `;`, found `server`
[INFO] [stdout]   --> src/lib.rs:72:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     server.on_static(RequestType::Get, "/", "123")
[INFO] [stdout]    |                                                   ^ help: add `;` here
[INFO] [stdout] 14 |  
[INFO] [stdout] 15 |     server.listen("127.0.0.1:5000").unwrap();
[INFO] [stdout]    |     ------ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:62: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:64: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:64: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 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 - 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 items
[INFO] [stdout]   |
[INFO] [stdout] 4 + use core::error::Request;
[INFO] [stdout]   |
[INFO] [stdout] 4 + use netserver::Request;
[INFO] [stdout]   |
[INFO] [stdout] 4 + use std::error::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] 4 + 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] 4 + 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] 4  + 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::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("<h1>Welcome to my API!</h1>"), 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 - 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", "<h1>Hello</h1>");
[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::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]   |           ^^^^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `fetch("/api").await`
[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]   |             ^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `res.json().await`
[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 == "<h1>Hello</h1>" // True
[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::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]   |           ^^^^^^^^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `fetch("/api/foo").await`
[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]   |             ^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `res.json().await`
[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 == "<h1>404 Not found</h1>" // True
[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::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] 
[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.09s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "1404c55ff25cb17e96fba4f59153163ff48a03cf4f31787c852a5fcceaa8ed16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1404c55ff25cb17e96fba4f59153163ff48a03cf4f31787c852a5fcceaa8ed16", kill_on_drop: false }`
[INFO] [stdout] 1404c55ff25cb17e96fba4f59153163ff48a03cf4f31787c852a5fcceaa8ed16
[INFO] testing netserver-0.3.5 against beta-2023-12-22 for beta-1.76-1
[INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-5-tc2/source
[INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain beta-2023-12-22
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-5-tc2/source/Cargo.toml
[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" "+beta-2023-12-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b7ae6c84dd7df8193040a7335bb471d75e8720ab69c04823b3f4947da93361fe
[INFO] running `Command { std: "docker" "start" "-a" "b7ae6c84dd7df8193040a7335bb471d75e8720ab69c04823b3f4947da93361fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b7ae6c84dd7df8193040a7335bb471d75e8720ab69c04823b3f4947da93361fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b7ae6c84dd7df8193040a7335bb471d75e8720ab69c04823b3f4947da93361fe", kill_on_drop: false }`
[INFO] [stdout] b7ae6c84dd7df8193040a7335bb471d75e8720ab69c04823b3f4947da93361fe
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 658da780bafa00d9d8abbebd503796c80267c656551de969ba016f8297b5eac1
[INFO] running `Command { std: "docker" "start" "-a" "658da780bafa00d9d8abbebd503796c80267c656551de969ba016f8297b5eac1", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[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)]` 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)]` 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::<Vec<&str>>();
[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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 2.73s
[INFO] running `Command { std: "docker" "inspect" "658da780bafa00d9d8abbebd503796c80267c656551de969ba016f8297b5eac1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "658da780bafa00d9d8abbebd503796c80267c656551de969ba016f8297b5eac1", kill_on_drop: false }`
[INFO] [stdout] 658da780bafa00d9d8abbebd503796c80267c656551de969ba016f8297b5eac1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 710856e1046f4847752ba43c58e359b047706e4ba330459dae8018ab0a7ed317
[INFO] running `Command { std: "docker" "start" "-a" "710856e1046f4847752ba43c58e359b047706e4ba330459dae8018ab0a7ed317", 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)]` 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)]` 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:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[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)]` 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)]` 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)]` 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::<Vec<&str>>();
[INFO] [stdout]     |                     ----^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[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)]` 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::<Vec<&str>>();
[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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[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<String, ErrorMessage> {
[INFO] [stdout]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.28s
[INFO] running `Command { std: "docker" "inspect" "710856e1046f4847752ba43c58e359b047706e4ba330459dae8018ab0a7ed317", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "710856e1046f4847752ba43c58e359b047706e4ba330459dae8018ab0a7ed317", kill_on_drop: false }`
[INFO] [stdout] 710856e1046f4847752ba43c58e359b047706e4ba330459dae8018ab0a7ed317
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 25e3c7461e3be8f3237927bd5c408540738ad606d1a5f262ad3fc1d71cb64965
[INFO] running `Command { std: "docker" "start" "-a" "25e3c7461e3be8f3237927bd5c408540738ad606d1a5f262ad3fc1d71cb64965", 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)]` 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)]` 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::<Vec<&str>>();
[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<String, ErrorMessage> {
[INFO] [stderr]     |        ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(non_snake_case)]` 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)]` 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<String, ErrorMessage> {
[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<F: Fn(Request) -> (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 [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-1d9e0f80eeb02fcf)
[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-80a372ab3c026456)
[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::on_all (line 407) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::listen (line 482) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::from_threads (line 329) ... FAILED
[INFO] [stdout] test src/lib.rs - HttpRequest (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - Request (line 117) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::middleware (line 729) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::new (line 308) ... FAILED
[INFO] [stdout] test src/lib.rs - DebugOptions (line 61) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on (line 380) ... FAILED
[INFO] [stdout] test src/lib.rs - Mode (line 89) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 349) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 442) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 358) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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("<h1>Welcome to my API!</h1>"), 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 - WebServer::listen (line 482) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:484:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | let server = WebServer::new();
[INFO] [stdout]   |              ^^^^^^^^^ use of undeclared type `WebServer`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + 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::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 - 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 items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::error::Request;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use netserver::Request;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::error::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 - 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 items
[INFO] [stdout]   |
[INFO] [stdout] 4 + use core::error::Request;
[INFO] [stdout]   |
[INFO] [stdout] 4 + use netserver::Request;
[INFO] [stdout]   |
[INFO] [stdout] 4 + use std::error::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] 4 + 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] 4 + 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] 4  + 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::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 - 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 - DebugOptions (line 61) stdout ----
[INFO] [stdout] error: expected `;`, found `server`
[INFO] [stdout]   --> src/lib.rs:72:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     server.on_static(RequestType::Get, "/", "123")
[INFO] [stdout]    |                                                   ^ help: add `;` here
[INFO] [stdout] 14 |  
[INFO] [stdout] 15 |     server.listen("127.0.0.1:5000").unwrap();
[INFO] [stdout]    |     ------ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:62: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:64: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:64: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 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::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("<h1>Welcome to my API!</h1>"), 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 - Mode (line 89) stdout ----
[INFO] [stdout] error: expected `;`, found `server`
[INFO] [stdout]   --> src/lib.rs:100:51
[INFO] [stdout]    |
[INFO] [stdout] 13 |     server.on_static(RequestType::Get, "/", "123")
[INFO] [stdout]    |                                                   ^ help: add `;` here
[INFO] [stdout] 14 |  
[INFO] [stdout] 15 |     server.listen("127.0.0.1:5000").unwrap();
[INFO] [stdout]    |     ------ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:90: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:92: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:92: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 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::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", "<h1>Hello</h1>");
[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::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::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]   |           ^^^^^^^^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `fetch("/api/foo").await`
[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]   |             ^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `res.json().await`
[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 == "<h1>404 Not found</h1>" // True
[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::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::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]   |           ^^^^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `fetch("/api").await`
[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]   |             ^^^^^^^^^^^^^^^^ help: `await` is a postfix operation: `res.json().await`
[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 == "<h1>Hello</h1>" // True
[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] 
[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.08s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "25e3c7461e3be8f3237927bd5c408540738ad606d1a5f262ad3fc1d71cb64965", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "25e3c7461e3be8f3237927bd5c408540738ad606d1a5f262ad3fc1d71cb64965", kill_on_drop: false }`
[INFO] [stdout] 25e3c7461e3be8f3237927bd5c408540738ad606d1a5f262ad3fc1d71cb64965
