[INFO] fetching crate simple-shutdown 0.1.0... [INFO] testing simple-shutdown-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate simple-shutdown 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate simple-shutdown 0.1.0 [INFO] finished tweaking crates.io crate simple-shutdown 0.1.0 [INFO] tweaked toml for crates.io crate simple-shutdown 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate simple-shutdown 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 37 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1ffbddf87b7ec0d7b559088d8ef96aa8b29108db646d660b1a82f3a2389aa39 [INFO] running `Command { std: "docker" "start" "-a" "c1ffbddf87b7ec0d7b559088d8ef96aa8b29108db646d660b1a82f3a2389aa39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1ffbddf87b7ec0d7b559088d8ef96aa8b29108db646d660b1a82f3a2389aa39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1ffbddf87b7ec0d7b559088d8ef96aa8b29108db646d660b1a82f3a2389aa39", kill_on_drop: false }` [INFO] [stdout] c1ffbddf87b7ec0d7b559088d8ef96aa8b29108db646d660b1a82f3a2389aa39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88e54541e706ef8dc1e5fee999a67804a68166a91de23e36c976caf78dd25ac5 [INFO] running `Command { std: "docker" "start" "-a" "88e54541e706ef8dc1e5fee999a67804a68166a91de23e36c976caf78dd25ac5", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling critical-section v1.2.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling simple-shutdown v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.01s [INFO] running `Command { std: "docker" "inspect" "88e54541e706ef8dc1e5fee999a67804a68166a91de23e36c976caf78dd25ac5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88e54541e706ef8dc1e5fee999a67804a68166a91de23e36c976caf78dd25ac5", kill_on_drop: false }` [INFO] [stdout] 88e54541e706ef8dc1e5fee999a67804a68166a91de23e36c976caf78dd25ac5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5b51cc9f9dd4639be1ac3621e8b3159ec37c43a998a4e31a045d26a6506d128 [INFO] running `Command { std: "docker" "start" "-a" "d5b51cc9f9dd4639be1ac3621e8b3159ec37c43a998a4e31a045d26a6506d128", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling simple-shutdown v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the list of imported crates [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | / tokio::select! { [INFO] [stdout] 62 | | result = rx => match result { [INFO] [stdout] 63 | | Ok(_) => {} [INFO] [stdout] 64 | | Err(_) => panic!("the sender did not spawn"), [INFO] [stdout] 65 | | }, [INFO] [stdout] 66 | | _ = tokio::time::sleep(core::time::Duration::from_secs(10)) => panic!() [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____________^ could not find `std` in the list of imported crates [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the list of imported crates [INFO] [stdout] --> src/lib.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / tokio::select! { [INFO] [stdout] 86 | | _ = group.done() => panic!(), [INFO] [stdout] 87 | | _ = tokio::time::sleep(core::time::Duration::from_secs(2)) => {} [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ could not find `std` in the list of imported crates [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the list of imported crates [INFO] [stdout] --> src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | / tokio::select! { [INFO] [stdout] 107 | | _ = group.done() => {}, [INFO] [stdout] 108 | | _ = tokio::time::sleep(core::time::Duration::from_secs(2)) => panic!() [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____________^ could not find `std` in the list of imported crates [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `std` in the list of imported crates [INFO] [stdout] --> src/lib.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | / tokio::select! { [INFO] [stdout] 126 | | _ = shutdown => {}, [INFO] [stdout] 127 | | _ = tokio::time::sleep(core::time::Duration::from_secs(5)) => {let _ = tx.send(());}, [INFO] [stdout] 128 | | } [INFO] [stdout] | |_____________________^ could not find `std` in the list of imported crates [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:51:44 [INFO] [stdout] | [INFO] [stdout] 51 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ---------------------- ^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup::::with_static` [INFO] [stdout] --> src/group.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskGroup { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup::::with_static` [INFO] [stdout] 34 | /// Create a new task group using the provided spawner and state [INFO] [stdout] 35 | pub fn with_static(spawner: S, state: &'static State) -> Self { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup` [INFO] [stdout] --> src/group.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `spawn` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | group.spawn(async move { [INFO] [stdout] | ------^^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `spawn` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `spawn::Spawn` defines an item `spawn`, perhaps you need to implement it [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 76 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ---------------------- ^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup::::with_static` [INFO] [stdout] --> src/group.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskGroup { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup::::with_static` [INFO] [stdout] 34 | /// Create a new task group using the provided spawner and state [INFO] [stdout] 35 | pub fn with_static(spawner: S, state: &'static State) -> Self { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup` [INFO] [stdout] --> src/group.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `spawn` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | group.spawn(async move { [INFO] [stdout] | ------^^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `spawn` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `spawn::Spawn` defines an item `spawn`, perhaps you need to implement it [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `done` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | _ = group.done() => panic!(), [INFO] [stdout] | ^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `done` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ---------------------- ^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup::::with_static` [INFO] [stdout] --> src/group.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskGroup { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup::::with_static` [INFO] [stdout] 34 | /// Create a new task group using the provided spawner and state [INFO] [stdout] 35 | pub fn with_static(spawner: S, state: &'static State) -> Self { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup` [INFO] [stdout] --> src/group.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `spawn` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | group.spawn(async move { [INFO] [stdout] | ------^^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `spawn` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `spawn::Spawn` defines an item `spawn`, perhaps you need to implement it [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `done` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:107:27 [INFO] [stdout] | [INFO] [stdout] 107 | _ = group.done() => {}, [INFO] [stdout] | ^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `done` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:118:44 [INFO] [stdout] | [INFO] [stdout] 118 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ---------------------- ^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup::::with_static` [INFO] [stdout] --> src/group.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskGroup { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup::::with_static` [INFO] [stdout] 34 | /// Create a new task group using the provided spawner and state [INFO] [stdout] 35 | pub fn with_static(spawner: S, state: &'static State) -> Self { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Runtime: spawn::Spawn` is not satisfied [INFO] [stdout] --> src/lib.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let group = TaskGroup::with_static(&runtime, &STATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `spawn::Spawn` is not implemented for `&Runtime` [INFO] [stdout] | [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/spawn.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Spawn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `group::TaskGroup` [INFO] [stdout] --> src/group.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | ^^^^^ required by this bound in `TaskGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `spawn_with_shutdown` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:124:23 [INFO] [stdout] | [INFO] [stdout] 124 | group.spawn_with_shutdown(|shutdown| async move { [INFO] [stdout] | ------^^^^^^^^^^^^^^^^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `spawn_with_shutdown` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `shutdown` exists for struct `group::TaskGroup<&Runtime, &State>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | group.shutdown().await; [INFO] [stdout] | ^^^^^^^^ method cannot be called on `group::TaskGroup<&Runtime, &State>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/group.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TaskGroup> { [INFO] [stdout] | -------------------------------------------------------- method `shutdown` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `&Runtime: spawn::Spawn` was not satisfied [INFO] [stdout] --> src/group.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl + Clone + Send> TaskGroup { [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced here --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-shutdown` (lib test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "d5b51cc9f9dd4639be1ac3621e8b3159ec37c43a998a4e31a045d26a6506d128", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5b51cc9f9dd4639be1ac3621e8b3159ec37c43a998a4e31a045d26a6506d128", kill_on_drop: false }` [INFO] [stdout] d5b51cc9f9dd4639be1ac3621e8b3159ec37c43a998a4e31a045d26a6506d128