[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 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3 [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 8006091eb71ae7d9e9bccb66c6122c9d68af4466 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "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" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.2.27 [INFO] [stderr] Downloaded tokio v1.46.0 [INFO] [stderr] Downloaded config v0.13.4 [INFO] [stderr] Downloaded pest_generator v2.8.1 [INFO] [stderr] Downloaded ron v0.7.1 [INFO] [stderr] Downloaded pest_meta v2.8.1 [INFO] [stderr] Downloaded pest_derive v2.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694 [INFO] running `Command { std: "docker" "start" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking dlv-list v0.3.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking ordered-multimap v0.4.3 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking rust-ini v0.18.0 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking env_logger v0.10.2 [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] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking tokio v1.46.0 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [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 tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking ron v0.7.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking toml v0.5.11 [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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694", kill_on_drop: false }` [INFO] [stdout] 11b3e45c2da7dfadfe6af2db33b675e30723a2c761cb9b62bc2e17e324491694