[INFO] fetching crate serai-cosign 0.1.0... [INFO] building serai-cosign-0.1.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate serai-cosign 0.1.0 into /workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate serai-cosign 0.1.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 97 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea5f87b77052d0cfbc8e3867b1b49bf8b18b7ae78e76ff1df24381ebf2f0a3a1 [INFO] running `Command { std: "docker" "start" "-a" "ea5f87b77052d0cfbc8e3867b1b49bf8b18b7ae78e76ff1df24381ebf2f0a3a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea5f87b77052d0cfbc8e3867b1b49bf8b18b7ae78e76ff1df24381ebf2f0a3a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea5f87b77052d0cfbc8e3867b1b49bf8b18b7ae78e76ff1df24381ebf2f0a3a1", kill_on_drop: false }` [INFO] [stdout] ea5f87b77052d0cfbc8e3867b1b49bf8b18b7ae78e76ff1df24381ebf2f0a3a1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b343988f29367de44c9678e35c08fc20dc1468dbcfba13fb543bf4b2f5936757 [INFO] running `Command { std: "docker" "start" "-a" "b343988f29367de44c9678e35c08fc20dc1468dbcfba13fb543bf4b2f5936757", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling borsh v1.5.7 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling getrandom_or_panic v0.0.3 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Compiling schnorrkel v0.11.5 [INFO] [stderr] Compiling serai-task v0.1.0 [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.47.1/src/lib.rs:551:19 [INFO] [stdout] | [INFO] [stdout] 550 | / cfg_rt! { [INFO] [stdout] 551 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 552 | | } [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.47.1/src/lib.rs:551:19 [INFO] [stdout] | [INFO] [stdout] 550 | / cfg_rt! { [INFO] [stdout] 551 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 552 | | } [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.47.1/src/lib.rs:551:19 [INFO] [stdout] | [INFO] [stdout] 550 | / cfg_rt! { [INFO] [stdout] 551 | | pub use task::spawn; [INFO] [stdout] | | ^^^^^ [INFO] [stdout] 552 | | } [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:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | .map_err(|e| format!("{e:?}"))? [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/intend.rs:46:53 [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:58 [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:51 [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:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | .map_err(|e| format!("{e:?}"))?; [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:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | .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:164:51 [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:175:6 [INFO] [stdout] | [INFO] [stdout] 175 | .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:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | .map_err(|e| format!("{e:?}"))? [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" "b343988f29367de44c9678e35c08fc20dc1468dbcfba13fb543bf4b2f5936757", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b343988f29367de44c9678e35c08fc20dc1468dbcfba13fb543bf4b2f5936757", kill_on_drop: false }` [INFO] [stdout] b343988f29367de44c9678e35c08fc20dc1468dbcfba13fb543bf4b2f5936757