[INFO] fetching crate serai-cosign 0.1.0... [INFO] testing serai-cosign-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate serai-cosign 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate serai-cosign 0.1.0 [INFO] finished tweaking crates.io crate serai-cosign 0.1.0 [INFO] tweaked toml for crates.io crate serai-cosign 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate serai-cosign 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 75 packages to latest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serai-db v0.1.1 [INFO] [stderr] Downloaded serai-task v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7318e263762e4f2c717804ab7c748c57d266e3e8334a277f986cf9b1dface13 [INFO] running `Command { std: "docker" "start" "-a" "f7318e263762e4f2c717804ab7c748c57d266e3e8334a277f986cf9b1dface13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7318e263762e4f2c717804ab7c748c57d266e3e8334a277f986cf9b1dface13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7318e263762e4f2c717804ab7c748c57d266e3e8334a277f986cf9b1dface13", kill_on_drop: false }` [INFO] [stdout] f7318e263762e4f2c717804ab7c748c57d266e3e8334a277f986cf9b1dface13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c02b333183fe1e1d9c57b73ee0ed32e461d3147c2c005e209833e65445d40dd7 [INFO] running `Command { std: "docker" "start" "-a" "c02b333183fe1e1d9c57b73ee0ed32e461d3147c2c005e209833e65445d40dd7", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling toml_edit v0.23.7 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling borsh v1.5.7 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling serai-db v0.1.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling getrandom_or_panic v0.0.3 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling serai-task v0.1.0 [INFO] [stderr] Compiling schnorrkel v0.11.5 [INFO] [stderr] Compiling serai-cosign v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serai_client::{ [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/intend.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serai_client::{ [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serai_client` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serai_client::{ [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serai_client` [INFO] [stdout] --> src/intend.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serai_client::{ [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:197:37 [INFO] [stdout] | [INFO] [stdout] 197 | let mut sets = Vec::with_capacity(serai_client::primitives::NETWORKS.len()); [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 198 | for network in serai_client::primitives::NETWORKS { [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | let mut cosigns = Vec::with_capacity(serai_client::primitives::NETWORKS.len()); [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:272:20 [INFO] [stdout] | [INFO] [stdout] 272 | for network in serai_client::primitives::NETWORKS { [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:289:22 [INFO] [stdout] | [INFO] [stdout] 289 | for network in serai_client::primitives::NETWORKS { [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:301:44 [INFO] [stdout] | [INFO] [stdout] 301 | let mut cosigns = Vec::with_capacity(serai_client::primitives::NETWORKS.len()); [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` 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 `serai_client` [INFO] [stdout] --> src/lib.rs:302:22 [INFO] [stdout] | [INFO] [stdout] 302 | for network in serai_client::primitives::NETWORKS { [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in crate `tokio` [INFO] [stdout] --> src/lib.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | tokio::spawn( [INFO] [stdout] | ^^^^^ not found 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-1.48.0/src/lib.rs:560:19 [INFO] [stdout] | [INFO] [stdout] 559 | / cfg_rt! { [INFO] [stdout] 560 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 561 | | } [INFO] [stdout] | |_- the item is gated behind the `rt` feature [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] help: if you import `spawn`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 242 - tokio::spawn( [INFO] [stdout] 242 + spawn( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in crate `tokio` [INFO] [stdout] --> src/lib.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | tokio::spawn( [INFO] [stdout] | ^^^^^ not found 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-1.48.0/src/lib.rs:560:19 [INFO] [stdout] | [INFO] [stdout] 559 | / cfg_rt! { [INFO] [stdout] 560 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 561 | | } [INFO] [stdout] | |_- the item is gated behind the `rt` feature [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] help: if you import `spawn`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 246 - tokio::spawn( [INFO] [stdout] 246 + spawn( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in crate `tokio` [INFO] [stdout] --> src/lib.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | tokio::spawn( [INFO] [stdout] | ^^^^^ not found 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-1.48.0/src/lib.rs:560:19 [INFO] [stdout] | [INFO] [stdout] 559 | / cfg_rt! { [INFO] [stdout] 560 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 561 | | } [INFO] [stdout] | |_- the item is gated behind the `rt` feature [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] help: if you import `spawn`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 250 - tokio::spawn( [INFO] [stdout] 250 + spawn( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | let block = serai [INFO] [stdout] | _______________^ [INFO] [stdout] 40 | | .finalized_block_by_number(block_number) [INFO] [stdout] 41 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | if !serai.validator_sets().key_gen_events().await.map_err(|e| format!("{e:?}"))?.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | if !serai.coins().burn_with_instruction_events().await.map_err(|e| format!("{e:?}"))?.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.serai.latest_finalized_block().await.map_err(|e| format!("{e:?}"))?.number(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | / block_has_events_justifying_a_cosign(&self.serai, block_number) [INFO] [stdout] 75 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | let sets_and_keys = cosigning_sets(&serai).await?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 98 | let global_session = [INFO] [stdout] 99 | GlobalSession::id(sets_and_keys.iter().map(|(set, _key)| *set).collect()); [INFO] [stdout] | ------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `sets_and_keys` an explicit type [INFO] [stdout] | [INFO] [stdout] 97 | let sets_and_keys: /* Type */ = cosigning_sets(&serai).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let stake = serai [INFO] [stdout] | _________________________^ [INFO] [stdout] 109 | | .validator_sets() [INFO] [stdout] 110 | | .total_allocated_stake(set.network) [INFO] [stdout] 111 | | .await [INFO] [stdout] | |____________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | serai.validator_sets().session(network).await.map_err(|e| format!("{e:?}"))? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:171:23 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(keys) = serai [INFO] [stdout] | _______________________^ [INFO] [stdout] 172 | | .validator_sets() [INFO] [stdout] 173 | | .keys(ValidatorSet { network, session: latest_session }) [INFO] [stdout] 174 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | if let Some(keys) = serai [INFO] [stdout] | _________________________^ [INFO] [stdout] 183 | | .validator_sets() [INFO] [stdout] 184 | | .keys(ValidatorSet { network, session: prior_session }) [INFO] [stdout] 185 | | .await [INFO] [stdout] | |____________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] --> src/lib.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 150 | fn verify_signature(&self, signer: serai_client::Public) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `serai_client` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serai_client`, use `cargo add serai_client` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serai-cosign` (lib) due to 25 previous errors [INFO] running `Command { std: "docker" "inspect" "c02b333183fe1e1d9c57b73ee0ed32e461d3147c2c005e209833e65445d40dd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c02b333183fe1e1d9c57b73ee0ed32e461d3147c2c005e209833e65445d40dd7", kill_on_drop: false }` [INFO] [stdout] c02b333183fe1e1d9c57b73ee0ed32e461d3147c2c005e209833e65445d40dd7