[INFO] fetching crate netserver 0.3.5...
[INFO] testing netserver-0.3.5 against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-3-tc2/source
[INFO] started tweaking crates.io crate netserver 0.3.5
[INFO] finished tweaking crates.io crate netserver 0.3.5
[INFO] tweaked toml for crates.io crate netserver 0.3.5 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate netserver 0.3.5 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 48e087d7f4bc7107629df29b6ed3182c49ccf407407b0a1294aabf0384dd6efb
[INFO] running `Command { std: "docker" "start" "-a" "48e087d7f4bc7107629df29b6ed3182c49ccf407407b0a1294aabf0384dd6efb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "48e087d7f4bc7107629df29b6ed3182c49ccf407407b0a1294aabf0384dd6efb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "48e087d7f4bc7107629df29b6ed3182c49ccf407407b0a1294aabf0384dd6efb", kill_on_drop: false }`
[INFO] [stdout] 48e087d7f4bc7107629df29b6ed3182c49ccf407407b0a1294aabf0384dd6efb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 192a738e7b5a313854aaedd77b0d27932bddb2306d83631e4fe0e5145f914403
[INFO] running `Command { std: "docker" "start" "-a" "192a738e7b5a313854aaedd77b0d27932bddb2306d83631e4fe0e5145f914403", 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: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:525:21
[INFO] [stdout]     |
[INFO] [stdout] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[INFO] [stdout]     |                     ----^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:525:21
[INFO] [stdout]     |
[INFO] [stdout] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[INFO] [stdout]     |                     ----^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ErrorMessage` is never used
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type ErrorMessage = &'static str;
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed
[INFO] [stdout]    --> src/lib.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 215 | pub enum ResponseCode {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] 216 |     Rc200,
[INFO] [stdout] 217 |     Rc201,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 218 |     Rc204,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 219 |     Rc304,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 220 |     Rc400,
[INFO] [stdout] 221 |     Rc404,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 222 |     Rc429,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 223 |     Rc500,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `HttpRequest` is never used
[INFO] [stdout]    --> src/lib.rs:248:8
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result<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, ...
[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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.89s
[INFO] running `Command { std: "docker" "inspect" "192a738e7b5a313854aaedd77b0d27932bddb2306d83631e4fe0e5145f914403", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "192a738e7b5a313854aaedd77b0d27932bddb2306d83631e4fe0e5145f914403", kill_on_drop: false }`
[INFO] [stdout] 192a738e7b5a313854aaedd77b0d27932bddb2306d83631e4fe0e5145f914403
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] de8a0ac8c780867c81c2fe37df7c9d46490957c0b1ef329e8ffc2488cee260f5
[INFO] running `Command { std: "docker" "start" "-a" "de8a0ac8c780867c81c2fe37df7c9d46490957c0b1ef329e8ffc2488cee260f5", kill_on_drop: false }`
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:525:21
[INFO] [stdout]     |
[INFO] [stdout] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<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: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:525:21
[INFO] [stdout]     |
[INFO] [stdout] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[INFO] [stdout]     |                     ----^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ErrorMessage` is never used
[INFO] [stdout]   --> src/lib.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub type ErrorMessage = &'static str;
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed
[INFO] [stdout]    --> src/lib.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 215 | pub enum ResponseCode {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] 216 |     Rc200,
[INFO] [stdout] 217 |     Rc201,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 218 |     Rc204,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 219 |     Rc304,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 220 |     Rc400,
[INFO] [stdout] 221 |     Rc404,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 222 |     Rc429,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 223 |     Rc500,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `HttpRequest` is never used
[INFO] [stdout]    --> src/lib.rs:248:8
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result<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, ...
[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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:525:21
[INFO] [stdout]     |
[INFO] [stdout] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:556:21
[INFO] [stdout]     |
[INFO] [stdout] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[INFO] [stdout]     |                     ----^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `response` is never read
[INFO] [stdout]    --> src/lib.rs:657:29
[INFO] [stdout]     |
[INFO] [stdout] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stdout]     |                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s
[INFO] running `Command { std: "docker" "inspect" "de8a0ac8c780867c81c2fe37df7c9d46490957c0b1ef329e8ffc2488cee260f5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de8a0ac8c780867c81c2fe37df7c9d46490957c0b1ef329e8ffc2488cee260f5", kill_on_drop: false }`
[INFO] [stdout] de8a0ac8c780867c81c2fe37df7c9d46490957c0b1ef329e8ffc2488cee260f5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 259335d98ba95384829391d6b111c17bc5268139272fe059182c78e4478df5b9
[INFO] running `Command { std: "docker" "start" "-a" "259335d98ba95384829391d6b111c17bc5268139272fe059182c78e4478df5b9", kill_on_drop: false }`
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/lib.rs:525:21
[INFO] [stderr]     |
[INFO] [stderr] 525 |                 let mut data = String::from_utf8_lossy(&data);
[INFO] [stderr]     |                     ----^^^^
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/lib.rs:556:21
[INFO] [stderr]     |
[INFO] [stderr] 556 |                 let mut s2 = &mut s.split("/").collect::<Vec<&str>>();
[INFO] [stderr]     |                     ----^^
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `response` is never read
[INFO] [stderr]    --> src/lib.rs:657:29
[INFO] [stderr]     |
[INFO] [stderr] 657 | ...                   response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents);
[INFO] [stderr]     |                       ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: 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)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `netserver` (lib) generated 4 warnings (run `cargo fix --lib -p netserver` to apply 2 suggestions)
[INFO] [stderr] warning: found module declaration for lib.rs
[INFO] [stderr]  --> src/main.rs:1:1
[INFO] [stderr]   |
[INFO] [stderr] 1 | mod lib;
[INFO] [stderr]   | ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: lib.rs is the root of this crate's library target
[INFO] [stderr]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stderr]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `ErrorMessage` is never used
[INFO] [stderr]   --> src/lib.rs:16:10
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub type ErrorMessage = &'static str;
[INFO] [stderr]    |          ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed
[INFO] [stderr]    --> src/lib.rs:217:5
[INFO] [stderr]     |
[INFO] [stderr] 215 | pub enum ResponseCode {
[INFO] [stderr]     |          ------------ variants in this enum
[INFO] [stderr] 216 |     Rc200,
[INFO] [stderr] 217 |     Rc201,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 218 |     Rc204,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 219 |     Rc304,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 220 |     Rc400,
[INFO] [stderr] 221 |     Rc404,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 222 |     Rc429,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 223 |     Rc500,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `HttpRequest` is never used
[INFO] [stderr]    --> src/lib.rs:248:8
[INFO] [stderr]     |
[INFO] [stderr] 248 | pub fn HttpRequest(request: Request) -> Result<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, ...
[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] warning: `netserver` (lib test) generated 4 warnings (4 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/netserver-98ab99c54e159b65)
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/netserver-8c2a7c36601419f1)
[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] [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 - Mode (line 89) ... FAILED
[INFO] [stdout] test src/lib.rs - DebugOptions (line 61) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::mode (line 462) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::listen (line 482) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::new (line 308) ... 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 (line 380) ... 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 - WebServer::from_threads (line 329) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_static (line 349) ... FAILED
[INFO] [stdout] test src/lib.rs - HttpRequest (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::not_found (line 434) ... FAILED
[INFO] [stdout] test src/lib.rs - WebServer::on_all (line 407) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - Mode (line 89) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]   --> src/lib.rs:90:5
[INFO] [stdout]    |
[INFO] [stdout] 90 |     let mut server = WebServer::new();
[INFO] [stdout]    |     ^^^ `let` cannot be used for global variables
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `static` and a `Mutex` instead of `let mut`
[INFO] [stdout]    = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - DebugOptions (line 61) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]   --> src/lib.rs:62:5
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let mut server = WebServer::new();
[INFO] [stdout]    |     ^^^ `let` cannot be used for global variables
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `static` and a `Mutex` instead of `let mut`
[INFO] [stdout]    = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - WebServer::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] 463 | 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] 462 + 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] 465 |     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] 462 + 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] 465 |     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] 462 + 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::listen (line 482) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebServer`
[INFO] [stdout]    --> src/lib.rs:483:14
[INFO] [stdout]     |
[INFO] [stdout] 483 | let server = WebServer::new();
[INFO] [stdout]     |              ^^^^^^^^^ use of undeclared type `WebServer`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 482 + use netserver::WebServer;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - WebServer::new (line 308) stdout ----
[INFO] [stdout] error[E0425]: cannot find type `WebServer` in this scope
[INFO] [stdout]    --> src/lib.rs:309:13
[INFO] [stdout]     |
[INFO] [stdout] 309 | 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] 308 + 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] 309 | 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] 308 + 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: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - 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] 120 | Request {
[INFO] [stdout]     | ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 117 + use std::error::Request;
[INFO] [stdout]     |
[INFO] [stdout] 117 + use netserver::Request;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RequestType`
[INFO] [stdout]    --> src/lib.rs:123:19
[INFO] [stdout]     |
[INFO] [stdout] 123 |     request_type: RequestType::Get,
[INFO] [stdout]     |                   ^^^^^^^^^^^ use of undeclared type `RequestType`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 117 + 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] 124 |     query: HashMap {id: "15"},
[INFO] [stdout]     |            ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 117 + 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] 125 |     cookies: HashMap {},
[INFO] [stdout]     |              ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 117 + 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] 730 | 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] 729 + 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] 738 | 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] 729 + 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] 739 |     (req.body, ResponseCode::Rc200)
[INFO] [stdout]     |                ^^^^^^^^^^^^ use of undeclared type `ResponseCode`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 729 + 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 (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] 381 | 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] 380 + 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] 383 | 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] 380 + 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] 384 |     (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] 380 + 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] 443 | let res = await fetch("/api/foo");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: `await` is a postfix operation
[INFO] [stdout]     |
[INFO] [stdout] 443 - let res = await fetch("/api/foo");
[INFO] [stdout] 443 + let res = fetch("/api/foo").await;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: incorrect use of `await`
[INFO] [stdout]    --> src/lib.rs:444:13
[INFO] [stdout]     |
[INFO] [stdout] 444 |  let json = await res.json();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: `await` is a postfix operation
[INFO] [stdout]     |
[INFO] [stdout] 444 -  let json = await res.json();
[INFO] [stdout] 444 +  let json = res.json().await;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:446:2
[INFO] [stdout]     |
[INFO] [stdout] 442 | 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] 446 |  json == "<h1>404 Not found</h1>"
[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] 359 | let res = await fetch("/api");
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: `await` is a postfix operation
[INFO] [stdout]     |
[INFO] [stdout] 359 - let res = await fetch("/api");
[INFO] [stdout] 359 + let res = fetch("/api").await;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: incorrect use of `await`
[INFO] [stdout]    --> src/lib.rs:360:13
[INFO] [stdout]     |
[INFO] [stdout] 360 |  let json = await res.json();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: `await` is a postfix operation
[INFO] [stdout]     |
[INFO] [stdout] 360 -  let json = await res.json();
[INFO] [stdout] 360 +  let json = res.json().await;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:362:2
[INFO] [stdout]     |
[INFO] [stdout] 358 | 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] 362 |  json == "<h1>Hello</h1>"
[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::from_threads (line 329) stdout ----
[INFO] [stdout] error[E0425]: cannot find type `WebServer` in this scope
[INFO] [stdout]    --> src/lib.rs:330:13
[INFO] [stdout]     |
[INFO] [stdout] 330 | 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] 329 + 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] 330 | 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] 329 + 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: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - 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] 350 | 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] 349 + 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] 352 | 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] 349 + 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 - 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] 245 | 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] 244 + 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] 245 | let response: String = WebServer::HttpRequest(Request {}).unwrap();
[INFO] [stdout]     |                                               ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 244 + use std::error::Request;
[INFO] [stdout]     |
[INFO] [stdout] 244 + use netserver::Request;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - WebServer::not_found (line 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] 435 | 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] 434 + 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_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] 408 | 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] 407 + 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] 410 | 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] 407 + 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] 411 |     (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] 407 + use netserver::ResponseCode;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - DebugOptions (line 61)
[INFO] [stdout]     src/lib.rs - HttpRequest (line 244)
[INFO] [stdout]     src/lib.rs - Mode (line 89)
[INFO] [stdout]     src/lib.rs - Request (line 117)
[INFO] [stdout]     src/lib.rs - WebServer::from_threads (line 329)
[INFO] [stdout]     src/lib.rs - WebServer::listen (line 482)
[INFO] [stdout]     src/lib.rs - WebServer::middleware (line 729)
[INFO] [stdout]     src/lib.rs - WebServer::mode (line 462)
[INFO] [stdout]     src/lib.rs - WebServer::new (line 308)
[INFO] [stdout]     src/lib.rs - WebServer::not_found (line 434)
[INFO] [stdout]     src/lib.rs - WebServer::not_found (line 442)
[INFO] [stdout]     src/lib.rs - WebServer::on (line 380)
[INFO] [stdout]     src/lib.rs - WebServer::on_all (line 407)
[INFO] [stdout]     src/lib.rs - WebServer::on_static (line 349)
[INFO] [stdout]     src/lib.rs - WebServer::on_static (line 358)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "259335d98ba95384829391d6b111c17bc5268139272fe059182c78e4478df5b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "259335d98ba95384829391d6b111c17bc5268139272fe059182c78e4478df5b9", kill_on_drop: false }`
[INFO] [stdout] 259335d98ba95384829391d6b111c17bc5268139272fe059182c78e4478df5b9
