[INFO] cloning repository https://github.com/ofelipedidio/rust-http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ofelipedidio/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fofelipedidio%2Frust-http-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fofelipedidio%2Frust-http-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25fbab98c2590c301c55125e69588e567707a63d [INFO] checking ofelipedidio/rust-http-server against master#ff0b4b6091a75ad840035a991426c8bc9fbd93bb for pr-117673 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fofelipedidio%2Frust-http-server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ofelipedidio/rust-http-server on toolchain ff0b4b6091a75ad840035a991426c8bc9fbd93bb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff0b4b6091a75ad840035a991426c8bc9fbd93bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ofelipedidio/rust-http-server [INFO] finished tweaking git repo https://github.com/ofelipedidio/rust-http-server [INFO] tweaked toml for git repo https://github.com/ofelipedidio/rust-http-server written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ofelipedidio/rust-http-server 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" "+ff0b4b6091a75ad840035a991426c8bc9fbd93bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ofelipedidio/rust-http-server against try#9ee647322baa27cc6bb1a95b4595bad94b334fcf for pr-117673 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fofelipedidio%2Frust-http-server" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ofelipedidio/rust-http-server on toolchain 9ee647322baa27cc6bb1a95b4595bad94b334fcf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ee647322baa27cc6bb1a95b4595bad94b334fcf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ofelipedidio/rust-http-server [INFO] finished tweaking git repo https://github.com/ofelipedidio/rust-http-server [INFO] tweaked toml for git repo https://github.com/ofelipedidio/rust-http-server written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ofelipedidio/rust-http-server 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" "+9ee647322baa27cc6bb1a95b4595bad94b334fcf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9ee647322baa27cc6bb1a95b4595bad94b334fcf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ddf1400f5347d1165d69ed18c235d01fb3dba29a0c4559740d714fadbc84f80 [INFO] running `Command { std: "docker" "start" "-a" "0ddf1400f5347d1165d69ed18c235d01fb3dba29a0c4559740d714fadbc84f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ddf1400f5347d1165d69ed18c235d01fb3dba29a0c4559740d714fadbc84f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ddf1400f5347d1165d69ed18c235d01fb3dba29a0c4559740d714fadbc84f80", kill_on_drop: false }` [INFO] [stdout] 0ddf1400f5347d1165d69ed18c235d01fb3dba29a0c4559740d714fadbc84f80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9ee647322baa27cc6bb1a95b4595bad94b334fcf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 59ef2bc64b057ead0418ccca38a3c73eb6d1010d5ffa688bec5639e39840b32b [INFO] running `Command { std: "docker" "start" "-a" "59ef2bc64b057ead0418ccca38a3c73eb6d1010d5ffa688bec5639e39840b32b", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking http_server v0.1.0 (/opt/rustwide/workdir/http_server) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> http_server/src/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> http_server/src/router.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::query::QueryPath` [INFO] [stdout] --> http_server/src/router.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::query::QueryPath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpBody` [INFO] [stdout] --> http_server/src/router.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::response::{HttpResponse, HttpBody}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> http_server/src/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> http_server/src/router.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::query::QueryPath` [INFO] [stdout] --> http_server/src/router.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::query::QueryPath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpBody` [INFO] [stdout] --> http_server/src/router.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::response::{HttpResponse, HttpBody}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> http_server/src/lib.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn handle_request(request: HttpRequest>) -> HttpResponse> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> http_server/src/lib.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn handle_request(request: HttpRequest>) -> HttpResponse> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking example v0.1.0 (/opt/rustwide/workdir/example) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Method` in this scope [INFO] [stdout] --> example/src/component/router.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Method; [INFO] [stdout] | [INFO] [stdout] 1 + use http_server::request::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::Router` [INFO] [stdout] --> example/src/component/path.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | router::Router, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Method` in this scope [INFO] [stdout] --> example/src/component/router.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Method; [INFO] [stdout] | [INFO] [stdout] 1 + use http_server::request::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `router::Router` [INFO] [stdout] --> example/src/component/path.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | router::Router, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> example/src/component/router.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | ... return Err(todo!("Create next fallback")); [INFO] [stdout] | ^^^ ----------------------------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> example/src/component/router.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | ... return Err(todo!("Create next fallback")); [INFO] [stdout] | ^^^ ----------------------------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | Router::Service(Box::new(service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^------------------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 102 | Router::Service(Box::new(service), /* Box<(dyn HttpService + 'static)> */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | Router::Service(Box::new(service)) [INFO] [stdout] | ^^^^^^^^^^^^^^^------------------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 102 | Router::Service(Box::new(service), /* Box<(dyn HttpService + 'static)> */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> example/src/component/router_builder.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 84 | paths.insert(path, service); [INFO] [stdout] | ----- ------- this argument has type `Router`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `paths` to have type `HashMap` [INFO] [stdout] ... [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `HashMap>`, found `HashMap` [INFO] [stdout] --> example/src/component/router_builder.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: expected struct `HashMap<_, Vec>` [INFO] [stdout] found struct `HashMap<_, Router>` [INFO] [stdout] note: expected `Vec>`, found `Router` [INFO] [stdout] --> example/src/component/router_builder.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found enum `Router` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> example/src/component/router.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn new(paths: HashMap>, default_services: Vec>) -> Self { [INFO] [stdout] | ^^^ ----------------------------------- ------------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 135 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 148 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 148 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 155 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> example/src/component/router_builder.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 84 | paths.insert(path, service); [INFO] [stdout] | ----- ------- this argument has type `Router`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `paths` to have type `HashMap` [INFO] [stdout] ... [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `HashMap>`, found `HashMap` [INFO] [stdout] --> example/src/component/router_builder.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: expected struct `HashMap<_, Vec>` [INFO] [stdout] found struct `HashMap<_, Router>` [INFO] [stdout] note: expected `Vec>`, found `Router` [INFO] [stdout] --> example/src/component/router_builder.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | Router::new(paths, default_service) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found enum `Router` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> example/src/component/router.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn new(paths: HashMap>, default_services: Vec>) -> Self { [INFO] [stdout] | ^^^ ----------------------------------- ------------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 135 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 148 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 148 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> example/src/component/router_builder.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | let service = Router::Service(service); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `Box<(dyn HttpService + 'static)>` is missing [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> example/src/component/router.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Service(Option, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 155 | let service = Router::Service(service, /* Box<(dyn HttpService + 'static)> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `example` (bin "example" test) due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `example` (bin "example") due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "59ef2bc64b057ead0418ccca38a3c73eb6d1010d5ffa688bec5639e39840b32b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59ef2bc64b057ead0418ccca38a3c73eb6d1010d5ffa688bec5639e39840b32b", kill_on_drop: false }` [INFO] [stdout] 59ef2bc64b057ead0418ccca38a3c73eb6d1010d5ffa688bec5639e39840b32b