[INFO] fetching crate tower-balance 0.3.0... [INFO] checking tower-balance-0.3.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate tower-balance 0.3.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate tower-balance 0.3.0 [INFO] finished tweaking crates.io crate tower-balance 0.3.0 [INFO] tweaked toml for crates.io crate tower-balance 0.3.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate tower-balance 0.3.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tower-balance 0.3.0 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-load v0.3.0 [INFO] [stderr] Downloaded tower-layer v0.3.0 [INFO] [stderr] Downloaded tracing-core v0.1.7 [INFO] [stderr] Downloaded tracing-attributes v0.1.5 [INFO] [stderr] Downloaded tower-make v0.3.0 [INFO] [stderr] Downloaded tower-discover v0.3.0 [INFO] [stderr] Downloaded tower-ready-cache v0.3.0 [INFO] [stderr] Downloaded tracing v0.1.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5eb5e7afd61b4a4b4c8fa13d3468827c998e572a84146ca328f3e983275d34df [INFO] running `Command { std: "docker" "start" "-a" "5eb5e7afd61b4a4b4c8fa13d3468827c998e572a84146ca328f3e983275d34df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5eb5e7afd61b4a4b4c8fa13d3468827c998e572a84146ca328f3e983275d34df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5eb5e7afd61b4a4b4c8fa13d3468827c998e572a84146ca328f3e983275d34df", kill_on_drop: false }` [INFO] [stdout] 5eb5e7afd61b4a4b4c8fa13d3468827c998e572a84146ca328f3e983275d34df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1570ced911d2cd84cdf2a6f4d0d1652d264b3e38e713943ab6d59aaa237b016 [INFO] running `Command { std: "docker" "start" "-a" "a1570ced911d2cd84cdf2a6f4d0d1652d264b3e38e713943ab6d59aaa237b016", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking futures-core v0.3.1 [INFO] [stderr] Checking tokio v0.2.6 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-task v0.3.1 [INFO] [stderr] Checking tower-make v0.3.0 [INFO] [stderr] Checking tower-layer v0.3.0 [INFO] [stderr] Checking tracing-core v0.1.7 [INFO] [stderr] Checking futures-util v0.3.1 [INFO] [stderr] Checking getrandom v0.1.13 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking tower-ready-cache v0.3.0 [INFO] [stderr] Compiling pin-project-internal v0.4.6 [INFO] [stderr] Compiling tracing-attributes v0.1.5 [INFO] [stderr] Checking tracing v0.1.10 [INFO] [stderr] Checking pin-project v0.4.6 [INFO] [stderr] Checking tower-discover v0.3.0 [INFO] [stderr] Checking tower-load v0.3.0 [INFO] [stderr] Checking tower-balance v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `tokio_test` [INFO] [stdout] --> src/p2c/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio_test::{assert_pending, assert_ready, assert_ready_ok, task}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_test`, use `cargo add tokio_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_test` [INFO] [stdout] --> src/p2c/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tower_test::{assert_request_eq, mock}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tower_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_test`, use `cargo add tower_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_test` [INFO] [stdout] --> src/pool/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio_test::{assert_pending, assert_ready, assert_ready_ok, task}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_test`, use `cargo add tokio_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_test` [INFO] [stdout] --> src/pool/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tower_test::{assert_request_eq, mock}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tower_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_test`, use `cargo add tower_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/p2c/test.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/p2c/test.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/p2c/test.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/pool/test.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/pool/test.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/pool/test.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/pool/test.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/p2c/test.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | handle_a.allow(0); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/p2c/test.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | handle_b.allow(0); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/p2c/test.rs:109:51 [INFO] [stdout] | [INFO] [stdout] 109 | if let Poll::Ready(Some((_, tx))) = h.as_mut().poll_request() { [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | svc1.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | svc2.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | svc1.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 118 | svc2.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 161 | svc1.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/pool/test.rs:180:10 [INFO] [stdout] | [INFO] [stdout] 180 | svc2.allow(1); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnreadyService` is never constructed [INFO] [stdout] --> src/p2c/service.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct UnreadyService { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/p2c/service.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/p2c/make.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | #[pin_project] [INFO] [stdout] | ^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/p2c/make.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | #[pin_project] [INFO] [stdout] | ^------------- [INFO] [stdout] | | [INFO] [stdout] | `Unpin` is not local [INFO] [stdout] | move the `impl` block outside of this function `__unpin_scope_MakeFuture` [INFO] [stdout] 25 | #[derive(Debug)] [INFO] [stdout] 26 | pub struct MakeFuture { [INFO] [stdout] | ---------- `MakeFuture` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` may come from an old version of the `pin_project_internal` crate, try updating your dependency with `cargo update -p pin_project_internal` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` which comes from the expansion of the attribute macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/p2c/service.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | #[pin_project] [INFO] [stdout] | ^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/p2c/service.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | #[pin_project] [INFO] [stdout] | ^------------- [INFO] [stdout] | | [INFO] [stdout] | `Unpin` is not local [INFO] [stdout] | move the `impl` block outside of this function `__unpin_scope_UnreadyService` [INFO] [stdout] ... [INFO] [stdout] 71 | struct UnreadyService { [INFO] [stdout] | -------------- `UnreadyService` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` may come from an old version of the `pin_project_internal` crate, try updating your dependency with `cargo update -p pin_project_internal` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` which comes from the expansion of the attribute macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pool/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | #[pin_project] [INFO] [stdout] | ^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pool/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | #[pin_project] [INFO] [stdout] | ^------------- [INFO] [stdout] | | [INFO] [stdout] | `Unpin` is not local [INFO] [stdout] | move the `impl` block outside of this function `__unpin_scope_PoolDiscoverer` [INFO] [stdout] 49 | pub struct PoolDiscoverer [INFO] [stdout] | -------------- `PoolDiscoverer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::pin_project::__private::__PinProjectInternalDerive` may come from an old version of the `pin_project_internal` crate, try updating your dependency with `cargo update -p pin_project_internal` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` which comes from the expansion of the attribute macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tower-balance` (lib test) due to 20 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower` [INFO] [stdout] --> examples/demo.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tower::util::ServiceExt; [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] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_limit` [INFO] [stdout] --> examples/demo.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tower_limit::concurrency::ConcurrencyLimit; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tower_limit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_limit`, use `cargo add tower_limit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hdrhistogram` [INFO] [stdout] --> examples/demo.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hdrhistogram::Histogram; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `hdrhistogram` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hdrhistogram`, use `cargo add hdrhistogram` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> examples/demo.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-0.2.6/src/lib.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 266 | / cfg_macros! { [INFO] [stdout] 267 | | #[cfg(not(test))] // Work around for rust-lang/rust#62127 [INFO] [stdout] 268 | | pub use tokio_macros::main; [INFO] [stdout] | | ^^^^ [INFO] [stdout] 269 | | pub use tokio_macros::test; [INFO] [stdout] 270 | | } [INFO] [stdout] | |_- the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] --> examples/demo.rs:46:45 [INFO] [stdout] | [INFO] [stdout] 46 | tracing::subscriber::set_global_default(tracing_subscriber::FmtSubscriber::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower` [INFO] [stdout] --> examples/demo.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | let svc = tower::service_fn(move |_| { [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] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/demo.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tower-balance` (example "demo") due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "a1570ced911d2cd84cdf2a6f4d0d1652d264b3e38e713943ab6d59aaa237b016", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1570ced911d2cd84cdf2a6f4d0d1652d264b3e38e713943ab6d59aaa237b016", kill_on_drop: false }` [INFO] [stdout] a1570ced911d2cd84cdf2a6f4d0d1652d264b3e38e713943ab6d59aaa237b016