[INFO] fetching crate netserver 0.3.5...
[INFO] testing netserver-0.3.5 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "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-0-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" "+1871252fc8bb672d40787e67404e6eaae7059369" "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] [stderr]   Downloaded ctrlc v3.4.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5bbffd3cd4782d3e74a8b2b3abba38ec682ee58543cd37387312f3139561ea9d
[INFO] running `Command { std: "docker" "start" "-a" "5bbffd3cd4782d3e74a8b2b3abba38ec682ee58543cd37387312f3139561ea9d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5bbffd3cd4782d3e74a8b2b3abba38ec682ee58543cd37387312f3139561ea9d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5bbffd3cd4782d3e74a8b2b3abba38ec682ee58543cd37387312f3139561ea9d", kill_on_drop: false }`
[INFO] [stdout] 5bbffd3cd4782d3e74a8b2b3abba38ec682ee58543cd37387312f3139561ea9d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1d170528cc6bed3353bd66aee8358e2e57808faf0f3e612e56b86c4aacb5b25a
[INFO] running `Command { std: "docker" "start" "-a" "1d170528cc6bed3353bd66aee8358e2e57808faf0f3e612e56b86c4aacb5b25a", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling my_threadpool v1.0.1
[INFO] [stderr]    Compiling nix v0.27.1
[INFO] [stderr]    Compiling ctrlc v3.4.1
[INFO] [stderr]    Compiling netserver v0.3.5 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` 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` profile [unoptimized + debuginfo] target(s) in 3.11s
[INFO] running `Command { std: "docker" "inspect" "1d170528cc6bed3353bd66aee8358e2e57808faf0f3e612e56b86c4aacb5b25a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1d170528cc6bed3353bd66aee8358e2e57808faf0f3e612e56b86c4aacb5b25a", kill_on_drop: false }`
[INFO] [stdout] 1d170528cc6bed3353bd66aee8358e2e57808faf0f3e612e56b86c4aacb5b25a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b9493fa27e36595ec57664562e07d0b7cd429435c1564b17c23b324334f2c1b9
[INFO] running `Command { std: "docker" "start" "-a" "b9493fa27e36595ec57664562e07d0b7cd429435c1564b17c23b324334f2c1b9", 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: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] running `Command { std: "docker" "inspect" "b9493fa27e36595ec57664562e07d0b7cd429435c1564b17c23b324334f2c1b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9493fa27e36595ec57664562e07d0b7cd429435c1564b17c23b324334f2c1b9", kill_on_drop: false }`
[INFO] [stdout] b9493fa27e36595ec57664562e07d0b7cd429435c1564b17c23b324334f2c1b9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] be9b9963defb9f21c762ece0d36a503258ff8069ac1add9bfb635add30470986
[INFO] running `Command { std: "docker" "start" "-a" "be9b9963defb9f21c762ece0d36a503258ff8069ac1add9bfb635add30470986", 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` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-768a676146791699)
[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-4c849d477a9f3770)
[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 - HttpRequest (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::from_threads (line 329) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::listen (line 482) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 358) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::new (line 308) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 442) ... 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::on_all (line 407) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED
[INFO] [stdout] test src/lib.rs - DebugOptions (line 61) ... FAILED
[INFO] [stdout] test src/lib.rs - Mode (line 89) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on (line 380) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 349) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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 - 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::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::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::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::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 - 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::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 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::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 - 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 - 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 (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] 
[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.07s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "be9b9963defb9f21c762ece0d36a503258ff8069ac1add9bfb635add30470986", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "be9b9963defb9f21c762ece0d36a503258ff8069ac1add9bfb635add30470986", kill_on_drop: false }`
[INFO] [stdout] be9b9963defb9f21c762ece0d36a503258ff8069ac1add9bfb635add30470986
[INFO] testing netserver-0.3.5 against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-0-tc2/source
[INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "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-0-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" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2a3ff7eb9281d3a6f9a2919b92f1204b66a1ec3d058f0174428cca4dc0a821e8
[INFO] running `Command { std: "docker" "start" "-a" "2a3ff7eb9281d3a6f9a2919b92f1204b66a1ec3d058f0174428cca4dc0a821e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2a3ff7eb9281d3a6f9a2919b92f1204b66a1ec3d058f0174428cca4dc0a821e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2a3ff7eb9281d3a6f9a2919b92f1204b66a1ec3d058f0174428cca4dc0a821e8", kill_on_drop: false }`
[INFO] [stdout] 2a3ff7eb9281d3a6f9a2919b92f1204b66a1ec3d058f0174428cca4dc0a821e8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c3dd5b3a0bad9b06503fcb71e2a1998636718e76ee4ba22ab42680d2610c7cb6
[INFO] running `Command { std: "docker" "start" "-a" "c3dd5b3a0bad9b06503fcb71e2a1998636718e76ee4ba22ab42680d2610c7cb6", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling my_threadpool v1.0.1
[INFO] [stderr]    Compiling nix v0.27.1
[INFO] [stderr]    Compiling ctrlc v3.4.1
[INFO] [stderr]    Compiling netserver v0.3.5 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` 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` profile [unoptimized + debuginfo] target(s) in 2.97s
[INFO] running `Command { std: "docker" "inspect" "c3dd5b3a0bad9b06503fcb71e2a1998636718e76ee4ba22ab42680d2610c7cb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c3dd5b3a0bad9b06503fcb71e2a1998636718e76ee4ba22ab42680d2610c7cb6", kill_on_drop: false }`
[INFO] [stdout] c3dd5b3a0bad9b06503fcb71e2a1998636718e76ee4ba22ab42680d2610c7cb6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 20314e6847de3fedc38c7e9b9046d5e8dc84304039ecc86295c97d1c344299ca
[INFO] running `Command { std: "docker" "start" "-a" "20314e6847de3fedc38c7e9b9046d5e8dc84304039ecc86295c97d1c344299ca", 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] [stderr]    Compiling netserver v0.3.5 (/opt/rustwide/workdir)
[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: 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: 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: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s
[INFO] running `Command { std: "docker" "inspect" "20314e6847de3fedc38c7e9b9046d5e8dc84304039ecc86295c97d1c344299ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "20314e6847de3fedc38c7e9b9046d5e8dc84304039ecc86295c97d1c344299ca", kill_on_drop: false }`
[INFO] [stdout] 20314e6847de3fedc38c7e9b9046d5e8dc84304039ecc86295c97d1c344299ca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 00c138f28b136e3142843eafe4d252cd76346881ec39e0c1ad94dfee2e4a2b49
[INFO] running `Command { std: "docker" "start" "-a" "00c138f28b136e3142843eafe4d252cd76346881ec39e0c1ad94dfee2e4a2b49", 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` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-768a676146791699)
[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-4c849d477a9f3770)
[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::from_threads (line 329) ... FAILED
[INFO] [stdout] test src/lib.rs - HttpRequest (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::middleware (line 729) ... FAILED
[INFO] [stdout] test src/lib.rs - Mode (line 89) ... 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 - WebServer::on_static (line 349) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::listen (line 482) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_all (line 407) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 442) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 358) ... FAILED
[INFO] [stdout] test src/lib.rs - Request (line 117) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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 - 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 - 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::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 - 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::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::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::mode (line 462) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]  --> src/lib.rs:463:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut server = WebServer::new();
[INFO] [stdout]   |                  ^^^^^^^^^ use of undeclared type `WebServer`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use netserver::WebServer;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mode`
[INFO] [stdout]  --> src/lib.rs:465:17
[INFO] [stdout]   |
[INFO] [stdout] 5 |     server.mode(Mode::Debug(DebugOptions {
[INFO] [stdout]   |                 ^^^^ use of undeclared type `Mode`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use netserver::Mode;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DebugOptions` in this scope
[INFO] [stdout]  --> src/lib.rs:465:29
[INFO] [stdout]   |
[INFO] [stdout] 5 |     server.mode(Mode::Debug(DebugOptions {
[INFO] [stdout]   |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use netserver::DebugOptions;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - WebServer::on_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 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::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 - 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] 
[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.10s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "00c138f28b136e3142843eafe4d252cd76346881ec39e0c1ad94dfee2e4a2b49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "00c138f28b136e3142843eafe4d252cd76346881ec39e0c1ad94dfee2e4a2b49", kill_on_drop: false }`
[INFO] [stdout] 00c138f28b136e3142843eafe4d252cd76346881ec39e0c1ad94dfee2e4a2b49
