[INFO] fetching crate service-async 0.2.4... [INFO] testing service-async-0.2.4 against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] extracting crate service-async 0.2.4 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate service-async 0.2.4 on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc2/source/rust-toolchain [INFO] started tweaking crates.io crate service-async 0.2.4 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate service-async 0.2.4 [INFO] tweaked toml for crates.io crate service-async 0.2.4 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate service-async 0.2.4 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65fdb87786dce75f950b7db8d4b853f164cfc2947ec3cb4b8a307d43e4c852ef [INFO] running `Command { std: "docker" "start" "-a" "65fdb87786dce75f950b7db8d4b853f164cfc2947ec3cb4b8a307d43e4c852ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65fdb87786dce75f950b7db8d4b853f164cfc2947ec3cb4b8a307d43e4c852ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65fdb87786dce75f950b7db8d4b853f164cfc2947ec3cb4b8a307d43e4c852ef", kill_on_drop: false }` [INFO] [stdout] 65fdb87786dce75f950b7db8d4b853f164cfc2947ec3cb4b8a307d43e4c852ef [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4258920a0d2d2fe99b6c3edd771ecc84168bea01222842d21dc57628db562de6 [INFO] running `Command { std: "docker" "start" "-a" "4258920a0d2d2fe99b6c3edd771ecc84168bea01222842d21dc57628db562de6", kill_on_drop: false }` [INFO] [stderr] Compiling param v0.1.2 [INFO] [stderr] Compiling service-async v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "4258920a0d2d2fe99b6c3edd771ecc84168bea01222842d21dc57628db562de6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4258920a0d2d2fe99b6c3edd771ecc84168bea01222842d21dc57628db562de6", kill_on_drop: false }` [INFO] [stdout] 4258920a0d2d2fe99b6c3edd771ecc84168bea01222842d21dc57628db562de6 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75ecab16bb7c2cc4f4fe9699d0c6332205a424a1d61644ec78f3aad1b883f946 [INFO] running `Command { std: "docker" "start" "-a" "75ecab16bb7c2cc4f4fe9699d0c6332205a424a1d61644ec78f3aad1b883f946", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling io-uring v0.6.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling socket2 v0.5.3 [INFO] [stderr] Compiling nix v0.26.2 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling auto-const-array v0.2.0 [INFO] [stderr] Compiling monoio-macros v0.1.0 [INFO] [stderr] Compiling monoio v0.2.1 [INFO] [stderr] Compiling service-async v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 21.32s [INFO] running `Command { std: "docker" "inspect" "75ecab16bb7c2cc4f4fe9699d0c6332205a424a1d61644ec78f3aad1b883f946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75ecab16bb7c2cc4f4fe9699d0c6332205a424a1d61644ec78f3aad1b883f946", kill_on_drop: false }` [INFO] [stdout] 75ecab16bb7c2cc4f4fe9699d0c6332205a424a1d61644ec78f3aad1b883f946 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ab14f34181e9e7051c744eb62a6e3e6d518b2ccfaa1f35f07688ad66d8ef22f5 [INFO] running `Command { std: "docker" "start" "-a" "ab14f34181e9e7051c744eb62a6e3e6d518b2ccfaa1f35f07688ad66d8ef22f5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/service_async-5693040fcdc4c9e8) [INFO] [stderr] Doc-tests service_async [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - (line 66) ... FAILED [INFO] [stdout] test src/make_service.rs - make_service::MakeService (line 17) ... FAILED [INFO] [stdout] test src/lib.rs - (line 20) ... FAILED [INFO] [stdout] test src/lib.rs - (line 171) ... FAILED [INFO] [stdout] test src/either.rs - either::Either (line 11) ... FAILED [INFO] [stdout] test src/make_service.rs - make_service::AsyncMakeService (line 154) ... FAILED [INFO] [stdout] test src/lib.rs - (line 108) ... FAILED [INFO] [stdout] test src/lib.rs - (line 264) ... FAILED [INFO] [stdout] test src/stack.rs - stack::FactoryStack (line 39) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 66) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Future` in this scope [INFO] [stdout] --> src/lib.rs:73:42 [INFO] [stdout] | [INFO] [stdout] 9 | fn call(&self, req: Request) -> impl Future>; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::future::Future; [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 E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/make_service.rs - make_service::MakeService (line 17) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ConnectionPool` in this scope [INFO] [stdout] --> src/make_service.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 9 | connection_pool: ConnectionPool, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> src/make_service.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 10 | config: Config, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> src/make_service.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 14 | config: Config, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionPool` [INFO] [stdout] --> src/make_service.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 28 | connection_pool: ConnectionPool::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `ConnectionPool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 20) stdout ---- [INFO] [stdout] error: expected type, found keyword `type` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 6 | { [INFO] [stdout] | - while parsing this item list starting here [INFO] [stdout] 7 | type Response = // ...; [INFO] [stdout] 8 | type Error = // ...; [INFO] [stdout] | ^^^^ expected type [INFO] [stdout] ... [INFO] [stdout] 22 | } [INFO] [stdout] | - the item list ends here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SomeStruct` in this scope [INFO] [stdout] --> src/lib.rs:21:38 [INFO] [stdout] | [INFO] [stdout] 3 | impl tower::Service for SomeStruct [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower` [INFO] [stdout] --> src/lib.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 3 | impl tower::Service for SomeStruct [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tower` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower`, use `cargo add tower` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 171) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `MakeService` in this scope [INFO] [stdout] --> src/lib.rs:183:6 [INFO] [stdout] | [INFO] [stdout] 14 | impl MakeService for SvcAFactory { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use service_async::MakeService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 16 | type Error = Infallible; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/either.rs - either::Either (line 11) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `SvcC` in this scope [INFO] [stdout] --> src/either.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl SvcC { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FactoryLayer` in this scope [INFO] [stdout] --> src/either.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn layer() -> impl FactoryLayer { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 + use service_async::layer::FactoryLayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `layer_fn` in this scope [INFO] [stdout] --> src/either.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 6 | layer_fn(|_: &C, inner| SvcC { inner }) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use service_async::layer::layer_fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SvcC` in this scope [INFO] [stdout] --> src/either.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 6 | layer_fn(|_: &C, inner| SvcC { inner }) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FactoryLayer` in this scope [INFO] [stdout] --> src/either.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 9 | fn opt_layer(enabled: bool) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 + use service_async::layer::FactoryLayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `layer_fn` in this scope [INFO] [stdout] --> src/either.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 11 | Some(layer_fn(|_: &C, inner| SvcC { inner })) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use service_async::layer::layer_fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SvcC` in this scope [INFO] [stdout] --> src/either.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 11 | Some(layer_fn(|_: &C, inner| SvcC { inner })) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryStack` [INFO] [stdout] --> src/either.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 18 | let stack = FactoryStack::new(config) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `FactoryStack` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use service_async::stack::FactoryStack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `config` in this scope [INFO] [stdout] --> src/either.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 18 | let stack = FactoryStack::new(config) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SvcAFactory` [INFO] [stdout] --> src/either.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 19 | .push(SvcAFactory::layer()) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SvcAFactory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SvcBFactory` [INFO] [stdout] --> src/either.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 20 | .push(SvcBFactory::layer()) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SvcBFactory` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SvcC` [INFO] [stdout] --> src/either.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 21 | .push(SvcC::opt_layer(true)); // Conditionally include SvcC [INFO] [stdout] | ^^^^ use of undeclared type `SvcC` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/make_service.rs - make_service::AsyncMakeService (line 154) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/make_service.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 4 | use your_crate::{AsyncMakeService, Service}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AsyncConnectionPool` in this scope [INFO] [stdout] --> src/make_service.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 7 | connection_pool: AsyncConnectionPool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> src/make_service.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 8 | config: Config, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> src/make_service.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 12 | config: Config, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AsyncConnectionPool` [INFO] [stdout] --> src/make_service.rs:178:34 [INFO] [stdout] | [INFO] [stdout] 26 | connection_pool: AsyncConnectionPool::new().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `AsyncConnectionPool` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 108) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `MakeService` in this scope [INFO] [stdout] --> src/lib.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 14 | impl MakeService for SvcAFactory { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use service_async::MakeService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Infallible` in this scope [INFO] [stdout] --> src/lib.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 16 | type Error = Infallible; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use std::convert::Infallible; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 264) stdout ---- [INFO] [stdout] error[E0599]: the method `make_async` exists for struct `FactoryStack>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:414:21 [INFO] [stdout] | [INFO] [stdout] 90 | struct SvcBFactory(T); [INFO] [stdout] | --------------------- doesn't satisfy `SvcBFactory: AsyncMakeService` [INFO] [stdout] ... [INFO] [stdout] 152 | let svc = stack.make_async().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `FactoryStack>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `SvcBFactory: AsyncMakeService` [INFO] [stdout] note: the trait `AsyncMakeService` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/make_service.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 188 | pub trait AsyncMakeService { [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 E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/stack.rs - stack::FactoryStack (line 39) stdout ---- [INFO] [stdout] error[E0061]: this function takes 3 arguments but 0 arguments were supplied [INFO] [stdout] --> src/stack.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 23 | .push(ServiceA::layer()) [INFO] [stdout] | ^^^^^^^^^^^^^^^-- three arguments of type `&ServiceA`, `&_`, and `()` are missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/layer.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn layer(&self, config: &C, inner: F) -> Self::Factory; [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 23 | .push(ServiceA::layer(/* &ServiceA */, /* config */, ())) [INFO] [stdout] | +++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 0 arguments were supplied [INFO] [stdout] --> src/stack.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 24 | .push(ServiceB::layer()); [INFO] [stdout] | ^^^^^^^^^^^^^^^-- three arguments are missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/layer.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn layer(&self, config: &C, inner: F) -> Self::Factory; [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 24 | .push(ServiceB::layer(/* value */, /* config */, /* inner */)); [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `make` exists for struct `FactoryStack>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/stack.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 9 | struct ServiceB(T); [INFO] [stdout] | ------------------ doesn't satisfy `ServiceB: MakeService` [INFO] [stdout] ... [INFO] [stdout] 26 | let service = stack.make().expect("Failed to create service"); [INFO] [stdout] | ^^^^ method cannot be called on `FactoryStack>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ServiceB: MakeService` [INFO] [stdout] note: the trait `MakeService` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/make_service.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | pub trait MakeService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/either.rs - either::Either (line 11) [INFO] [stdout] src/lib.rs - (line 108) [INFO] [stdout] src/lib.rs - (line 171) [INFO] [stdout] src/lib.rs - (line 20) [INFO] [stdout] src/lib.rs - (line 264) [INFO] [stdout] src/lib.rs - (line 66) [INFO] [stdout] src/make_service.rs - make_service::AsyncMakeService (line 154) [INFO] [stdout] src/make_service.rs - make_service::MakeService (line 17) [INFO] [stdout] src/stack.rs - stack::FactoryStack (line 39) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ab14f34181e9e7051c744eb62a6e3e6d518b2ccfaa1f35f07688ad66d8ef22f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab14f34181e9e7051c744eb62a6e3e6d518b2ccfaa1f35f07688ad66d8ef22f5", kill_on_drop: false }` [INFO] [stdout] ab14f34181e9e7051c744eb62a6e3e6d518b2ccfaa1f35f07688ad66d8ef22f5