[INFO] fetching crate time-lib 0.2.1... [INFO] checking time-lib-0.2.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate time-lib 0.2.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate time-lib 0.2.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate time-lib 0.2.1 [INFO] finished tweaking crates.io crate time-lib 0.2.1 [INFO] tweaked toml for crates.io crate time-lib 0.2.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate time-lib 0.2.1 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d270da6670d0d1393a966514fbe54a486fdc084434a6ab743e4a3b65b2e0f68 [INFO] running `Command { std: "docker" "start" "-a" "8d270da6670d0d1393a966514fbe54a486fdc084434a6ab743e4a3b65b2e0f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d270da6670d0d1393a966514fbe54a486fdc084434a6ab743e4a3b65b2e0f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d270da6670d0d1393a966514fbe54a486fdc084434a6ab743e4a3b65b2e0f68", kill_on_drop: false }` [INFO] [stdout] 8d270da6670d0d1393a966514fbe54a486fdc084434a6ab743e4a3b65b2e0f68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17547b8c30dfd0bc67d4c462d9b2ee22a8a044db814edb39ca0815fd09f13754 [INFO] running `Command { std: "docker" "start" "-a" "17547b8c30dfd0bc67d4c462d9b2ee22a8a044db814edb39ca0815fd09f13754", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.72 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling async-trait v0.1.76 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking mock_instant v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking time-lib v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.28s [INFO] running `Command { std: "docker" "inspect" "17547b8c30dfd0bc67d4c462d9b2ee22a8a044db814edb39ca0815fd09f13754", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17547b8c30dfd0bc67d4c462d9b2ee22a8a044db814edb39ca0815fd09f13754", kill_on_drop: false }` [INFO] [stdout] 17547b8c30dfd0bc67d4c462d9b2ee22a8a044db814edb39ca0815fd09f13754 [INFO] checking time-lib-0.2.1 against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] extracting crate time-lib 0.2.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate time-lib 0.2.1 on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate time-lib 0.2.1 [INFO] finished tweaking crates.io crate time-lib 0.2.1 [INFO] tweaked toml for crates.io crate time-lib 0.2.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate time-lib 0.2.1 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9dacd934b20ae3ba504b890c6b93d3ea895891483ba8bd7a94d6e8efc92f6292 [INFO] running `Command { std: "docker" "start" "-a" "9dacd934b20ae3ba504b890c6b93d3ea895891483ba8bd7a94d6e8efc92f6292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9dacd934b20ae3ba504b890c6b93d3ea895891483ba8bd7a94d6e8efc92f6292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dacd934b20ae3ba504b890c6b93d3ea895891483ba8bd7a94d6e8efc92f6292", kill_on_drop: false }` [INFO] [stdout] 9dacd934b20ae3ba504b890c6b93d3ea895891483ba8bd7a94d6e8efc92f6292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5af1d8aa8ad3d73972aa6f7a8f10ad5d9e501e9335a5196021a443e399dd3fae [INFO] running `Command { std: "docker" "start" "-a" "5af1d8aa8ad3d73972aa6f7a8f10ad5d9e501e9335a5196021a443e399dd3fae", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (1 fix) [INFO] [stderr] Compiling proc-macro2 v1.0.72 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling async-trait v0.1.76 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking mock_instant v0.3.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking time-lib v0.2.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/pomodoro-tcp.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/multiple-tcp-clients.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.60s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking time-lib v0.2.1 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/client/tcp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::{ [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/server/tcp.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::{ [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/server/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::{sync::Mutex, task, time}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/server/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::{sync::Mutex, task, time}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/tcp.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::{ [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/timer.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/tcp.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::{ [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for reference `&ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | let mut state = self.lock().await; [INFO] [stdout] | ^^^^ method not found in `&ThreadSafeState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for reference `&ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | self.set(ServerState::Running).await [INFO] [stdout] | ^^^ method not found in `&ThreadSafeState` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `set`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for reference `&ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 102 | self.set(ServerState::Stopping).await [INFO] [stdout] | ^^^ method not found in `&ThreadSafeState` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `set`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for reference `&ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | self.set(ServerState::Stopped).await [INFO] [stdout] | ^^^ method not found in `&ThreadSafeState` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `set`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_running` found for struct `ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ThreadSafeState(Arc>); [INFO] [stdout] | -------------------------- method `set_running` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn set_running(&self) { [INFO] [stdout] | ----------- the method is available for `ThreadSafeState` here [INFO] [stdout] ... [INFO] [stdout] 216 | self.state.set_running().await; [INFO] [stdout] | ^^^^^^^^^^^ method not found in `ThreadSafeState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for struct `ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ThreadSafeState(Arc>); [INFO] [stdout] | -------------------------- method `clone` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 220 | let state = self.state.clone(); [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeState` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] help: trait `Clone` which provides `clone` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 10 + use std::clone::Clone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:221:32 [INFO] [stdout] | [INFO] [stdout] 221 | let timer = self.timer.clone(); [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `clone` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] help: trait `Clone` which provides `clone` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 10 + use std::clone::Clone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:246:36 [INFO] [stdout] | [INFO] [stdout] 246 | let timer = self.timer.clone(); [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `clone` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] help: trait `Clone` which provides `clone` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 10 + use std::clone::Clone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_stopping` found for struct `ThreadSafeState` in the current scope [INFO] [stdout] --> src/server/mod.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ThreadSafeState(Arc>); [INFO] [stdout] | -------------------------- method `set_stopping` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn set_stopping(&self) { [INFO] [stdout] | ------------ the method is available for `ThreadSafeState` here [INFO] [stdout] ... [INFO] [stdout] 260 | self.state.set_stopping().await; [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `ThreadSafeState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpHandler: From<_>` is not satisfied [INFO] [stdout] --> src/client/tcp.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 49 | let mut handler = TcpHandler::from(stream); [INFO] [stdout] | ^^^^^^^^^^ the trait `From<_>` is not implemented for `TcpHandler` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 49 | let mut handler = &TcpHandler::from(stream); [INFO] [stdout] | + [INFO] [stdout] 49 | let mut handler = &mut TcpHandler::from(stream); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the size for values of type `TcpHandler` cannot be known at compilation time [INFO] [stdout] --> src/client/tcp.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | handler.handle(req).await [INFO] [stdout] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] ::: src/tcp.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct TcpHandler { [INFO] [stdout] | --------------------- method `handle` not found for this struct because it doesn't satisfy `TcpHandler: ClientStream` or `TcpHandler: Sized` [INFO] [stdout] | [INFO] [stdout] note: trait bound `TcpHandler: Sized` was not satisfied [INFO] [stdout] --> src/client/mod.rs:128:6 [INFO] [stdout] | [INFO] [stdout] 128 | impl ClientStream for T {} [INFO] [stdout] | ^ ------------ - [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Sized` must be implemented [INFO] [stdout] --> /rustc/dae34b759e282c069aa28752564694effd121a63/library/core/src/marker.rs:145:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `handle`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ClientStream` [INFO] [stdout] candidate #2: `ServerStream` [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/client/mod.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | impl ClientStream for T {} [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TcpHandler: From<_>` is not satisfied [INFO] [stdout] --> src/server/tcp.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | let mut handler = TcpHandler::from(stream); [INFO] [stdout] | ^^^^^^^^^^ the trait `From<_>` is not implemented for `TcpHandler` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 54 | let mut handler = &TcpHandler::from(stream); [INFO] [stdout] | + [INFO] [stdout] 54 | let mut handler = &mut TcpHandler::from(stream); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the size for values of type `TcpHandler` cannot be known at compilation time [INFO] [stdout] --> src/server/tcp.rs:55:47 [INFO] [stdout] | [INFO] [stdout] 55 | if let Err(err) = handler.handle(timer.clone()).await { [INFO] [stdout] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] ::: src/tcp.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct TcpHandler { [INFO] [stdout] | --------------------- method `handle` not found for this struct because it doesn't satisfy `TcpHandler: ServerStream` or `TcpHandler: Sized` [INFO] [stdout] | [INFO] [stdout] note: trait bound `TcpHandler: Sized` was not satisfied [INFO] [stdout] --> src/server/mod.rs:181:6 [INFO] [stdout] | [INFO] [stdout] 181 | impl ServerStream for T {} [INFO] [stdout] | ^ ------------ - [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Sized` must be implemented [INFO] [stdout] --> /rustc/dae34b759e282c069aa28752564694effd121a63/library/core/src/marker.rs:145:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `handle`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ClientStream` [INFO] [stdout] candidate #2: `ServerStream` [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/server/mod.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | impl ServerStream for T {} [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/tcp.rs:55:60 [INFO] [stdout] | [INFO] [stdout] 55 | if let Err(err) = handler.handle(timer.clone()).await { [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `clone` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] help: trait `Clone` which provides `clone` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 6 + use std::clone::Clone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | timer.start().await?; [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `start` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 406 | pub async fn start(&self) -> Result<()> { [INFO] [stdout] | ----- the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `start`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | let timer = timer.get().await; [INFO] [stdout] | ^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 410 | pub async fn get(&self) -> Timer { [INFO] [stdout] | --- the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Client` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | timer.set(duration).await?; [INFO] [stdout] | ^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `set` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 414 | pub async fn set(&self, duration: usize) -> Result<()> { [INFO] [stdout] | --- the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `set`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pause` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | timer.pause().await?; [INFO] [stdout] | ^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `pause` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 418 | pub async fn pause(&self) -> Result<()> { [INFO] [stdout] | ----- the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `pause`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `resume` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:167:23 [INFO] [stdout] | [INFO] [stdout] 167 | timer.resume().await?; [INFO] [stdout] | ^^^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `resume` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 422 | pub async fn resume(&self) -> Result<()> { [INFO] [stdout] | ------ the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `resume`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stop` found for struct `ThreadSafeTimer` in the current scope [INFO] [stdout] --> src/server/mod.rs:172:23 [INFO] [stdout] | [INFO] [stdout] 172 | timer.stop().await?; [INFO] [stdout] | ^^^^ method not found in `ThreadSafeTimer` [INFO] [stdout] | [INFO] [stdout] ::: src/timer.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct ThreadSafeTimer(Arc>); [INFO] [stdout] | -------------------------- method `stop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 426 | pub async fn stop(&self) -> Result<()> { [INFO] [stdout] | ---- the method is available for `ThreadSafeTimer` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Client` defines an item `stop`, perhaps you need to implement it [INFO] [stdout] --> src/client/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Client: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `time-lib` (lib) due to 28 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "5af1d8aa8ad3d73972aa6f7a8f10ad5d9e501e9335a5196021a443e399dd3fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5af1d8aa8ad3d73972aa6f7a8f10ad5d9e501e9335a5196021a443e399dd3fae", kill_on_drop: false }` [INFO] [stdout] 5af1d8aa8ad3d73972aa6f7a8f10ad5d9e501e9335a5196021a443e399dd3fae