[INFO] fetching crate http-kit 0.1.2... [INFO] testing http-kit-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate http-kit 0.1.2 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate http-kit 0.1.2 [INFO] finished tweaking crates.io crate http-kit 0.1.2 [INFO] tweaked toml for crates.io crate http-kit 0.1.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate http-kit 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate http-kit 0.1.2 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 547e9129c2f7d8ac373ab1b4cc337c14a95e90f9bb004ab80d4ef4a3d4f311f6 [INFO] running `Command { std: "docker" "start" "-a" "547e9129c2f7d8ac373ab1b4cc337c14a95e90f9bb004ab80d4ef4a3d4f311f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "547e9129c2f7d8ac373ab1b4cc337c14a95e90f9bb004ab80d4ef4a3d4f311f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "547e9129c2f7d8ac373ab1b4cc337c14a95e90f9bb004ab80d4ef4a3d4f311f6", kill_on_drop: false }` [INFO] [stdout] 547e9129c2f7d8ac373ab1b4cc337c14a95e90f9bb004ab80d4ef4a3d4f311f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 425d0920e37bf0acb3836fa9a74e7937e0d3d8f34f771b6491fa961f79d9b1c2 [INFO] running `Command { std: "docker" "start" "-a" "425d0920e37bf0acb3836fa9a74e7937e0d3d8f34f771b6491fa961f79d9b1c2", kill_on_drop: false }` [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling bytestr v0.1.0 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling http-kit v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.85s [INFO] running `Command { std: "docker" "inspect" "425d0920e37bf0acb3836fa9a74e7937e0d3d8f34f771b6491fa961f79d9b1c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "425d0920e37bf0acb3836fa9a74e7937e0d3d8f34f771b6491fa961f79d9b1c2", kill_on_drop: false }` [INFO] [stdout] 425d0920e37bf0acb3836fa9a74e7937e0d3d8f34f771b6491fa961f79d9b1c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0339503c1533c193f87d2e2740bce865357ab32fe0137b1ed4af08313ebc63d1 [INFO] running `Command { std: "docker" "start" "-a" "0339503c1533c193f87d2e2740bce865357ab32fe0137b1ed4af08313ebc63d1", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling http-kit v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 13.26s [INFO] running `Command { std: "docker" "inspect" "0339503c1533c193f87d2e2740bce865357ab32fe0137b1ed4af08313ebc63d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0339503c1533c193f87d2e2740bce865357ab32fe0137b1ed4af08313ebc63d1", kill_on_drop: false }` [INFO] [stdout] 0339503c1533c193f87d2e2740bce865357ab32fe0137b1ed4af08313ebc63d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e1112d8c0e8d36f69dbfd2b184ad69f280db641a4167d03ca03f44bdde914929 [INFO] running `Command { std: "docker" "start" "-a" "e1112d8c0e8d36f69dbfd2b184ad69f280db641a4167d03ca03f44bdde914929", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_kit-c2a31cf4dbc0e240) [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 http_kit [INFO] [stdout] [INFO] [stdout] running 156 tests [INFO] [stdout] test src/body/mod.rs - body::Body::as_bytes (line 626) ... ok [INFO] [stdout] test src/body/error_type.rs - body::error_type::Error (line 16) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::as_str (line 659) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::empty (line 172) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::from_bytes (line 294) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body (line 119) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::freeze (line 890) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::from_form (line 408) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::from_reader (line 218) - compile ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::from_json (line 367) ... ok [INFO] [stdout] test src/body/mod.rs - body (line 28) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::from_stream (line 261) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::frozen (line 192) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::into_json (line 695) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::is_empty (line 472) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::into_bytes (line 508) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::into_string (line 573) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::into_form (line 745) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::into_reader (line 595) ... ok [INFO] [stdout] test src/body/mod.rs - body::Body::is_frozen (line 866) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint (line 18) ... FAILED [INFO] [stdout] test src/endpoint.rs - endpoint (line 32) ... FAILED [INFO] [stdout] test src/body/mod.rs - body::Body::replace (line 782) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint::AnyEndpoint (line 309) ... FAILED [INFO] [stdout] test src/body/mod.rs - body::Body::len (line 447) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint (line 47) ... FAILED [INFO] [stdout] test src/body/mod.rs - body::Body::take (line 839) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint::Endpoint::respond (line 155) ... FAILED [INFO] [stdout] test src/body/mod.rs - body::Body::swap (line 807) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint::AnyEndpoint::name (line 378) ... FAILED [INFO] [stdout] test src/body/mod.rs - body::convert (line 43) ... ok [INFO] [stdout] test src/endpoint.rs - endpoint::Endpoint (line 92) ... FAILED [INFO] [stdout] test src/endpoint.rs - endpoint::WithMiddleware (line 199) ... FAILED [INFO] [stdout] test src/endpoint.rs - endpoint::WithMiddleware::new (line 242) ... FAILED [INFO] [stdout] test src/endpoint.rs - endpoint::AnyEndpoint::new (line 352) ... FAILED [INFO] [stdout] test src/endpoint.rs - endpoint::Endpoint (line 109) ... FAILED [INFO] [stdout] test src/error.rs - error::Error::into_inner (line 268) ... ok [INFO] [stdout] test src/error.rs - error::Error::msg (line 120) ... ok [INFO] [stdout] test src/error.rs - error::Error (line 40) ... ok [INFO] [stdout] test src/error.rs - error::Error::new (line 90) ... ok [INFO] [stdout] test src/error.rs - error::Error::downcast (line 193) ... ok [INFO] [stdout] test src/error.rs - error (line 14) ... ok [INFO] [stdout] test src/error.rs - error::Error::set_status (line 148) ... ok [INFO] [stdout] test src/error.rs - error::Error::downcast_mut (line 245) ... ok [INFO] [stdout] test src/error.rs - error::Error::downcast_ref (line 220) ... ok [INFO] [stdout] test src/error.rs - error::ResultExt (line 338) ... ok [INFO] [stdout] test src/middleware.rs - middleware (line 18) ... FAILED [INFO] [stdout] test src/error.rs - error::msg (line 426) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::AnyMiddleware (line 288) ... FAILED [INFO] [stdout] test src/lib.rs - (line 31) ... ok [INFO] [stdout] test src/error.rs - error::Result (line 62) ... ok [INFO] [stdout] test src/middleware.rs - middleware::(T1,T2) (line 231) ... FAILED [INFO] [stdout] test src/lib.rs - (line 71) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::AnyMiddleware (line 318) ... FAILED [INFO] [stdout] test src/error.rs - error::ResultExt::status (line 368) ... ok [INFO] [stdout] test src/error.rs - error::Error::status (line 176) ... ok [INFO] [stdout] test src/middleware.rs - middleware::Middleware (line 84) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::AnyMiddleware::name (line 392) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::AnyMiddleware::new (line 363) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::Middleware::handle (line 149) ... FAILED [INFO] [stdout] test src/middleware.rs - middleware::Middleware (line 65) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... ok [INFO] [stdout] test src/middleware.rs - middleware::Middleware (line 106) ... FAILED [INFO] [stdout] test src/request.rs - request::Request (line 120) ... ok [INFO] [stdout] test src/request.rs - request (line 27) ... ok [INFO] [stdout] test src/request.rs - request::Request::append_header (line 610) ... ok [INFO] [stdout] test src/request.rs - request::Request::extensions (line 665) ... ok [INFO] [stdout] test src/request.rs - request (line 41) ... ok [INFO] [stdout] test src/request.rs - request::Request::delete (line 277) ... ok [INFO] [stdout] test src/request.rs - request::Request (line 91) ... ok [INFO] [stdout] test src/request.rs - request::Request (line 105) ... ok [INFO] [stdout] test src/request.rs - request::Request::get_mime (line 1246) ... ok [INFO] [stdout] test src/request.rs - request::Request::extensions_mut (line 683) ... ok [INFO] [stdout] test src/request.rs - request::Request::get_mut_extension (line 723) ... ok [INFO] [stdout] test src/request.rs - request::Request::get_extension (line 701) ... ok [INFO] [stdout] test src/request.rs - request::Request::get_header (line 554) ... ok [INFO] [stdout] test src/request.rs - request::Request::form (line 968) ... ok [INFO] [stdout] test src/request.rs - request::Request::get_headers (line 580) ... ok [INFO] [stdout] test src/request.rs - request::Request::header (line 489) ... ok [INFO] [stdout] test src/request.rs - request::Request::get (line 201) ... ok [INFO] [stdout] test src/request.rs - request::Request::into_bytes (line 1056) ... ok [INFO] [stdout] test src/request.rs - request::Request::into_json (line 1120) ... ok [INFO] [stdout] test src/request.rs - request::Request::headers (line 511) ... ok [INFO] [stdout] test src/request.rs - request::Request::insert_extension (line 781) ... ok [INFO] [stdout] test src/request.rs - request::Request::into_form (line 1171) ... ok [INFO] [stdout] test src/request.rs - request::Request::insert_header (line 638) ... ok [INFO] [stdout] test src/request.rs - request::Request::headers_mut (line 530) ... ok [INFO] [stdout] test src/request.rs - request::Request::into_string (line 1086) ... ok [INFO] [stdout] test src/request.rs - request::Request::mime (line 1215) ... ok [INFO] [stdout] test src/request.rs - request::Request::map_body (line 894) ... ok [INFO] [stdout] test src/request.rs - request::Request::method_mut (line 346) ... ok [INFO] [stdout] test src/request.rs - request::Request::parts_mut (line 315) ... ok [INFO] [stdout] test src/request.rs - request::Request::method (line 331) ... ok [INFO] [stdout] test src/request.rs - request::Request::json (line 926) ... ok [INFO] [stdout] test src/request.rs - request::Request::parts (line 297) ... ok [INFO] [stdout] test src/request.rs - request::Request::post (line 227) ... ok [INFO] [stdout] test src/request.rs - request::Request::new (line 170) ... ok [INFO] [stdout] test src/request.rs - request::Request::put (line 252) ... ok [INFO] [stdout] test src/request.rs - request::Request::set_method (line 366) ... ok [INFO] [stdout] test src/request.rs - request::Request::set_uri (line 416) ... ok [INFO] [stdout] test src/request.rs - request::Request::set_version (line 465) ... ok [INFO] [stdout] test src/request.rs - request::Request::remove_extension (line 749) ... ok [INFO] [stdout] test src/request.rs - request::Request::replace_body (line 837) ... ok [INFO] [stdout] test src/request.rs - request::Request::swap_body (line 866) ... ok [INFO] [stdout] test src/request.rs - request::Request::uri (line 382) ... ok [INFO] [stdout] test src/request.rs - request::Request::take_body (line 811) ... ok [INFO] [stdout] test src/request.rs - request::Request::version (line 430) ... ok [INFO] [stdout] test src/response.rs - response (line 61) - compile ... ok [INFO] [stdout] test src/response.rs - response (line 34) ... ok [INFO] [stdout] test src/response.rs - response::Response (line 122) ... ok [INFO] [stdout] test src/response.rs - response (line 19) ... ok [INFO] [stdout] test src/response.rs - response::Response (line 132) ... ok [INFO] [stdout] test src/request.rs - request::Request::uri_mut (line 397) ... ok [INFO] [stdout] test src/request.rs - request::Request::version_mut (line 446) ... ok [INFO] [stdout] test src/response.rs - response::Response::append_header (line 432) ... ok [INFO] [stdout] test src/response.rs - response (line 44) ... ok [INFO] [stdout] test src/response.rs - response::Response (line 107) ... ok [INFO] [stdout] test src/response.rs - response::Response::get_mime (line 1090) ... ok [INFO] [stdout] test src/response.rs - response::Response::empty (line 222) ... ok [INFO] [stdout] test src/response.rs - response::Response::get_header (line 379) ... ok [INFO] [stdout] test src/response.rs - response::Response::extensions_mut (line 535) ... ok [INFO] [stdout] test src/response.rs - response::Response::get_headers (line 405) ... ok [INFO] [stdout] test src/response.rs - response::Response::form (line 861) ... ok [INFO] [stdout] test src/response.rs - response::Response::get_extension (line 553) ... ok [INFO] [stdout] test src/response.rs - response::Response::get_mut_extension (line 575) ... ok [INFO] [stdout] test src/response.rs - response::Response::header (line 492) ... ok [INFO] [stdout] test src/response.rs - response::Response::extensions (line 517) ... ok [INFO] [stdout] test src/response.rs - response::Response::headers_mut (line 355) ... ok [INFO] [stdout] test src/response.rs - response::Response::headers (line 336) ... ok [INFO] [stdout] test src/response.rs - response::Response::into_bytes (line 907) ... ok [INFO] [stdout] test src/response.rs - response::Response::insert_header (line 460) ... ok [INFO] [stdout] test src/response.rs - response::Response::into_string (line 935) ... ok [INFO] [stdout] test src/response.rs - response::Response::into_form (line 1016) ... ok [INFO] [stdout] test src/response.rs - response::Response::into_json (line 967) ... ok [INFO] [stdout] test src/response.rs - response::Response::insert_extension (line 633) ... ok [INFO] [stdout] test src/response.rs - response::Response::map_body (line 740) ... ok [INFO] [stdout] test src/response.rs - response::Response::new (line 190) ... ok [INFO] [stdout] test src/response.rs - response::Response::remove_extension (line 601) ... ok [INFO] [stdout] test src/response.rs - response::Response::replace_body (line 687) ... ok [INFO] [stdout] test src/response.rs - response::Response::json (line 772) ... ok [INFO] [stdout] test src/response.rs - response::Response::set_status (line 270) ... ok [INFO] [stdout] test src/response.rs - response::Response::status (line 236) ... ok [INFO] [stdout] test src/response.rs - response::Response::mime (line 1059) ... ok [INFO] [stdout] test src/response.rs - response::Response::swap_body (line 714) ... ok [INFO] [stdout] test src/response.rs - response::Response::set_version (line 321) ... ok [INFO] [stdout] test src/response.rs - response::Response::status_mut (line 251) ... ok [INFO] [stdout] test src/response.rs - response::Response::version_mut (line 302) ... ok [INFO] [stdout] test src/response.rs - response::Response::version (line 285) ... ok [INFO] [stdout] test src/utils.rs - utils (line 114) ... ok [INFO] [stdout] test src/response.rs - response::Response::take_body (line 663) ... ok [INFO] [stdout] test src/utils.rs - utils (line 26) ... ok [INFO] [stdout] test src/utils.rs - utils (line 17) ... ok [INFO] [stdout] test src/utils.rs - utils::ByteStr (line 73) ... ok [INFO] [stdout] test src/utils.rs - utils (line 99) ... ok [INFO] [stdout] test src/utils.rs - utils (line 35) ... ok [INFO] [stdout] test src/utils.rs - utils::Bytes (line 54) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/endpoint.rs - endpoint (line 18) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&mut self, _request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint (line 32) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&self, request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut EchoEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&EchoEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&mut self, request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::AnyEndpoint (line 309) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:315:22 [INFO] [stdout] | [INFO] [stdout] 9 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn respond(&mut self, _request: &mut Request) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:322:22 [INFO] [stdout] | [INFO] [stdout] 16 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut GoodbyeEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&GoodbyeEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 16 | async fn respond(&mut self, _request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint (line 47) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 18 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 18 | async fn respond(&mut self, _request: &mut Request) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/endpoint.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 12 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::Endpoint::respond (line 155) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&self, request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut StatusEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&StatusEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn respond(&mut self, request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::AnyEndpoint::name (line 378) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:384:22 [INFO] [stdout] | [INFO] [stdout] 9 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn respond(&mut self, _request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::Endpoint (line 92) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 12 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut GreetingEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&GreetingEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 12 | async fn respond(&mut self, _request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::WithMiddleware (line 199) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:216:22 [INFO] [stdout] | [INFO] [stdout] 20 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&HelloEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 20 | async fn respond(&mut self, _request: &mut Request) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/endpoint.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 11 | let response = next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::WithMiddleware::new (line 242) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut AuthMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&AuthMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 21 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut SecretEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&SecretEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 21 | async fn respond(&mut self, _request: &mut Request) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/endpoint.rs:251:24 [INFO] [stdout] | [INFO] [stdout] 12 | return next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::AnyEndpoint::new (line 352) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:361:22 [INFO] [stdout] | [INFO] [stdout] 12 | async fn respond(&self, _request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&MyEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 12 | async fn respond(&mut self, _request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/endpoint.rs - endpoint::Endpoint (line 109) stdout ---- [INFO] [stdout] error[E0053]: method `respond` has an incompatible type for trait [INFO] [stdout] --> src/endpoint.rs:122:22 [INFO] [stdout] | [INFO] [stdout] 16 | async fn respond(&self, request: &mut Request) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut UserEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] found signature `fn(&UserEndpoint, &mut http_kit::Request) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 16 | async fn respond(&mut self, request: &mut Request) -> Result { [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 E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware (line 18) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut MyMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&MyMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 12 | let response = next.respond(request).await?; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error.rs - error::msg (line 426) stdout ---- [INFO] [stdout] error: cannot find macro `msg` in this scope [INFO] [stdout] --> src/error.rs:427:1 [INFO] [stdout] | [INFO] [stdout] 3 | msg!("Resource not found: {}", 404, resource_id); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use http_kit::msg; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::AnyMiddleware (line 288) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:294:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:302:21 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:296:9 [INFO] [stdout] | [INFO] [stdout] 11 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 19 | let response = next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::(T1,T2) (line 231) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:247:21 [INFO] [stdout] | [INFO] [stdout] 19 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 19 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:239:24 [INFO] [stdout] | [INFO] [stdout] 11 | let response = next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:249:24 [INFO] [stdout] | [INFO] [stdout] 21 | let response = next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 19 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 71) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/lib.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 12 | let response = next.respond(request).await?; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::AnyMiddleware (line 318) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 23 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 23 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 18 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 24 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 23 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::Middleware (line 84) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut AuthMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&AuthMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 15 | return next.respond(request).await; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::AnyMiddleware::name (line 392) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut MyMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&MyMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 10 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::AnyMiddleware::new (line 363) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:372:21 [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut CustomMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&CustomMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 14 | next.respond(request).await [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::Middleware::handle (line 149) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&TimingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 14 | let response = next.respond(request).await?; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::Middleware (line 65) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&LoggingMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 13 | let response = next.respond(request).await?; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/middleware.rs - middleware::Middleware (line 106) stdout ---- [INFO] [stdout] error[E0053]: method `handle` has an incompatible type for trait [INFO] [stdout] --> src/middleware.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | ^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut HeaderMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] found signature `fn(&HeaderMiddleware, &mut http_kit::Request, _) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&mut self, request: &mut Request, next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `next` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/middleware.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 11 | let mut response = next.respond(request).await?; [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle(&self, request: &mut Request, mut next: impl Endpoint) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0596. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/endpoint.rs - endpoint (line 18) [INFO] [stdout] src/endpoint.rs - endpoint (line 32) [INFO] [stdout] src/endpoint.rs - endpoint (line 47) [INFO] [stdout] src/endpoint.rs - endpoint::AnyEndpoint (line 309) [INFO] [stdout] src/endpoint.rs - endpoint::AnyEndpoint::name (line 378) [INFO] [stdout] src/endpoint.rs - endpoint::AnyEndpoint::new (line 352) [INFO] [stdout] src/endpoint.rs - endpoint::Endpoint (line 109) [INFO] [stdout] src/endpoint.rs - endpoint::Endpoint (line 92) [INFO] [stdout] src/endpoint.rs - endpoint::Endpoint::respond (line 155) [INFO] [stdout] src/endpoint.rs - endpoint::WithMiddleware (line 199) [INFO] [stdout] src/endpoint.rs - endpoint::WithMiddleware::new (line 242) [INFO] [stdout] src/error.rs - error::msg (line 426) [INFO] [stdout] src/lib.rs - (line 71) [INFO] [stdout] src/middleware.rs - middleware (line 18) [INFO] [stdout] src/middleware.rs - middleware::(T1,T2) (line 231) [INFO] [stdout] src/middleware.rs - middleware::AnyMiddleware (line 288) [INFO] [stdout] src/middleware.rs - middleware::AnyMiddleware (line 318) [INFO] [stdout] src/middleware.rs - middleware::AnyMiddleware::name (line 392) [INFO] [stdout] src/middleware.rs - middleware::AnyMiddleware::new (line 363) [INFO] [stdout] src/middleware.rs - middleware::Middleware (line 106) [INFO] [stdout] src/middleware.rs - middleware::Middleware (line 65) [INFO] [stdout] src/middleware.rs - middleware::Middleware (line 84) [INFO] [stdout] src/middleware.rs - middleware::Middleware::handle (line 149) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 133 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 17.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e1112d8c0e8d36f69dbfd2b184ad69f280db641a4167d03ca03f44bdde914929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1112d8c0e8d36f69dbfd2b184ad69f280db641a4167d03ca03f44bdde914929", kill_on_drop: false }` [INFO] [stdout] e1112d8c0e8d36f69dbfd2b184ad69f280db641a4167d03ca03f44bdde914929