[INFO] fetching crate reflect-exchange-rates 0.1.6... [INFO] testing reflect-exchange-rates-0.1.6 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate reflect-exchange-rates 0.1.6 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate reflect-exchange-rates 0.1.6 [INFO] finished tweaking crates.io crate reflect-exchange-rates 0.1.6 [INFO] tweaked toml for crates.io crate reflect-exchange-rates 0.1.6 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate reflect-exchange-rates 0.1.6 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate reflect-exchange-rates 0.1.6 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded solana-sdk v2.3.1 [INFO] [stderr] Downloaded solana-signature v2.3.0 [INFO] [stderr] Downloaded solana-validator-exit v2.2.1 [INFO] [stderr] Downloaded spl-math v0.3.0 [INFO] [stderr] Downloaded solana-transaction-context v2.3.13 [INFO] [stderr] Downloaded solana-signer v2.2.1 [INFO] [stderr] Downloaded solana-clock v2.2.2 [INFO] [stderr] Downloaded solana-client-traits v2.2.1 [INFO] [stderr] Downloaded serde-big-array v0.5.1 [INFO] [stderr] Downloaded solana-transaction v2.2.3 [INFO] [stderr] Downloaded solana-fee-structure v2.3.0 [INFO] [stderr] Downloaded anchor-attribute-constant v0.31.1 [INFO] [stderr] Downloaded spl-discriminator-derive v0.2.0 [INFO] [stderr] Downloaded anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Downloaded anchor-attribute-account v0.31.1 [INFO] [stderr] Downloaded anchor-attribute-access-control v0.31.1 [INFO] [stderr] Downloaded solana-precompile-error v2.2.2 [INFO] [stderr] Downloaded anchor-attribute-error v0.31.1 [INFO] [stderr] Downloaded spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Downloaded anchor-lang v0.31.1 [INFO] [stderr] Downloaded anchor-syn v0.31.1 [INFO] [stderr] Downloaded spl-token v7.0.0 [INFO] [stderr] Downloaded blake3 v1.5.5 [INFO] [stderr] Downloaded spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Downloaded solana-secp256r1-program v2.2.4 [INFO] [stderr] Downloaded spl-pod v0.5.1 [INFO] [stderr] Downloaded anchor-spl v0.31.1 [INFO] [stderr] Downloaded solana-bn254 v2.2.2 [INFO] [stderr] Downloaded solana-offchain-message v2.2.1 [INFO] [stderr] Downloaded spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Downloaded spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Downloaded solana-rent-collector v2.3.0 [INFO] [stderr] Downloaded solana-feature-set v2.2.5 [INFO] [stderr] Downloaded spl-token-2022 v6.0.0 [INFO] [stderr] Downloaded anchor-lang-idl v0.1.2 [INFO] [stderr] Downloaded anchor-derive-serde v0.31.1 [INFO] [stderr] Downloaded spl-memo v6.0.0 [INFO] [stderr] Downloaded solana-curve25519 v2.3.13 [INFO] [stderr] Downloaded spl-discriminator v0.4.1 [INFO] [stderr] Downloaded solana-commitment-config v2.2.1 [INFO] [stderr] Downloaded solana-packet v2.2.1 [INFO] [stderr] Downloaded anchor-derive-space v0.31.1 [INFO] [stderr] Downloaded spl-associated-token-account-client v2.0.0 [INFO] [stderr] Downloaded spl-elgamal-registry v0.1.1 [INFO] [stderr] Downloaded spl-program-error v0.6.0 [INFO] [stderr] Downloaded spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Downloaded spl-token-group-interface v0.5.0 [INFO] [stderr] Downloaded spl-type-length-value v0.7.0 [INFO] [stderr] Downloaded solana-poh-config v2.2.1 [INFO] [stderr] Downloaded solana-shred-version v2.2.1 [INFO] [stderr] Downloaded solana-precompiles v2.2.2 [INFO] [stderr] Downloaded solana-genesis-config v2.3.0 [INFO] [stderr] Downloaded solana-reward-info v2.2.1 [INFO] [stderr] Downloaded solana-serde v2.2.1 [INFO] [stderr] Downloaded solana-keypair v2.2.3 [INFO] [stderr] Downloaded anchor-attribute-event v0.31.1 [INFO] [stderr] Downloaded anchor-attribute-program v0.31.1 [INFO] [stderr] Downloaded anchor-derive-accounts v0.31.1 [INFO] [stderr] Downloaded spl-associated-token-account v6.0.0 [INFO] [stderr] Downloaded spl-program-error-derive v0.4.1 [INFO] [stderr] Downloaded spl-discriminator-syn v0.2.1 [INFO] [stderr] Downloaded spl-token-metadata-interface v0.6.0 [INFO] [stderr] Downloaded solana-compute-budget-interface v2.2.2 [INFO] [stderr] Downloaded solana-epoch-info v2.2.1 [INFO] [stderr] Downloaded solana-epoch-rewards-hasher v2.2.1 [INFO] [stderr] Downloaded solana-nonce-account v2.2.1 [INFO] [stderr] Downloaded solana-inflation v2.2.1 [INFO] [stderr] Downloaded solana-logger v2.3.1 [INFO] [stderr] Downloaded solana-rent-debits v2.2.1 [INFO] [stderr] Downloaded solana-reserved-account-keys v2.2.2 [INFO] [stderr] Downloaded solana-system-transaction v2.2.1 [INFO] [stderr] Downloaded solana-time-utils v2.2.1 [INFO] [stderr] Downloaded solana-derivation-path v2.2.1 [INFO] [stderr] Downloaded solana-seed-derivable v2.2.1 [INFO] [stderr] Downloaded solana-seed-phrase v2.2.1 [INFO] [stderr] Downloaded solana-secp256k1-program v2.2.3 [INFO] [stderr] Downloaded cfg_eval v0.1.2 [INFO] [stderr] Downloaded solana-presigner v2.2.1 [INFO] [stderr] Downloaded solana-quic-definitions v2.3.1 [INFO] [stderr] Downloaded solana-cluster-type v2.2.1 [INFO] [stderr] Downloaded solana-hard-forks v2.2.1 [INFO] [stderr] Downloaded solana-ed25519-program v2.2.3 [INFO] [stderr] Downloaded solana-zk-sdk v2.3.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc80765a7fcbbe07f51b1c34614da3fa5fce4dbebb133162535f7f4691d3a0a3 [INFO] running `Command { std: "docker" "start" "-a" "fc80765a7fcbbe07f51b1c34614da3fa5fce4dbebb133162535f7f4691d3a0a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc80765a7fcbbe07f51b1c34614da3fa5fce4dbebb133162535f7f4691d3a0a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc80765a7fcbbe07f51b1c34614da3fa5fce4dbebb133162535f7f4691d3a0a3", kill_on_drop: false }` [INFO] [stdout] fc80765a7fcbbe07f51b1c34614da3fa5fce4dbebb133162535f7f4691d3a0a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75bb7f83c666e879cb797b65fe9608113ce1e26e86f3a2f8aee1c9ba5a8cccc1 [INFO] running `Command { std: "docker" "start" "-a" "75bb7f83c666e879cb797b65fe9608113ce1e26e86f3a2f8aee1c9ba5a8cccc1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling zerocopy v0.8.34 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling five8_core v0.1.2 [INFO] [stderr] Compiling borsh v1.6.0 [INFO] [stderr] Compiling solana-sanitize v2.2.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling solana-atomic-u64 v2.2.1 [INFO] [stderr] Compiling solana-decode-error v2.3.0 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling solana-msg v2.2.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling five8 v0.2.1 [INFO] [stderr] Compiling five8_const v0.1.4 [INFO] [stderr] Compiling solana-program-memory v2.3.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling blake3 v1.5.5 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling solana-program-option v2.2.1 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling solana-signature v2.3.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling solana-big-mod-exp v2.2.1 [INFO] [stderr] Compiling solana-native-token v2.3.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling solana-derivation-path v2.2.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling solana-seed-derivable v2.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling solana-security-txt v1.1.2 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Compiling solana-seed-phrase v2.2.1 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling borsh-derive v1.6.0 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling solana-sdk-macro v2.2.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling spl-program-error-derive v0.4.1 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling anchor-derive-space v0.31.1 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling aes-gcm-siv v0.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling spl-discriminator-syn v0.2.1 [INFO] [stderr] Compiling spl-discriminator-derive v0.2.0 [INFO] [stderr] Compiling num_enum v0.7.5 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling solana-hash v2.3.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling solana-fee-calculator v2.2.1 [INFO] [stderr] Compiling solana-short-vec v2.2.1 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling solana-serde-varint v2.2.2 [INFO] [stderr] Compiling anchor-syn v0.31.1 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Compiling solana-sha256-hasher v2.3.0 [INFO] [stderr] Compiling solana-keccak-hasher v2.2.1 [INFO] [stderr] Compiling solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling anchor-lang-idl v0.1.2 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling borsh v0.10.4 [INFO] [stderr] Compiling solana-borsh v2.2.1 [INFO] [stderr] Compiling solana-pubkey v2.4.0 [INFO] [stderr] Compiling solana-curve25519 v2.3.13 [INFO] [stderr] Compiling solana-instruction v2.3.3 [INFO] [stderr] Compiling solana-sdk-ids v2.2.1 [INFO] [stderr] Compiling solana-nonce v2.2.1 [INFO] [stderr] Compiling solana-sysvar-id v2.2.1 [INFO] [stderr] Compiling solana-clock v2.2.2 [INFO] [stderr] Compiling solana-slot-hashes v2.2.1 [INFO] [stderr] Compiling solana-rent v2.2.1 [INFO] [stderr] Compiling solana-epoch-schedule v2.2.1 [INFO] [stderr] Compiling solana-last-restart-slot v2.2.1 [INFO] [stderr] Compiling solana-epoch-rewards v2.2.1 [INFO] [stderr] Compiling solana-slot-history v2.2.1 [INFO] [stderr] Compiling solana-program-error v2.2.2 [INFO] [stderr] Compiling solana-transaction-error v2.2.1 [INFO] [stderr] Compiling solana-system-interface v1.0.0 [INFO] [stderr] Compiling solana-serialize-utils v2.2.1 [INFO] [stderr] Compiling solana-bincode v2.2.1 [INFO] [stderr] Compiling solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Compiling solana-loader-v2-interface v2.2.1 [INFO] [stderr] Compiling solana-stable-layout v2.2.1 [INFO] [stderr] Compiling solana-signer v2.2.1 [INFO] [stderr] Compiling solana-account-info v2.3.0 [INFO] [stderr] Compiling solana-program-pack v2.2.1 [INFO] [stderr] Compiling spl-associated-token-account-client v2.0.0 [INFO] [stderr] Compiling spl-discriminator v0.4.1 [INFO] [stderr] Compiling solana-zk-sdk v2.3.13 [INFO] [stderr] Compiling solana-cpi v2.2.1 [INFO] [stderr] Compiling solana-program-entrypoint v2.3.0 [INFO] [stderr] Compiling solana-instructions-sysvar v2.2.2 [INFO] [stderr] Compiling solana-account v2.2.1 [INFO] [stderr] Compiling solana-secp256k1-recover v2.2.1 [INFO] [stderr] Compiling spl-memo v6.0.0 [INFO] [stderr] Compiling solana-message v2.4.0 [INFO] [stderr] Compiling solana-stake-interface v1.2.1 [INFO] [stderr] Compiling solana-loader-v3-interface v5.0.0 [INFO] [stderr] Compiling solana-feature-gate-interface v2.2.2 [INFO] [stderr] Compiling solana-vote-interface v2.2.6 [INFO] [stderr] Compiling solana-loader-v4-interface v2.2.1 [INFO] [stderr] Compiling anchor-attribute-program v0.31.1 [INFO] [stderr] Compiling anchor-derive-serde v0.31.1 [INFO] [stderr] Compiling anchor-attribute-account v0.31.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.31.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.31.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.31.1 [INFO] [stderr] Compiling anchor-attribute-error v0.31.1 [INFO] [stderr] Compiling anchor-attribute-event v0.31.1 [INFO] [stderr] Compiling solana-example-mocks v2.2.1 [INFO] [stderr] Compiling solana-sysvar v2.3.0 [INFO] [stderr] Compiling solana-program v2.3.0 [INFO] [stderr] Compiling spl-program-error v0.6.0 [INFO] [stderr] Compiling spl-token v7.0.0 [INFO] [stderr] Compiling anchor-lang v0.31.1 [INFO] [stderr] Compiling spl-math v0.3.0 [INFO] [stderr] Compiling spl-pod v0.5.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Compiling spl-type-length-value v0.7.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Compiling spl-token-group-interface v0.5.0 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Compiling spl-token-metadata-interface v0.6.0 [INFO] [stderr] Compiling spl-elgamal-registry v0.1.1 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Compiling spl-token-2022 v6.0.0 [INFO] [stderr] Compiling spl-associated-token-account v6.0.0 [INFO] [stderr] Compiling anchor-spl v0.31.1 [INFO] [stderr] Compiling reflect-exchange-rates v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `autocompound::*` [INFO] [stdout] --> src/reflect/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use autocompound::*; [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: `capital_conductor::*` [INFO] [stdout] --> src/reflect/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use capital_conductor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helpers::*` [INFO] [stdout] --> src/reflect/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `components::*` [INFO] [stdout] --> src/protocols/drift/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use components::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lending_read` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:2:77 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::protocols::jupiter::{get_jupiter_tvl, read_token_account_amount, lending_read}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/kamino.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | controller_key: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_jupiter_accounts_for_mint(earn_mint: &Pubkey, controller_key: &Pubkey) -> Result<(Pubkey, Pubkey)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `update_total_capturable_yield`, `update_pool_value`, `deserialize`, and `try_serialise` are never used [INFO] [stdout] --> src/reflect/autocompound.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AutoCompound { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub fn update_total_capturable_yield(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn update_pool_value(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn deserialize(buf: &mut &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [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 `AUTOCOMPOUND_START` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | pub const AUTOCOMPOUND_START: usize = 1026; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialise_autocompound` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn deserialise_autocompound(data_usdc_controller: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_serialise` is never used [INFO] [stdout] --> src/reflect/capital_conductor/types.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl YieldVenueState { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spot_market_index` is never used [INFO] [stdout] --> src/protocols/drift/components.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn spot_market_index(data: &[u8], idx: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `off_borrows` and `off_borrow_market_value_in_struct` are never read [INFO] [stdout] --> src/protocols/kamino/helpers.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ObligationLayout { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub off_borrows: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub off_borrow_market_value_in_struct: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObligationLayout` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ONE` and `liquidity_to_collateral` are never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:357:15 [INFO] [stdout] | [INFO] [stdout] 356 | impl CollateralExchangeRate { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 357 | pub const ONE: Self = Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn liquidity_to_collateral(&self, liquidity_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `liquidity_to_ctoken_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:405:8 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn liquidity_to_ctoken_for_reserve(reserve_data: &[u8], liquidity_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ctoken_to_liquidity_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn ctoken_to_liquidity_for_reserve(reserve_data: &[u8], collateral_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_deposit_index` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn find_deposit_index(d: &[u8], reserve: &Pubkey) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes32` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn bytes32(b: &[u8], off: usize) -> Result<[u8; 32]> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u8` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn le_u8(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u16` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn le_u16(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_exchange_rate` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_token_exchange_rate(lending_data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `underlying_to_ftokens` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn underlying_to_ftokens(lending_data: &[u8], underlying: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ftokens_to_underlying_with_rate` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ftokens_to_underlying_with_rate(ftokens: u64, exchange_price: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_exchange_price` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn token_exchange_price(d: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl DriftBalanceData { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 38 | /// Create from raw account data [INFO] [stdout] 39 | pub fn from_data(user_account_data: &[u8], spot_market_data: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KAMINO_LEND_PROGRAM` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const KAMINO_LEND_PROGRAM: Pubkey = anchor_lang::solana_program::pubkey!("KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl KaminoBalanceData { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 46 | /// Create from raw account data. [INFO] [stdout] 47 | pub fn from_data( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl JupiterBalanceData { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 37 | /// Create from raw account data. [INFO] [stdout] 38 | pub fn from_data(lending_data: &[u8], ftoken_amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `safe_mul`, `safe_div`, and `safe_div_ceil` are never used [INFO] [stdout] --> src/math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait SafeMath: Sized { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn safe_mul(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | fn safe_div(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn safe_div_ceil(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Cast` is never used [INFO] [stdout] --> src/math.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Cast: Sized { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION` is never used [INFO] [stdout] --> src/math.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PRICE_PRECISION: u128 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I128` is never used [INFO] [stdout] --> src/math.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | pub const PRICE_PRECISION_I128: i128 = PRICE_PRECISION as i128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_U64` is never used [INFO] [stdout] --> src/math.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const PRICE_PRECISION_U64: u64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I64` is never used [INFO] [stdout] --> src/math.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | pub const PRICE_PRECISION_I64: i64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SafeDivFloor` is never used [INFO] [stdout] --> src/math.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | pub trait SafeDivFloor: Sized { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedFloorDiv` is never used [INFO] [stdout] --> src/math.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | pub trait CheckedFloorDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedCeilDiv` is never used [INFO] [stdout] --> src/math.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | pub trait CheckedCeilDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.87s [INFO] running `Command { std: "docker" "inspect" "75bb7f83c666e879cb797b65fe9608113ce1e26e86f3a2f8aee1c9ba5a8cccc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75bb7f83c666e879cb797b65fe9608113ce1e26e86f3a2f8aee1c9ba5a8cccc1", kill_on_drop: false }` [INFO] [stdout] 75bb7f83c666e879cb797b65fe9608113ce1e26e86f3a2f8aee1c9ba5a8cccc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65d0d1304bba8c4fdcb91da491263ba655158eb7f82f7fcb9d121ba9c98af35e [INFO] running `Command { std: "docker" "start" "-a" "65d0d1304bba8c4fdcb91da491263ba655158eb7f82f7fcb9d121ba9c98af35e", kill_on_drop: false }` [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling borsh-derive v1.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling serde-big-array v0.5.1 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling solana-fee-calculator v2.2.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling solana-precompile-error v2.2.2 [INFO] [stderr] Compiling solana-derivation-path v2.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling solana-sdk-macro v2.2.1 [INFO] [stderr] Compiling ed25519 v1.5.3 [INFO] [stderr] Compiling solana-seed-derivable v2.2.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling blake3 v1.5.5 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solana-seed-phrase v2.2.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling solana-hard-forks v2.2.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling solana-poh-config v2.2.1 [INFO] [stderr] Compiling solana-inflation v2.2.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling cfg_eval v0.1.2 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling aes-gcm-siv v0.11.1 [INFO] [stderr] Compiling solana-time-utils v2.2.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling solana-epoch-info v2.2.1 [INFO] [stderr] Compiling solana-commitment-config v2.2.1 [INFO] [stderr] Compiling solana-reward-info v2.2.1 [INFO] [stderr] Compiling solana-define-syscall v2.3.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling solana-serde v2.2.1 [INFO] [stderr] Compiling ark-std v0.4.0 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling solana-validator-exit v2.2.1 [INFO] [stderr] Compiling borsh v1.6.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling solana-curve25519 v2.3.13 [INFO] [stderr] Compiling solana-signature v2.3.0 [INFO] [stderr] Compiling ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling solana-hash v2.3.0 [INFO] [stderr] Compiling solana-sha256-hasher v2.3.0 [INFO] [stderr] Compiling solana-keccak-hasher v2.2.1 [INFO] [stderr] Compiling solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling solana-cluster-type v2.2.1 [INFO] [stderr] Compiling solana-shred-version v2.2.1 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling serde_with_macros v3.16.1 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling anchor-syn v0.31.1 [INFO] [stderr] Compiling serde_with v3.16.1 [INFO] [stderr] Compiling solana-secp256k1-recover v2.2.1 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling anchor-derive-space v0.31.1 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling ark-serialize v0.4.2 [INFO] [stderr] Compiling borsh v0.10.4 [INFO] [stderr] Compiling solana-packet v2.2.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling solana-logger v2.3.1 [INFO] [stderr] Compiling solana-pubkey v2.4.0 [INFO] [stderr] Compiling solana-borsh v2.2.1 [INFO] [stderr] Compiling solana-instruction v2.3.3 [INFO] [stderr] Compiling solana-sdk-ids v2.2.1 [INFO] [stderr] Compiling solana-nonce v2.2.1 [INFO] [stderr] Compiling solana-rent-debits v2.2.1 [INFO] [stderr] Compiling solana-epoch-rewards-hasher v2.2.1 [INFO] [stderr] Compiling solana-sysvar-id v2.2.1 [INFO] [stderr] Compiling solana-transaction-error v2.2.1 [INFO] [stderr] Compiling solana-program-error v2.2.2 [INFO] [stderr] Compiling solana-system-interface v1.0.0 [INFO] [stderr] Compiling solana-serialize-utils v2.2.1 [INFO] [stderr] Compiling solana-bincode v2.2.1 [INFO] [stderr] Compiling solana-loader-v2-interface v2.2.1 [INFO] [stderr] Compiling solana-stable-layout v2.2.1 [INFO] [stderr] Compiling spl-associated-token-account-client v2.0.0 [INFO] [stderr] Compiling solana-compute-budget-interface v2.2.2 [INFO] [stderr] Compiling solana-epoch-schedule v2.2.1 [INFO] [stderr] Compiling solana-clock v2.2.2 [INFO] [stderr] Compiling solana-slot-hashes v2.2.1 [INFO] [stderr] Compiling solana-rent v2.2.1 [INFO] [stderr] Compiling solana-epoch-rewards v2.2.1 [INFO] [stderr] Compiling solana-last-restart-slot v2.2.1 [INFO] [stderr] Compiling solana-slot-history v2.2.1 [INFO] [stderr] Compiling solana-feature-set v2.2.5 [INFO] [stderr] Compiling ark-ff v0.4.2 [INFO] [stderr] Compiling solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Compiling solana-vote-interface v2.2.6 [INFO] [stderr] Compiling solana-loader-v4-interface v2.2.1 [INFO] [stderr] Compiling solana-loader-v3-interface v5.0.0 [INFO] [stderr] Compiling solana-signer v2.2.1 [INFO] [stderr] Compiling solana-message v2.4.0 [INFO] [stderr] Compiling solana-account-info v2.3.0 [INFO] [stderr] Compiling solana-program-pack v2.2.1 [INFO] [stderr] Compiling spl-discriminator v0.4.1 [INFO] [stderr] Compiling solana-cpi v2.2.1 [INFO] [stderr] Compiling solana-program-entrypoint v2.3.0 [INFO] [stderr] Compiling solana-instructions-sysvar v2.2.2 [INFO] [stderr] Compiling solana-keypair v2.2.3 [INFO] [stderr] Compiling solana-offchain-message v2.2.1 [INFO] [stderr] Compiling solana-stake-interface v1.2.1 [INFO] [stderr] Compiling solana-presigner v2.2.1 [INFO] [stderr] Compiling solana-zk-sdk v2.3.13 [INFO] [stderr] Compiling spl-memo v6.0.0 [INFO] [stderr] Compiling solana-ed25519-program v2.2.3 [INFO] [stderr] Compiling solana-secp256r1-program v2.2.4 [INFO] [stderr] Compiling solana-secp256k1-program v2.2.3 [INFO] [stderr] Compiling solana-reserved-account-keys v2.2.2 [INFO] [stderr] Compiling solana-quic-definitions v2.3.1 [INFO] [stderr] Compiling solana-example-mocks v2.2.1 [INFO] [stderr] Compiling solana-precompiles v2.2.2 [INFO] [stderr] Compiling solana-fee-structure v2.3.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.31.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.31.1 [INFO] [stderr] Compiling anchor-derive-serde v0.31.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.31.1 [INFO] [stderr] Compiling anchor-attribute-error v0.31.1 [INFO] [stderr] Compiling solana-transaction v2.2.3 [INFO] [stderr] Compiling anchor-attribute-event v0.31.1 [INFO] [stderr] Compiling anchor-attribute-account v0.31.1 [INFO] [stderr] Compiling anchor-attribute-program v0.31.1 [INFO] [stderr] Compiling solana-sysvar v2.3.0 [INFO] [stderr] Compiling solana-system-transaction v2.2.1 [INFO] [stderr] Compiling solana-account v2.2.1 [INFO] [stderr] Compiling solana-feature-gate-interface v2.2.2 [INFO] [stderr] Compiling solana-genesis-config v2.3.0 [INFO] [stderr] Compiling solana-nonce-account v2.2.1 [INFO] [stderr] Compiling solana-client-traits v2.2.1 [INFO] [stderr] Compiling solana-transaction-context v2.3.13 [INFO] [stderr] Compiling solana-program v2.3.0 [INFO] [stderr] Compiling solana-rent-collector v2.3.0 [INFO] [stderr] Compiling spl-program-error v0.6.0 [INFO] [stderr] Compiling spl-token v7.0.0 [INFO] [stderr] Compiling anchor-lang v0.31.1 [INFO] [stderr] Compiling spl-math v0.3.0 [INFO] [stderr] Compiling spl-pod v0.5.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Compiling spl-type-length-value v0.7.0 [INFO] [stderr] Compiling spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Compiling spl-token-group-interface v0.5.0 [INFO] [stderr] Compiling spl-elgamal-registry v0.1.1 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Compiling spl-token-metadata-interface v0.6.0 [INFO] [stderr] Compiling ark-poly v0.4.2 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Compiling ark-ec v0.4.2 [INFO] [stderr] Compiling spl-token-2022 v6.0.0 [INFO] [stderr] Compiling ark-bn254 v0.4.0 [INFO] [stderr] Compiling solana-bn254 v2.2.2 [INFO] [stderr] Compiling solana-sdk v2.3.1 [INFO] [stderr] Compiling spl-associated-token-account v6.0.0 [INFO] [stderr] Compiling anchor-spl v0.31.1 [INFO] [stderr] Compiling reflect-exchange-rates v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `autocompound::*` [INFO] [stdout] --> src/reflect/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use autocompound::*; [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: `capital_conductor::*` [INFO] [stdout] --> src/reflect/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use capital_conductor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helpers::*` [INFO] [stdout] --> src/reflect/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `components::*` [INFO] [stdout] --> src/protocols/drift/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use components::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lending_read` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:2:77 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::protocols::jupiter::{get_jupiter_tvl, read_token_account_amount, lending_read}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `autocompound::*` [INFO] [stdout] --> src/reflect/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use autocompound::*; [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: `capital_conductor::*` [INFO] [stdout] --> src/reflect/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use capital_conductor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helpers::*` [INFO] [stdout] --> src/reflect/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `components::*` [INFO] [stdout] --> src/protocols/drift/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use components::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lending_read` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:2:77 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::protocols::jupiter::{get_jupiter_tvl, read_token_account_amount, lending_read}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/kamino.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | controller_key: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_jupiter_accounts_for_mint(earn_mint: &Pubkey, controller_key: &Pubkey) -> Result<(Pubkey, Pubkey)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `update_total_capturable_yield`, `update_pool_value`, `deserialize`, and `try_serialise` are never used [INFO] [stdout] --> src/reflect/autocompound.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AutoCompound { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub fn update_total_capturable_yield(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn update_pool_value(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn deserialize(buf: &mut &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [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 `AUTOCOMPOUND_START` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | pub const AUTOCOMPOUND_START: usize = 1026; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialise_autocompound` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn deserialise_autocompound(data_usdc_controller: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_serialise` is never used [INFO] [stdout] --> src/reflect/capital_conductor/types.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl YieldVenueState { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spot_market_index` is never used [INFO] [stdout] --> src/protocols/drift/components.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn spot_market_index(data: &[u8], idx: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `off_borrows` and `off_borrow_market_value_in_struct` are never read [INFO] [stdout] --> src/protocols/kamino/helpers.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ObligationLayout { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub off_borrows: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub off_borrow_market_value_in_struct: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObligationLayout` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ONE` and `liquidity_to_collateral` are never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:357:15 [INFO] [stdout] | [INFO] [stdout] 356 | impl CollateralExchangeRate { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 357 | pub const ONE: Self = Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn liquidity_to_collateral(&self, liquidity_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `liquidity_to_ctoken_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:405:8 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn liquidity_to_ctoken_for_reserve(reserve_data: &[u8], liquidity_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ctoken_to_liquidity_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn ctoken_to_liquidity_for_reserve(reserve_data: &[u8], collateral_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_deposit_index` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn find_deposit_index(d: &[u8], reserve: &Pubkey) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes32` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn bytes32(b: &[u8], off: usize) -> Result<[u8; 32]> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u8` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn le_u8(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u16` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn le_u16(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_exchange_rate` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_token_exchange_rate(lending_data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `underlying_to_ftokens` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn underlying_to_ftokens(lending_data: &[u8], underlying: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ftokens_to_underlying_with_rate` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ftokens_to_underlying_with_rate(ftokens: u64, exchange_price: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_exchange_price` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn token_exchange_price(d: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl DriftBalanceData { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 38 | /// Create from raw account data [INFO] [stdout] 39 | pub fn from_data(user_account_data: &[u8], spot_market_data: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KAMINO_LEND_PROGRAM` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const KAMINO_LEND_PROGRAM: Pubkey = anchor_lang::solana_program::pubkey!("KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl KaminoBalanceData { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 46 | /// Create from raw account data. [INFO] [stdout] 47 | pub fn from_data( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl JupiterBalanceData { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 37 | /// Create from raw account data. [INFO] [stdout] 38 | pub fn from_data(lending_data: &[u8], ftoken_amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `safe_mul`, `safe_div`, and `safe_div_ceil` are never used [INFO] [stdout] --> src/math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait SafeMath: Sized { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn safe_mul(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | fn safe_div(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn safe_div_ceil(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Cast` is never used [INFO] [stdout] --> src/math.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Cast: Sized { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION` is never used [INFO] [stdout] --> src/math.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PRICE_PRECISION: u128 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I128` is never used [INFO] [stdout] --> src/math.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | pub const PRICE_PRECISION_I128: i128 = PRICE_PRECISION as i128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_U64` is never used [INFO] [stdout] --> src/math.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const PRICE_PRECISION_U64: u64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I64` is never used [INFO] [stdout] --> src/math.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | pub const PRICE_PRECISION_I64: i64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SafeDivFloor` is never used [INFO] [stdout] --> src/math.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | pub trait SafeDivFloor: Sized { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedFloorDiv` is never used [INFO] [stdout] --> src/math.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | pub trait CheckedFloorDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedCeilDiv` is never used [INFO] [stdout] --> src/math.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | pub trait CheckedCeilDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/kamino.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | controller_key: &Pubkey, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_key` [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn get_jupiter_accounts_for_mint(earn_mint: &Pubkey, controller_key: &Pubkey) -> Result<(Pubkey, Pubkey)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `update_total_capturable_yield`, `update_pool_value`, `deserialize`, and `try_serialise` are never used [INFO] [stdout] --> src/reflect/autocompound.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AutoCompound { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub fn update_total_capturable_yield(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn update_pool_value(&mut self, value: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn deserialize(buf: &mut &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [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 `AUTOCOMPOUND_START` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | pub const AUTOCOMPOUND_START: usize = 1026; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialise_autocompound` is never used [INFO] [stdout] --> src/reflect/autocompound.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn deserialise_autocompound(data_usdc_controller: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_serialise` is never used [INFO] [stdout] --> src/reflect/capital_conductor/types.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl YieldVenueState { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `off_borrows` and `off_borrow_market_value_in_struct` are never read [INFO] [stdout] --> src/protocols/kamino/helpers.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ObligationLayout { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub off_borrows: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub off_borrow_market_value_in_struct: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObligationLayout` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ONE` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:357:15 [INFO] [stdout] | [INFO] [stdout] 356 | impl CollateralExchangeRate { [INFO] [stdout] | --------------------------- associated constant in this implementation [INFO] [stdout] 357 | pub const ONE: Self = Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `liquidity_to_ctoken_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:405:8 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn liquidity_to_ctoken_for_reserve(reserve_data: &[u8], liquidity_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ctoken_to_liquidity_for_reserve` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn ctoken_to_liquidity_for_reserve(reserve_data: &[u8], collateral_amount: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_deposit_index` is never used [INFO] [stdout] --> src/protocols/kamino/helpers.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn find_deposit_index(d: &[u8], reserve: &Pubkey) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes32` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn bytes32(b: &[u8], off: usize) -> Result<[u8; 32]> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u8` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn le_u8(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `le_u16` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn le_u16(b: &[u8], o: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_exchange_rate` is never used [INFO] [stdout] --> src/protocols/jupiter/helpers.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_token_exchange_rate(lending_data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl DriftBalanceData { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 38 | /// Create from raw account data [INFO] [stdout] 39 | pub fn from_data(user_account_data: &[u8], spot_market_data: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/drift.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KAMINO_LEND_PROGRAM` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const KAMINO_LEND_PROGRAM: Pubkey = anchor_lang::solana_program::pubkey!("KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl KaminoBalanceData { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 46 | /// Create from raw account data. [INFO] [stdout] 47 | pub fn from_data( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/kamino.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl JupiterBalanceData { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 37 | /// Create from raw account data. [INFO] [stdout] 38 | pub fn from_data(lending_data: &[u8], ftoken_amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tvl_account` is never used [INFO] [stdout] --> src/protocols/handlers/jupiter.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn get_tvl_account<'info>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `safe_mul`, `safe_div`, and `safe_div_ceil` are never used [INFO] [stdout] --> src/math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait SafeMath: Sized { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn safe_mul(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | fn safe_div(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn safe_div_ceil(self, rhs: Self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Cast` is never used [INFO] [stdout] --> src/math.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Cast: Sized { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION` is never used [INFO] [stdout] --> src/math.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PRICE_PRECISION: u128 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I128` is never used [INFO] [stdout] --> src/math.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | pub const PRICE_PRECISION_I128: i128 = PRICE_PRECISION as i128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_U64` is never used [INFO] [stdout] --> src/math.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const PRICE_PRECISION_U64: u64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRICE_PRECISION_I64` is never used [INFO] [stdout] --> src/math.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | pub const PRICE_PRECISION_I64: i64 = 1_000_000; //expo = -6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SafeDivFloor` is never used [INFO] [stdout] --> src/math.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | pub trait SafeDivFloor: Sized { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedFloorDiv` is never used [INFO] [stdout] --> src/math.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | pub trait CheckedFloorDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CheckedCeilDiv` is never used [INFO] [stdout] --> src/math.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | pub trait CheckedCeilDiv: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 45.24s [INFO] running `Command { std: "docker" "inspect" "65d0d1304bba8c4fdcb91da491263ba655158eb7f82f7fcb9d121ba9c98af35e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65d0d1304bba8c4fdcb91da491263ba655158eb7f82f7fcb9d121ba9c98af35e", kill_on_drop: false }` [INFO] [stdout] 65d0d1304bba8c4fdcb91da491263ba655158eb7f82f7fcb9d121ba9c98af35e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9bf7a16bc817b9f6278f32ceb5a30d4fe09f5523bfe735c8d4b5dc8e8016231d [INFO] running `Command { std: "docker" "start" "-a" "9bf7a16bc817b9f6278f32ceb5a30d4fe09f5523bfe735c8d4b5dc8e8016231d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `autocompound::*` [INFO] [stderr] --> src/reflect/mod.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub use autocompound::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `capital_conductor::*` [INFO] [stderr] --> src/reflect/mod.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub use capital_conductor::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `helpers::*` [INFO] [stderr] --> src/reflect/mod.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub use helpers::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `components::*` [INFO] [stderr] --> src/protocols/drift/mod.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub use components::*; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `lending_read` [INFO] [stderr] --> src/protocols/handlers/jupiter.rs:2:77 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::protocols::jupiter::{get_jupiter_tvl, read_token_account_amount, lending_read}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `controller_key` [INFO] [stderr] --> src/protocols/handlers/kamino.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | controller_key: &Pubkey, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `controller_key` [INFO] [stderr] --> src/protocols/handlers/jupiter.rs:19:65 [INFO] [stderr] | [INFO] [stderr] 19 | pub(crate) fn get_jupiter_accounts_for_mint(earn_mint: &Pubkey, controller_key: &Pubkey) -> Result<(Pubkey, Pubkey)> { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_key` [INFO] [stderr] [INFO] [stderr] warning: associated items `update_total_capturable_yield`, `update_pool_value`, `deserialize`, and `try_serialise` are never used [INFO] [stderr] --> src/reflect/autocompound.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 49 | impl AutoCompound { [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] 50 | [INFO] [stderr] 51 | pub fn update_total_capturable_yield(&mut self, value: u64){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn update_pool_value(&mut self, value: u64){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 165 | pub fn deserialize(buf: &mut &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `AUTOCOMPOUND_START` is never used [INFO] [stderr] --> src/reflect/autocompound.rs:185:11 [INFO] [stderr] | [INFO] [stderr] 185 | pub const AUTOCOMPOUND_START: usize = 1026; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `deserialise_autocompound` is never used [INFO] [stderr] --> src/reflect/autocompound.rs:186:8 [INFO] [stderr] | [INFO] [stderr] 186 | pub fn deserialise_autocompound(data_usdc_controller: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `try_serialise` is never used [INFO] [stderr] --> src/reflect/capital_conductor/types.rs:202:12 [INFO] [stderr] | [INFO] [stderr] 193 | impl YieldVenueState { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 202 | pub fn try_serialise(&self, writer: &mut W) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `spot_market_index` is never used [INFO] [stderr] --> src/protocols/drift/components.rs:165:12 [INFO] [stderr] | [INFO] [stderr] 165 | pub fn spot_market_index(data: &[u8], idx: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `off_borrows` and `off_borrow_market_value_in_struct` are never read [INFO] [stderr] --> src/protocols/kamino/helpers.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub struct ObligationLayout { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 45 | pub off_borrows: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | pub off_borrow_market_value_in_struct: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ObligationLayout` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `ONE` and `liquidity_to_collateral` are never used [INFO] [stderr] --> src/protocols/kamino/helpers.rs:357:15 [INFO] [stderr] | [INFO] [stderr] 356 | impl CollateralExchangeRate { [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 357 | pub const ONE: Self = Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 377 | pub fn liquidity_to_collateral(&self, liquidity_amount: u64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `liquidity_to_ctoken_for_reserve` is never used [INFO] [stderr] --> src/protocols/kamino/helpers.rs:405:8 [INFO] [stderr] | [INFO] [stderr] 405 | pub fn liquidity_to_ctoken_for_reserve(reserve_data: &[u8], liquidity_amount: u64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ctoken_to_liquidity_for_reserve` is never used [INFO] [stderr] --> src/protocols/kamino/helpers.rs:430:8 [INFO] [stderr] | [INFO] [stderr] 430 | pub fn ctoken_to_liquidity_for_reserve(reserve_data: &[u8], collateral_amount: u64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_deposit_index` is never used [INFO] [stderr] --> src/protocols/kamino/helpers.rs:174:12 [INFO] [stderr] | [INFO] [stderr] 174 | pub fn find_deposit_index(d: &[u8], reserve: &Pubkey) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `bytes32` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn bytes32(b: &[u8], off: usize) -> Result<[u8; 32]> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `le_u8` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn le_u8(b: &[u8], o: usize) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `le_u16` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn le_u16(b: &[u8], o: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_token_exchange_rate` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:107:8 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn get_token_exchange_rate(lending_data: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `underlying_to_ftokens` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:136:8 [INFO] [stderr] | [INFO] [stderr] 136 | pub fn underlying_to_ftokens(lending_data: &[u8], underlying: u64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ftokens_to_underlying_with_rate` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:153:8 [INFO] [stderr] | [INFO] [stderr] 153 | pub fn ftokens_to_underlying_with_rate(ftokens: u64, exchange_price: u64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `token_exchange_price` is never used [INFO] [stderr] --> src/protocols/jupiter/helpers.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn token_exchange_price(d: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_data` is never used [INFO] [stderr] --> src/protocols/handlers/drift.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl DriftBalanceData { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 38 | /// Create from raw account data [INFO] [stderr] 39 | pub fn from_data(user_account_data: &[u8], spot_market_data: &[u8]) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_tvl_account` is never used [INFO] [stderr] --> src/protocols/handlers/drift.rs:84:8 [INFO] [stderr] | [INFO] [stderr] 84 | pub fn get_tvl_account<'info>( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `KAMINO_LEND_PROGRAM` is never used [INFO] [stderr] --> src/protocols/handlers/kamino.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | const KAMINO_LEND_PROGRAM: Pubkey = anchor_lang::solana_program::pubkey!("KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_data` is never used [INFO] [stderr] --> src/protocols/handlers/kamino.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 45 | impl KaminoBalanceData { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 46 | /// Create from raw account data. [INFO] [stderr] 47 | pub fn from_data( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_tvl_account` is never used [INFO] [stderr] --> src/protocols/handlers/kamino.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn get_tvl_account<'info>( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_data` is never used [INFO] [stderr] --> src/protocols/handlers/jupiter.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 36 | impl JupiterBalanceData { [INFO] [stderr] | ----------------------- associated function in this implementation [INFO] [stderr] 37 | /// Create from raw account data. [INFO] [stderr] 38 | pub fn from_data(lending_data: &[u8], ftoken_amount: u64) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_tvl_account` is never used [INFO] [stderr] --> src/protocols/handlers/jupiter.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn get_tvl_account<'info>( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `safe_mul`, `safe_div`, and `safe_div_ceil` are never used [INFO] [stderr] --> src/math.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 9 | pub trait SafeMath: Sized { [INFO] [stderr] | -------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 12 | fn safe_mul(self, rhs: Self) -> Result; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 13 | fn safe_div(self, rhs: Self) -> Result; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 14 | fn safe_div_ceil(self, rhs: Self) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Cast` is never used [INFO] [stderr] --> src/math.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | pub trait Cast: Sized { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PRICE_PRECISION` is never used [INFO] [stderr] --> src/math.rs:50:11 [INFO] [stderr] | [INFO] [stderr] 50 | pub const PRICE_PRECISION: u128 = 1_000_000; //expo = -6; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PRICE_PRECISION_I128` is never used [INFO] [stderr] --> src/math.rs:51:11 [INFO] [stderr] | [INFO] [stderr] 51 | pub const PRICE_PRECISION_I128: i128 = PRICE_PRECISION as i128; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PRICE_PRECISION_U64` is never used [INFO] [stderr] --> src/math.rs:52:11 [INFO] [stderr] | [INFO] [stderr] 52 | pub const PRICE_PRECISION_U64: u64 = 1_000_000; //expo = -6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PRICE_PRECISION_I64` is never used [INFO] [stderr] --> src/math.rs:53:11 [INFO] [stderr] | [INFO] [stderr] 53 | pub const PRICE_PRECISION_I64: i64 = 1_000_000; //expo = -6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `SafeDivFloor` is never used [INFO] [stderr] --> src/math.rs:136:11 [INFO] [stderr] | [INFO] [stderr] 136 | pub trait SafeDivFloor: Sized { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `CheckedFloorDiv` is never used [INFO] [stderr] --> src/math.rs:141:11 [INFO] [stderr] | [INFO] [stderr] 141 | pub trait CheckedFloorDiv: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `CheckedCeilDiv` is never used [INFO] [stderr] --> src/math.rs:202:11 [INFO] [stderr] | [INFO] [stderr] 202 | pub trait CheckedCeilDiv: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `reflect-exchange-rates` (lib) generated 40 warnings (run `cargo fix --lib -p reflect-exchange-rates` to apply 7 suggestions) [INFO] [stderr] warning: associated constant `ONE` is never used [INFO] [stderr] --> src/protocols/kamino/helpers.rs:357:15 [INFO] [stderr] | [INFO] [stderr] 356 | impl CollateralExchangeRate { [INFO] [stderr] | --------------------------- associated constant in this implementation [INFO] [stderr] 357 | pub const ONE: Self = Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `reflect-exchange-rates` (lib test) generated 36 warnings (35 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/reflect_exchange_rates-321a811dc203c08f) [INFO] [stdout] [INFO] [stdout] running 51 tests [INFO] [stdout] test accounts::tests::test_config_from_program_id_matches_default ... ok [INFO] [stdout] test accounts::tests::test_config_with_different_program_id_produces_different_derived ... ok [INFO] [stdout] test accounts::tests::test_config_derivation_math ... ok [INFO] [stdout] test accounts::tests::test_get_tvl_accounts_usdt ... ok [INFO] [stdout] test accounts::tests::test_get_tvl_accounts_usdc ... ok [INFO] [stdout] test accounts::tests::test_supply_change_usdc_default_equals_derived_config ... ok [INFO] [stdout] test accounts::tests::test_get_supply_change_accounts_usdc ... ok [INFO] [stdout] test accounts::tests::test_supply_change_usdc_with_custom_program_uses_derived_accounts ... ok [INFO] [stdout] test accounts::tests::test_get_supply_change_accounts_usdt ... ok [INFO] [stdout] test accounts::tests::test_supply_change_usdt_with_custom_program_uses_derived_accounts ... ok [INFO] [stdout] test accounts::tests::test_tvl_usdc_default_equals_derived_config ... ok [INFO] [stdout] test accounts::tests::test_tvl_usdt_default_equals_derived_config ... ok [INFO] [stdout] test accounts::tests::test_tvl_usdt_with_custom_program_uses_derived_accounts ... ok [INFO] [stdout] test accounts::tests::test_tvl_usdc_with_custom_program_uses_derived_accounts ... ok [INFO] [stdout] test accounts::tests::test_supply_change_usdt_default_equals_derived_config ... ok [INFO] [stdout] test exchanges::usdc_plus_exchange::tests::test_account_order_usdc ... ok [INFO] [stdout] test exchanges::usdc_plus_exchange::tests::test_account_order_detailed_usdc ... ok [INFO] [stdout] test exchanges::usdc_plus_exchange::tests::test_get_exchange_components_usdc_data ... ok [INFO] [stdout] test exchanges::usdc_plus_exchange::tests::test_round_trip_conversion_usdc_data ... ok [INFO] [stdout] test exchanges::usdt_plus_exchange::tests::test_account_order_detailed_usdt ... ok [INFO] [stdout] test exchanges::usdt_plus_exchange::tests::test_account_order_usdt ... ok [INFO] [stdout] test exchanges::usdt_plus_exchange::tests::test_exchange_amount_usdt_data ... ok [INFO] [stdout] test exchanges::usdt_plus_exchange::tests::test_get_exchange_components_usdt_data ... ok [INFO] [stdout] test exchanges::usdc_plus_exchange::tests::test_exchange_amount_usdc_data ... ok [INFO] [stdout] test exchanges::usdt_plus_exchange::tests::test_round_trip_conversion_usdt_data ... ok [INFO] [stdout] test mints::tests::test_compute_base_token ... ok [INFO] [stdout] test mints::tests::test_compute_receipt_token ... ok [INFO] [stdout] test protocols::drift::components::tests::test_get_token_amount_math ... ok [INFO] [stdout] test protocols::drift::components::tests::test_layout_sizes ... ok [INFO] [stdout] test protocols::drift::components::tests::test_read_spot_market_usdc ... ok [INFO] [stdout] test protocols::drift::components::tests::test_read_spot_market_usdt ... ok [INFO] [stdout] test protocols::drift::components::tests::test_read_user_positions_usdc ... ok [INFO] [stdout] test protocols::drift::components::tests::test_read_user_positions_usdt ... ok [INFO] [stdout] test protocols::drift::components::tests::test_token_amount_calculation_usdt ... ok [INFO] [stdout] test protocols::drift::helpers::tests::test_get_usdc_amount ... ok [INFO] [stdout] test protocols::drift::components::tests::test_token_amount_calculation_usdc ... ok [INFO] [stdout] test protocols::drift::helpers::tests::test_get_usdt_amount ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_exchange_rate_precision ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_exchange_rate_precision_boundaries ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_ftokens_to_underlying_one_to_one ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_ftokens_to_underlying_with_rate ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_jupiter_tvl_calculation_usdc ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_jupiter_tvl_calculation_usdt ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_lending_layout_size ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_round_trip_conversion_usdc ... ok [INFO] [stdout] test protocols::jupiter::helpers::tests::test_round_trip_conversion_usdt ... ok [INFO] [stdout] test protocols::kamino::helpers::tests::test_collateral_exchange_rate_conversions ... ok [INFO] [stdout] test protocols::kamino::helpers::tests::test_obligation_layout_size ... ok [INFO] [stdout] test protocols::kamino::helpers::tests::test_read_reserve_account_usdc ... ok [INFO] [stdout] test protocols::kamino::helpers::tests::test_read_reserve_account_usdt ... ok [INFO] [stdout] test protocols::kamino::helpers::tests::test_reserve_layout_size ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 51 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests derive_addresses.rs (/opt/rustwide/target/debug/deps/derive_addresses-26e4ef61cf8c5b06) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests reflect_exchange_rates [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/exchanges/usdc_plus_exchange.rs - exchanges::usdc_plus_exchange::get_exchange_components_usdc (line 53) ... ignored [INFO] [stdout] test src/exchanges/usdt_plus_exchange.rs - exchanges::usdt_plus_exchange::get_exchange_components_usdt (line 53) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9bf7a16bc817b9f6278f32ceb5a30d4fe09f5523bfe735c8d4b5dc8e8016231d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bf7a16bc817b9f6278f32ceb5a30d4fe09f5523bfe735c8d4b5dc8e8016231d", kill_on_drop: false }` [INFO] [stdout] 9bf7a16bc817b9f6278f32ceb5a30d4fe09f5523bfe735c8d4b5dc8e8016231d