[INFO] fetching crate ho 0.1.0...
[INFO] checking ho-0.1.0 against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] extracting crate ho 0.1.0 into /workspace/builds/worker-2-tc1/source
[INFO] validating manifest of crates.io crate ho 0.1.0 on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ho 0.1.0
[INFO] finished tweaking crates.io crate ho 0.1.0
[INFO] tweaked toml for crates.io crate ho 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] bc138a94b72cd395426402cda90f1eb292102c7ed2275f6adac3763a0fedaf8c
[INFO] running `Command { std: "docker" "start" "-a" "bc138a94b72cd395426402cda90f1eb292102c7ed2275f6adac3763a0fedaf8c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bc138a94b72cd395426402cda90f1eb292102c7ed2275f6adac3763a0fedaf8c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bc138a94b72cd395426402cda90f1eb292102c7ed2275f6adac3763a0fedaf8c", kill_on_drop: false }`
[INFO] [stdout] bc138a94b72cd395426402cda90f1eb292102c7ed2275f6adac3763a0fedaf8c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 21d0a0fb16aec8cbd4803defeb43e7c3b7ae2485b0f1dcc8de203b5bab7a5760
[INFO] running `Command { std: "docker" "start" "-a" "21d0a0fb16aec8cbd4803defeb43e7c3b7ae2485b0f1dcc8de203b5bab7a5760", kill_on_drop: false }`
[INFO] [stderr]     Checking ho v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the item `HashMap` is imported redundantly
[INFO] [stdout]  --> src/http/request.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 2 | use super::*;
[INFO] [stdout]   |     -------- the item `HashMap` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `HashMap` is imported redundantly
[INFO] [stdout]  --> src/http/request.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 2 | use super::*;
[INFO] [stdout]   |     -------- the item `HashMap` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/http/request.rs:66:39
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 return &buffer[..i+1];;
[INFO] [stdout]    |                                       ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Write` is imported redundantly
[INFO] [stdout]  --> src/handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 5 | use std::io::prelude::*;
[INFO] [stdout]   |     ------------------- the item `Write` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/http/request.rs:66:39
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 return &buffer[..i+1];;
[INFO] [stdout]    |                                       ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Args` is imported redundantly
[INFO] [stdout]    --> src/router/paths.rs:222:9
[INFO] [stdout]     |
[INFO] [stdout] 221 |     use super::*;
[INFO] [stdout]     |         -------- the item `Args` is already imported here
[INFO] [stdout] 222 |     use router::Args;
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Write` is imported redundantly
[INFO] [stdout]  --> src/handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 5 | use std::io::prelude::*;
[INFO] [stdout]   |     ------------------- the item `Write` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/middleware.rs:9:25
[INFO] [stdout]   |
[INFO] [stdout] 9 |     middleware: Vec<Box<Middleware+Sync+Send>>
[INFO] [stdout]   |                         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 9 |     middleware: Vec<Box<dyn Middleware+Sync+Send>>
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 |     router: &'b Fn(Request, Args) -> Response
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     router: &'b dyn Fn(Request, Args) -> Response
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/middleware.rs:9:25
[INFO] [stdout]   |
[INFO] [stdout] 9 |     middleware: Vec<Box<Middleware+Sync+Send>>
[INFO] [stdout]   |                         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 9 |     middleware: Vec<Box<dyn Middleware+Sync+Send>>
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 |     router: &'b Fn(Request, Args) -> Response
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 32 |     router: &'b dyn Fn(Request, Args) -> Response
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:20:35
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn add(&mut self, mw: Box<Middleware+Sync+Send>) {
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn add(&mut self, mw: Box<dyn Middleware+Sync+Send>) {
[INFO] [stdout]    |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:24:45
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub fn get_handle(&'a self, router: &'b Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub fn get_handle(&'a self, router: &'b dyn Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:36:56
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub fn new(store: &'a MiddlewareStore, router: &'b Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub fn new(store: &'a MiddlewareStore, router: &'b dyn Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:20:35
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn add(&mut self, mw: Box<Middleware+Sync+Send>) {
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn add(&mut self, mw: Box<dyn Middleware+Sync+Send>) {
[INFO] [stdout]    |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:24:45
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub fn get_handle(&'a self, router: &'b Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub fn get_handle(&'a self, router: &'b dyn Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/middleware.rs:36:56
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub fn new(store: &'a MiddlewareStore, router: &'b Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub fn new(store: &'a MiddlewareStore, router: &'b dyn Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:253:13
[INFO] [stdout]     |
[INFO] [stdout] 252 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 253 |             Some((func, _args)) => {if func != test1 {panic!("wrong return value")}},
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 252 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 253 |             Some((func, _args)) => {if func != test1 {panic!("wrong return value")}},
[INFO] [stdout] 254 |             None => panic!("Router fn does not return Some.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:258:13
[INFO] [stdout]     |
[INFO] [stdout] 257 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 258 |             Some((func, _args)) => {if func != test1 {panic!("wrong return value 2nd visit")}},
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:259:13
[INFO] [stdout]     |
[INFO] [stdout] 257 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 258 |             Some((func, _args)) => {if func != test1 {panic!("wrong return value 2nd visit")}},
[INFO] [stdout] 259 |             None => panic!("Router fn does not return Some at 2nd visit.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:263:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 263 |             Some((func, _args)) => {if func != empty {panic!("wrong return value")}},
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:264:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 263 |             Some((func, _args)) => {if func != empty {panic!("wrong return value")}},
[INFO] [stdout] 264 |             None => panic!("Router fn does not return Some.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:269:13
[INFO] [stdout]     |
[INFO] [stdout] 268 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 269 |             Some((func, args)) => {if func != empty {panic!("wrong return value")}},
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:270:13
[INFO] [stdout]     |
[INFO] [stdout] 268 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 269 |             Some((func, args)) => {if func != empty {panic!("wrong return value")}},
[INFO] [stdout] 270 |             None => panic!("Router fn does not return Some at /.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:281:13
[INFO] [stdout]     |
[INFO] [stdout] 280 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 281 |             Some((_func, args)) => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:287:13
[INFO] [stdout]     |
[INFO] [stdout] 280 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] ...
[INFO] [stdout] 287 |             None => panic!("Router fn does not return Some with variables.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:298:13
[INFO] [stdout]     |
[INFO] [stdout] 297 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 298 |             Some((_func, args)) => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/router/paths.rs:304:13
[INFO] [stdout]     |
[INFO] [stdout] 297 |         match test {
[INFO] [stdout]     |               ---- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] ...
[INFO] [stdout] 304 |             None => panic!("Router fn does not return Some with wildcard route.")
[INFO] [stdout]     |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/router/route_handler.rs:72:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         match routes.get_route(Method::GET, "/some") {
[INFO] [stdout]    |               -------------------------------------- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 72 |             Some(_) => {},
[INFO] [stdout]    |             ^^^^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/router/route_handler.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         match routes.get_route(Method::GET, "/some") {
[INFO] [stdout]    |               -------------------------------------- this expression has type `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout] 72 |             Some(_) => {},
[INFO] [stdout] 73 |             None => panic!("Server routing error")
[INFO] [stdout]    |             ^^^^ expected `(Option<fn(..., ...) -> ...>, ...)`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(Option<fn(http::Request, std::collections::HashMap<String, String>) -> http::Response>, std::collections::HashMap<String, String>)`
[INFO] [stdout]                found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/handler.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let mut buffer = read_buffer(&mut stream);
[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: unused variable: `i`
[INFO] [stdout]   --> src/handler.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for i in 0..32 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/handler.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let mut first = true;
[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:106:21
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 let mut worker = Server::create_worker(container.router.clone(), container.middleware.clone());
[INFO] [stdout]     |                     ----^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `thread` is never read
[INFO] [stdout]   --> src/lib.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 18 |     thread: thread::JoinHandle<()>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Quit` is never constructed
[INFO] [stdout]   --> src/lib.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | enum Orders {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 38 |     Request(TcpStream),
[INFO] [stdout] 39 |     Quit
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Busy` is never constructed
[INFO] [stdout]   --> src/lib.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | enum Status {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 43 |     Ready,
[INFO] [stdout] 44 |     Busy
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:100:21
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     worker.sender.send(Orders::Request(stream));
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     let _ = worker.sender.send(Orders::Request(stream));
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 worker.sender.send(Orders::Request(stream));
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 let _ = worker.sender.send(Orders::Request(stream));
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/handler.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     stream.set_read_timeout(Some(Duration::new(5, 0)));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let _ = stream.set_read_timeout(Some(Duration::new(5, 0)));
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 18 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/handler.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let mut buffer = read_buffer(&mut stream);
[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: unused variable: `i`
[INFO] [stdout]   --> src/handler.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for i in 0..32 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/handler.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let mut first = true;
[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:106:21
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 let mut worker = Server::create_worker(container.router.clone(), container.middleware.clone());
[INFO] [stdout]     |                     ----^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 13 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ho` (lib test) due to 15 previous errors; 13 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "21d0a0fb16aec8cbd4803defeb43e7c3b7ae2485b0f1dcc8de203b5bab7a5760", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "21d0a0fb16aec8cbd4803defeb43e7c3b7ae2485b0f1dcc8de203b5bab7a5760", kill_on_drop: false }`
[INFO] [stdout] 21d0a0fb16aec8cbd4803defeb43e7c3b7ae2485b0f1dcc8de203b5bab7a5760
