[INFO] cloning repository https://github.com/Tao-2022/solana-mev-detector-simple [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tao-2022/solana-mev-detector-simple" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTao-2022%2Fsolana-mev-detector-simple", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTao-2022%2Fsolana-mev-detector-simple'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86131700b1ab77005bd39f87ce4b2293b1fdda93 [INFO] checking Tao-2022/solana-mev-detector-simple against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTao-2022%2Fsolana-mev-detector-simple" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tao-2022/solana-mev-detector-simple [INFO] finished tweaking git repo https://github.com/Tao-2022/solana-mev-detector-simple [INFO] tweaked toml for git repo https://github.com/Tao-2022/solana-mev-detector-simple written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tao-2022/solana-mev-detector-simple on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tao-2022/solana-mev-detector-simple 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio v1.46.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a176754404f33a2e64e94fbcdc2799fb8c50a73c14d02ea09ff1510ff3a5c8ba [INFO] running `Command { std: "docker" "start" "-a" "a176754404f33a2e64e94fbcdc2799fb8c50a73c14d02ea09ff1510ff3a5c8ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a176754404f33a2e64e94fbcdc2799fb8c50a73c14d02ea09ff1510ff3a5c8ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a176754404f33a2e64e94fbcdc2799fb8c50a73c14d02ea09ff1510ff3a5c8ba", kill_on_drop: false }` [INFO] [stdout] a176754404f33a2e64e94fbcdc2799fb8c50a73c14d02ea09ff1510ff3a5c8ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7bdbc860e6f3298dba2fec214cbc60d78ae768ddbd4e40613c86fd3bbb0f4e5f [INFO] running `Command { std: "docker" "start" "-a" "7bdbc860e6f3298dba2fec214cbc60d78ae768ddbd4e40613c86fd3bbb0f4e5f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking dlv-list v0.3.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking ordered-multimap v0.4.3 [INFO] [stderr] Checking rust-ini v0.18.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tokio v1.46.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking ron v0.7.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking config v0.13.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking solana-mev-detector-simple v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AccountBalanceChange`, `TokenBalanceChange`, `TokenBalance`, and `TransactionMeta` [INFO] [stdout] --> src/mev.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | AccountBalanceChange, TokenBalanceChange, TransactionMeta, TokenBalance}; [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 imports: `AccountBalanceChange`, `TokenBalanceChange`, `TokenBalance`, and `TransactionMeta` [INFO] [stdout] --> src/mev.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | AccountBalanceChange, TokenBalanceChange, TransactionMeta, TokenBalance}; [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 variable: `target_signature` [INFO] [stdout] --> src/mev.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | target_signature: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_signature` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_tx` [INFO] [stdout] --> src/mev.rs:447:35 [INFO] [stdout] | [INFO] [stdout] 447 | if let (Ok(target_tx), Ok(front_tx), Ok(back_tx)) = ( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_tx` [INFO] [stdout] --> src/mev.rs:447:49 [INFO] [stdout] | [INFO] [stdout] 447 | if let (Ok(target_tx), Ok(front_tx), Ok(back_tx)) = ( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/mev.rs:942:9 [INFO] [stdout] | [INFO] [stdout] 942 | client: &crate::client::SolanaClient, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_tx_sig` [INFO] [stdout] --> src/mev.rs:946:9 [INFO] [stdout] | [INFO] [stdout] 946 | target_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_tx_sig` [INFO] [stdout] --> src/mev.rs:947:9 [INFO] [stdout] | [INFO] [stdout] 947 | front_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_tx_sig` [INFO] [stdout] --> src/mev.rs:948:9 [INFO] [stdout] | [INFO] [stdout] 948 | back_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_signature` [INFO] [stdout] --> src/mev.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | target_signature: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_signature` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_tx` [INFO] [stdout] --> src/mev.rs:447:35 [INFO] [stdout] | [INFO] [stdout] 447 | if let (Ok(target_tx), Ok(front_tx), Ok(back_tx)) = ( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_tx` [INFO] [stdout] --> src/mev.rs:447:49 [INFO] [stdout] | [INFO] [stdout] 447 | if let (Ok(target_tx), Ok(front_tx), Ok(back_tx)) = ( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/mev.rs:942:9 [INFO] [stdout] | [INFO] [stdout] 942 | client: &crate::client::SolanaClient, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_tx_sig` [INFO] [stdout] --> src/mev.rs:946:9 [INFO] [stdout] | [INFO] [stdout] 946 | target_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_tx_sig` [INFO] [stdout] --> src/mev.rs:947:9 [INFO] [stdout] | [INFO] [stdout] 947 | front_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back_tx_sig` [INFO] [stdout] --> src/mev.rs:948:9 [INFO] [stdout] | [INFO] [stdout] 948 | back_tx_sig: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_back_tx_sig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_account_writable` and `is_vote_transaction` are never used [INFO] [stdout] --> src/client.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl SolanaClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn is_account_writable(&self, account_index: usize, message: &Message) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn is_vote_transaction(&self, tx: &Transaction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountBalanceChange` is never constructed [INFO] [stdout] --> src/client.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | pub struct AccountBalanceChange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenBalanceChange` is never constructed [INFO] [stdout] --> src/client.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub struct TokenBalanceChange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/locale.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Locale { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn tip_location(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn tip_location_before(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn tip_location_after(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn tip_amount(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn bundle_contains(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn jito_tip_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn target_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn other_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn shared_accounts(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn frontrun_skipped(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn note(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | pub fn calculating_sandwich_loss(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_intersection` and `user_loss` are never read [INFO] [stdout] --> src/mev.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct SandwichDetails { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub account_intersection: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub user_loss: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SandwichDetails` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `estimated_loss_lamports` is never read [INFO] [stdout] --> src/mev.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct UserLoss { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 27 | pub estimated_loss_lamports: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLoss` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `equivalent_amount` and `equivalent_symbol` are never read [INFO] [stdout] --> src/mev.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct TokenLossDetail { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub equivalent_amount: Option, // 等价的另一个代币数量 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub equivalent_symbol: Option, // 另一个代币的符号 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenLossDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_sandwiched`, `front_transactions`, and `back_transactions` are never read [INFO] [stdout] --> src/mev.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct BundlePositionAnalysis { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | pub is_sandwiched: bool, // 是否被夹在中间 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 78 | pub front_transactions: Vec, // 前置交易 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub back_transactions: Vec, // 后置交易 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BundlePositionAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Serum` and `Unknown` are never constructed [INFO] [stdout] --> src/mev.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum DexType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 90 | Serum, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dex_type`, `user_address`, and `pool_address` are never read [INFO] [stdout] --> src/mev.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct SwapInstructionData { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 108 | pub dex_type: DexType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub user_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 114 | pub pool_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwapInstructionData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `account_intersection` is never read [INFO] [stdout] --> src/mev.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct FrontrunDetails { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 129 | pub front_tx: String, [INFO] [stdout] 130 | pub account_intersection: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FrontrunDetails` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_local_bundle_transactions` and `analyze_swap_pair` are never used [INFO] [stdout] --> src/mev.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl MevDetector { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 328 | fn find_local_bundle_transactions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | async fn analyze_swap_pair( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_PROGRAM_ID` is never used [INFO] [stdout] --> src/mev.rs:145:15 [INFO] [stdout] | [INFO] [stdout] 145 | pub const TOKEN_PROGRAM_ID: &str = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_decimals` is never used [INFO] [stdout] --> src/mev.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_token_decimals(address: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_account_writable` and `is_vote_transaction` are never used [INFO] [stdout] --> src/client.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl SolanaClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn is_account_writable(&self, account_index: usize, message: &Message) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn is_vote_transaction(&self, tx: &Transaction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountBalanceChange` is never constructed [INFO] [stdout] --> src/client.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | pub struct AccountBalanceChange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenBalanceChange` is never constructed [INFO] [stdout] --> src/client.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub struct TokenBalanceChange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/locale.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Locale { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn tip_location(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn tip_location_before(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn tip_location_after(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn tip_amount(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn bundle_contains(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn jito_tip_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn target_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn other_tx(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn shared_accounts(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn frontrun_skipped(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn note(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | pub fn calculating_sandwich_loss(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_intersection` and `user_loss` are never read [INFO] [stdout] --> src/mev.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct SandwichDetails { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub account_intersection: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub user_loss: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SandwichDetails` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `estimated_loss_lamports` is never read [INFO] [stdout] --> src/mev.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct UserLoss { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 27 | pub estimated_loss_lamports: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLoss` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `equivalent_amount` and `equivalent_symbol` are never read [INFO] [stdout] --> src/mev.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct TokenLossDetail { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub equivalent_amount: Option, // 等价的另一个代币数量 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub equivalent_symbol: Option, // 另一个代币的符号 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenLossDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_sandwiched`, `front_transactions`, and `back_transactions` are never read [INFO] [stdout] --> src/mev.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct BundlePositionAnalysis { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | pub is_sandwiched: bool, // 是否被夹在中间 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 78 | pub front_transactions: Vec, // 前置交易 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | pub back_transactions: Vec, // 后置交易 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BundlePositionAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Serum` and `Unknown` are never constructed [INFO] [stdout] --> src/mev.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum DexType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 90 | Serum, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DexType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dex_type`, `user_address`, and `pool_address` are never read [INFO] [stdout] --> src/mev.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct SwapInstructionData { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 108 | pub dex_type: DexType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub user_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 114 | pub pool_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwapInstructionData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `account_intersection` is never read [INFO] [stdout] --> src/mev.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct FrontrunDetails { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 129 | pub front_tx: String, [INFO] [stdout] 130 | pub account_intersection: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FrontrunDetails` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_local_bundle_transactions` and `analyze_swap_pair` are never used [INFO] [stdout] --> src/mev.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl MevDetector { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 328 | fn find_local_bundle_transactions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | async fn analyze_swap_pair( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_PROGRAM_ID` is never used [INFO] [stdout] --> src/mev.rs:145:15 [INFO] [stdout] | [INFO] [stdout] 145 | pub const TOKEN_PROGRAM_ID: &str = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_decimals` is never used [INFO] [stdout] --> src/mev.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_token_decimals(address: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.07s [INFO] running `Command { std: "docker" "inspect" "7bdbc860e6f3298dba2fec214cbc60d78ae768ddbd4e40613c86fd3bbb0f4e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bdbc860e6f3298dba2fec214cbc60d78ae768ddbd4e40613c86fd3bbb0f4e5f", kill_on_drop: false }` [INFO] [stdout] 7bdbc860e6f3298dba2fec214cbc60d78ae768ddbd4e40613c86fd3bbb0f4e5f