[INFO] cloning repository https://github.com/vasyafromrussia/near-intents-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vasyafromrussia/near-intents-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasyafromrussia%2Fnear-intents-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasyafromrussia%2Fnear-intents-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f6328c5b087c4c159fa6754dd449fb2c22eee06 [INFO] building vasyafromrussia/near-intents-playground against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasyafromrussia%2Fnear-intents-playground" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vasyafromrussia/near-intents-playground [INFO] finished tweaking git repo https://github.com/vasyafromrussia/near-intents-playground [INFO] tweaked toml for git repo https://github.com/vasyafromrussia/near-intents-playground written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vasyafromrussia/near-intents-playground 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] crate git repo https://github.com/vasyafromrussia/near-intents-playground 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/near/near-api-rs.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_core v0.9.0 [INFO] [stderr] Downloaded near-stdx v0.28.0 [INFO] [stderr] Downloaded near-schema-checker-core v0.28.0 [INFO] [stderr] Downloaded near-schema-checker-lib v0.28.0 [INFO] [stderr] Downloaded near-schema-checker-macro v0.28.0 [INFO] [stderr] Downloaded near-crypto v0.28.0 [INFO] [stderr] Downloaded hex-conservative v0.1.2 [INFO] [stderr] Downloaded keccak-hash v0.11.0 [INFO] [stderr] Downloaded ledger-transport v0.11.0 [INFO] [stderr] Downloaded near-time v0.28.0 [INFO] [stderr] Downloaded bytesize v1.3.0 [INFO] [stderr] Downloaded primitive-types v0.13.1 [INFO] [stderr] Downloaded slipped10 v0.4.6 [INFO] [stderr] Downloaded near-jsonrpc-primitives v0.28.0 [INFO] [stderr] Downloaded uint v0.10.0 [INFO] [stderr] Downloaded near-chain-configs v0.28.0 [INFO] [stderr] Downloaded near-ledger v0.8.1 [INFO] [stderr] Downloaded snafu-derive v0.8.5 [INFO] [stderr] Downloaded near-fmt v0.28.0 [INFO] [stderr] Downloaded near-parameters v0.28.0 [INFO] [stderr] Downloaded near-sdk-macros v5.7.0 [INFO] [stderr] Downloaded keyring v3.6.1 [INFO] [stderr] Downloaded wee_alloc v0.4.5 [INFO] [stderr] Downloaded near-token v0.3.0 [INFO] [stderr] Downloaded crypto-mac v0.9.1 [INFO] [stderr] Downloaded hidapi v2.6.3 [INFO] [stderr] Downloaded hmac v0.9.0 [INFO] [stderr] Downloaded near-sdk v5.7.0 [INFO] [stderr] Downloaded near-account-id v1.0.0 [INFO] [stderr] Downloaded dbus-secret-service v4.0.3 [INFO] [stderr] Downloaded near-abi v0.4.3 [INFO] [stderr] Downloaded near-contract-standards v5.7.0 [INFO] [stderr] Downloaded near-jsonrpc-client v0.15.1 [INFO] [stderr] Downloaded json_comments v0.2.2 [INFO] [stderr] Downloaded ledger-transport-hid v0.11.0 [INFO] [stderr] Downloaded near-primitives-core v0.28.0 [INFO] [stderr] Downloaded memory_units v0.4.0 [INFO] [stderr] Downloaded snafu v0.8.5 [INFO] [stderr] Downloaded ledger-apdu v0.11.0 [INFO] [stderr] Downloaded smart-default v0.6.0 [INFO] [stderr] Downloaded near-sys v0.2.2 [INFO] [stderr] Downloaded near-config-utils v0.28.0 [INFO] [stderr] Downloaded getrandom v0.3.0 [INFO] [stderr] Downloaded near-gas v0.3.0 [INFO] [stderr] Downloaded data-encoding v2.7.0 [INFO] [stderr] Downloaded near-primitives v0.28.0 [INFO] [stderr] Downloaded bip39 v2.1.0 [INFO] [stderr] Downloaded openssl-src v300.4.1+3.4.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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 747fa3591e4fdc18ef3c9ba4b7507cadbdafa4fa5e62ca32af45ed2c53f81db4 [INFO] running `Command { std: "docker" "start" "-a" "747fa3591e4fdc18ef3c9ba4b7507cadbdafa4fa5e62ca32af45ed2c53f81db4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "747fa3591e4fdc18ef3c9ba4b7507cadbdafa4fa5e62ca32af45ed2c53f81db4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "747fa3591e4fdc18ef3c9ba4b7507cadbdafa4fa5e62ca32af45ed2c53f81db4", kill_on_drop: false }` [INFO] [stdout] 747fa3591e4fdc18ef3c9ba4b7507cadbdafa4fa5e62ca32af45ed2c53f81db4 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2e253d8fca17b841981b20ddb9d5ba2d69fda270f46fe7c655edb65ccd2a08c [INFO] running `Command { std: "docker" "start" "-a" "c2e253d8fca17b841981b20ddb9d5ba2d69fda270f46fe7c655edb65ccd2a08c", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling winnow v0.6.24 [INFO] [stderr] Compiling borsh v1.5.5 [INFO] [stderr] Compiling semver v1.0.25 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling near-schema-checker-macro v0.28.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling near-schema-checker-core v0.28.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling near-schema-checker-lib v0.28.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling json_comments v0.2.2 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling near-stdx v0.28.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling zerocopy v0.8.14 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling easy-ext v0.2.9 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling openssl-src v300.4.1+3.4.0 [INFO] [stderr] Compiling getrandom v0.3.0 [INFO] [stderr] Compiling near-sdk-macros v5.7.0 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling hex-conservative v0.1.2 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling near-sys v0.2.2 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling libdbus-sys v0.2.5 [INFO] [stderr] Compiling hidapi v2.6.3 [INFO] [stderr] Compiling bitcoin_hashes v0.13.0 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling rand_core v0.9.0 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling borsh-derive v1.5.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling derive_arbitrary v1.4.1 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling arbitrary v1.4.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling enum-map v2.7.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling near-config-utils v0.28.0 [INFO] [stderr] Compiling snafu-derive v0.8.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling secp256k1 v0.27.0 [INFO] [stderr] Compiling dbus v0.9.7 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling slipped10 v0.4.6 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling snafu v0.8.5 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling ledger-apdu v0.11.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling ledger-transport v0.11.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling dbus-secret-service v4.0.3 [INFO] [stderr] Compiling keyring v3.6.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling near-account-id v1.0.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling bytesize v1.3.0 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling near-gas v0.3.0 [INFO] [stderr] Compiling near-token v0.3.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling primitive-types v0.10.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ledger-transport-hid v0.11.0 [INFO] [stderr] Compiling near-primitives-core v0.28.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling primitive-types v0.13.1 [INFO] [stderr] Compiling near-ledger v0.8.1 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling bip39 v2.1.0 [INFO] [stderr] Compiling near-crypto v0.28.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling near-fmt v0.28.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling near-parameters v0.28.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling keccak-hash v0.11.0 [INFO] [stderr] Compiling near-time v0.28.0 [INFO] [stderr] Compiling near-abi v0.4.3 [INFO] [stderr] Compiling near-primitives v0.28.0 [INFO] [stderr] Compiling near-sdk v5.7.0 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling near-contract-standards v5.7.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling near-chain-configs v0.28.0 [INFO] [stderr] Compiling near-jsonrpc-primitives v0.28.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.26.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling near-jsonrpc-client v0.15.1 [INFO] [stderr] Compiling near-api v0.4.0 (https://github.com/near/near-api-rs.git#721ba6f6) [INFO] [stderr] Compiling sandbox_intents v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `KeyType` and `SecretKey` [INFO] [stdout] --> src/api.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use near_crypto::{KeyType, SecretKey}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntentsContractApi` [INFO] [stdout] --> src/main.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::api::{IntentsContractApi, SolverApi, SwapApi}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignerTrait` [INFO] [stdout] --> src/main.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use near_api::{NearToken, SignerTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solver.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | let (mut socket, response) = connect(url).expect("Couldn't connect to websocket"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALICE_ID` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const ALICE_ID: &str = "d836e4c44f77385fdab6b79449a164345a87253206ceda40b08395738e3e2c62"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALICE_PRIVATE_KEY` is never used [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const ALICE_PRIVATE_KEY: &str = "ed25519:3iEvc9cB1qer3fFxBHmtWGn3CrYAe3qcdMLxhCzKmnSrYt1RRTo8MKtDAbp8UoFUDiYzFPwQXtAhf1xupFL8LbZK"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOLANA_ALICE_ID` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const SOLANA_ALICE_ID: &str = "4MVR34FunnrGqBGz9SyhTdX6qWTTaaENyynaqmYmGgqf"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_intent_resolution` is never used [INFO] [stdout] --> src/main.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | async fn wait_for_intent_resolution( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `swap`, `withdraw`, and `swap_and_withdraw` are never used [INFO] [stdout] --> src/api.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait SwapApi { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 22 | async fn swap( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | async fn withdraw( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | async fn swap_and_withdraw( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SolverApi` is never used [INFO] [stdout] --> src/api.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub trait SolverApi { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntentsContractApi` is never used [INFO] [stdout] --> src/api.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub trait IntentsContractApi { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resolver_id` is never read [INFO] [stdout] --> src/client.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SolverClient { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | base_url: String, [INFO] [stdout] 9 | pub resolver_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jsonrpc` and `id` are never read [INFO] [stdout] --> src/client.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | struct RpcResponse { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 67 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `RpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `quote_hash` and `expiration_time` are never read [INFO] [stdout] --> src/model.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct QuoteModel { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub quote_hash: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub amount_out: String, [INFO] [stdout] 11 | pub expiration_time: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteModel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_opposite_diff` is never used [INFO] [stdout] --> src/model.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl QuoteModel { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn get_opposite_diff(&self) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublishedIntentModel` is never constructed [INFO] [stdout] --> src/model.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct PublishedIntentModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntentStatusModel` is never constructed [INFO] [stdout] --> src/model.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct IntentStatusModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntentStatusDataModel` is never constructed [INFO] [stdout] --> src/model.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct IntentStatusDataModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolverResponse` is never constructed [INFO] [stdout] --> src/solver.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct SolverResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsePayload` is never constructed [INFO] [stdout] --> src/solver.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | struct ResponsePayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsePayloadParams` is never constructed [INFO] [stdout] --> src/solver.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | struct ResponsePayloadParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `wait_ms` and `min_deadline_ms` are never read [INFO] [stdout] --> src/solver.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 164 | struct QuoteRequestMessage { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | wait_ms: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 170 | min_deadline_ms: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteRequestMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5m 01s [INFO] running `Command { std: "docker" "inspect" "c2e253d8fca17b841981b20ddb9d5ba2d69fda270f46fe7c655edb65ccd2a08c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2e253d8fca17b841981b20ddb9d5ba2d69fda270f46fe7c655edb65ccd2a08c", kill_on_drop: false }` [INFO] [stdout] c2e253d8fca17b841981b20ddb9d5ba2d69fda270f46fe7c655edb65ccd2a08c [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a24437b8656629fc75cea59c9e3679dbc5dd758d43e92f86ef4909f22cc70dc7 [INFO] running `Command { std: "docker" "start" "-a" "a24437b8656629fc75cea59c9e3679dbc5dd758d43e92f86ef4909f22cc70dc7", kill_on_drop: false }` [INFO] [stderr] Compiling sandbox_intents v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `KeyType` and `SecretKey` [INFO] [stdout] --> src/api.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use near_crypto::{KeyType, SecretKey}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntentsContractApi` [INFO] [stdout] --> src/main.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::api::{IntentsContractApi, SolverApi, SwapApi}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignerTrait` [INFO] [stdout] --> src/main.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use near_api::{NearToken, SignerTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solver.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | let (mut socket, response) = connect(url).expect("Couldn't connect to websocket"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quote` [INFO] [stdout] --> src/main.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let quote = QuoteModel { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quote` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALICE_ID` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const ALICE_ID: &str = "d836e4c44f77385fdab6b79449a164345a87253206ceda40b08395738e3e2c62"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOLANA_ALICE_ID` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const SOLANA_ALICE_ID: &str = "4MVR34FunnrGqBGz9SyhTdX6qWTTaaENyynaqmYmGgqf"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_intent_resolution` is never used [INFO] [stdout] --> src/main.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | async fn wait_for_intent_resolution( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `swap`, `withdraw`, and `swap_and_withdraw` are never used [INFO] [stdout] --> src/api.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait SwapApi { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 22 | async fn swap( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | async fn withdraw( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | async fn swap_and_withdraw( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SolverApi` is never used [INFO] [stdout] --> src/api.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub trait SolverApi { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntentsContractApi` is never used [INFO] [stdout] --> src/api.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub trait IntentsContractApi { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resolver_id` is never read [INFO] [stdout] --> src/client.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SolverClient { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | base_url: String, [INFO] [stdout] 9 | pub resolver_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jsonrpc` and `id` are never read [INFO] [stdout] --> src/client.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | struct RpcResponse { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 67 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `RpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `quote_hash` and `expiration_time` are never read [INFO] [stdout] --> src/model.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct QuoteModel { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub quote_hash: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | pub amount_out: String, [INFO] [stdout] 11 | pub expiration_time: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteModel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_opposite_diff` is never used [INFO] [stdout] --> src/model.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl QuoteModel { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn get_opposite_diff(&self) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublishedIntentModel` is never constructed [INFO] [stdout] --> src/model.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct PublishedIntentModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntentStatusModel` is never constructed [INFO] [stdout] --> src/model.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct IntentStatusModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntentStatusDataModel` is never constructed [INFO] [stdout] --> src/model.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct IntentStatusDataModel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolverResponse` is never constructed [INFO] [stdout] --> src/solver.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct SolverResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsePayload` is never constructed [INFO] [stdout] --> src/solver.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | struct ResponsePayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsePayloadParams` is never constructed [INFO] [stdout] --> src/solver.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | struct ResponsePayloadParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `wait_ms` and `min_deadline_ms` are never read [INFO] [stdout] --> src/solver.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 164 | struct QuoteRequestMessage { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | wait_ms: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 170 | min_deadline_ms: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QuoteRequestMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUBLIC_KEY` is never used [INFO] [stdout] --> src/main.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | const PUBLIC_KEY: &str = "ed25519:92cAE75zx982GLwxbtcUwF5wYzP2vzJhFXngAHze5pxL"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | dbg!(message.clone().to_string()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.25s [INFO] running `Command { std: "docker" "inspect" "a24437b8656629fc75cea59c9e3679dbc5dd758d43e92f86ef4909f22cc70dc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a24437b8656629fc75cea59c9e3679dbc5dd758d43e92f86ef4909f22cc70dc7", kill_on_drop: false }` [INFO] [stdout] a24437b8656629fc75cea59c9e3679dbc5dd758d43e92f86ef4909f22cc70dc7