[INFO] cloning repository https://github.com/pdrdsnt/eth_pools [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pdrdsnt/eth_pools" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdrdsnt%2Feth_pools", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdrdsnt%2Feth_pools'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46f6fa844a85ddbb183e38b792917524bceeb29f [INFO] checking pdrdsnt/eth_pools against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdrdsnt%2Feth_pools" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pdrdsnt/eth_pools [INFO] finished tweaking git repo https://github.com/pdrdsnt/eth_pools [INFO] tweaked toml for git repo https://github.com/pdrdsnt/eth_pools written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pdrdsnt/eth_pools on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pdrdsnt/eth_pools 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 199b12b18e9ef36772a8b9320cf2622f498c475e5d546a64b09d6b53bcc65a30 [INFO] running `Command { std: "docker" "start" "-a" "199b12b18e9ef36772a8b9320cf2622f498c475e5d546a64b09d6b53bcc65a30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "199b12b18e9ef36772a8b9320cf2622f498c475e5d546a64b09d6b53bcc65a30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "199b12b18e9ef36772a8b9320cf2622f498c475e5d546a64b09d6b53bcc65a30", kill_on_drop: false }` [INFO] [stdout] 199b12b18e9ef36772a8b9320cf2622f498c475e5d546a64b09d6b53bcc65a30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51232f2d19738d7e564a99e3c63741ec63e8eebab9539f153f28969e65494084 [INFO] running `Command { std: "docker" "start" "-a" "51232f2d19738d7e564a99e3c63741ec63e8eebab9539f153f28969e65494084", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling cc v1.2.25 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking crc v3.3.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling syn-solidity v1.2.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.12 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling strum_macros v0.27.1 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking strum v0.27.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 derive_more v2.0.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking const-hex v1.14.1 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking alloy-sol-type-parser v1.2.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking nybbles v0.3.4 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Compiling ruint v1.15.0 [INFO] [stderr] Checking alloy-rlp v0.3.12 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking lru v0.13.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling alloy-primitives v1.2.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling alloy-json-abi v1.2.0 [INFO] [stderr] Checking alloy-serde v1.0.9 [INFO] [stderr] Checking alloy-eip7702 v0.6.1 [INFO] [stderr] Checking alloy-eip2930 v0.2.1 [INFO] [stderr] Checking alloy-eip2124 v0.2.0 [INFO] [stderr] Checking alloy-trie v0.8.1 [INFO] [stderr] Checking alloy-signer v1.0.9 [INFO] [stderr] Checking alloy-chains v0.2.3 [INFO] [stderr] Checking alloy-eips v1.0.9 [INFO] [stderr] Compiling alloy-sol-macro-input v1.2.0 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.2.0 [INFO] [stderr] Checking alloy-consensus v1.0.9 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking alloy-network-primitives v1.0.9 [INFO] [stderr] Checking alloy-consensus-any v1.0.9 [INFO] [stderr] Compiling alloy-sol-macro v1.2.0 [INFO] [stderr] Checking alloy-sol-types v1.2.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.19 [INFO] [stderr] Checking alloy-json-rpc v1.0.9 [INFO] [stderr] Checking alloy-rpc-types-eth v1.0.9 [INFO] [stderr] Checking alloy-dyn-abi v1.2.0 [INFO] [stderr] Checking alloy-transport v1.0.9 [INFO] [stderr] Checking alloy-core v1.2.0 [INFO] [stderr] Checking alloy-transport-http v1.0.9 [INFO] [stderr] Checking alloy-rpc-client v1.0.9 [INFO] [stderr] Checking alloy-rpc-types-any v1.0.9 [INFO] [stderr] Checking alloy-rpc-types v1.0.9 [INFO] [stderr] Checking alloy-network v1.0.9 [INFO] [stderr] Checking alloy-provider v1.0.9 [INFO] [stderr] Checking alloy-signer-local v1.0.9 [INFO] [stderr] Checking alloy-contract v1.0.9 [INFO] [stderr] Checking alloy v1.0.9 [INFO] [stderr] Checking eth_pools v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `U256` [INFO] [stdout] --> src/lib.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | primitives::{Address, U256}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining` is never read [INFO] [stdout] --> src/v3_pool_src.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | remaining = U256::ZERO; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining` is never read [INFO] [stdout] --> src/v3_pool_src.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | remaining = U256::ZERO; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rpc` is never used [INFO] [stdout] --> src/v3_pool_src.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Rpc = FillProvider; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PoolContract` is never used [INFO] [stdout] --> src/v3_pool_src.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type PoolContract = UniV3PoolInstance; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `V3PoolSrc` is never constructed [INFO] [stdout] --> src/v3_pool_src.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct V3PoolSrc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_ticks`, `right_ticks`, `left_ticks`, and `trade` are never used [INFO] [stdout] --> src/v3_pool_src.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl V3PoolSrc { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 35 | pub async fn new(address: Address, provider: Rpc) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn update_ticks( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn right_ticks( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub async fn left_ticks( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn trade(&mut self, amount_in: U256, from0: bool) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PoolUpdateError` is never used [INFO] [stdout] --> src/err.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum PoolUpdateError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tick` is never constructed [INFO] [stdout] --> src/tick_math.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Tick { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_tick` is never used [INFO] [stdout] --> src/tick_math.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn normalize_tick(current_tick: I24, tick_spacing: I24) -> I24 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_index` is never used [INFO] [stdout] --> src/tick_math.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn word_index(normalized_tick: I24) -> i16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_ticks_from_bitmap` is never used [INFO] [stdout] --> src/tick_math.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn extract_ticks_from_bitmap(bitmap: U256, word_idx: I24, tick_spacing: I24) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_left` is never used [INFO] [stdout] --> src/tick_math.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn next_left(word: &U256, start: &i16) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_right` is never used [INFO] [stdout] --> src/tick_math.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn next_right(word: &U256, start: &i16) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_ticks_from_map` is never used [INFO] [stdout] --> src/tick_math.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn collect_ticks_from_map( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `price_from_tick` is never used [INFO] [stdout] --> src/tick_math.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn price_from_tick(target_tick: I24) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tick_from_price` is never used [INFO] [stdout] --> src/tick_math.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn tick_from_price(sqrt_price_x96: U256) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_amount_possible` is never used [INFO] [stdout] --> src/tick_math.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn compute_amount_possible( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_price_from0` is never used [INFO] [stdout] --> src/tick_math.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn compute_price_from0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_price_from1` is never used [INFO] [stdout] --> src/tick_math.rs:367:8 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn compute_price_from1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_liquidity` is never used [INFO] [stdout] --> src/tick_math.rs:389:8 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn update_liquidity(current_liquidity: U256, liquidity_net: i128) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trade` is never constructed [INFO] [stdout] --> src/trade.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Trade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/tick_math.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | while idx >= 0 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut new_v3 = v3.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut current_tick = new_v3.current_tick; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut current_price = new_v3.x96price; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut my_price = tick_math::price_from_tick(current_tick).unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/v3_pool_src.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct V3PoolSrc { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 22 | pub address: Address, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub token0: Address, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | pub token1: Address, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | pub fee: U24, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | pub current_tick: I24, [INFO] [stdout] 27 | pub active_ticks: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 28 | pub bitmap: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | pub tick_spacing: I24, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 30 | pub liquidity: U256, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub x96price: U256, [INFO] [stdout] 32 | pub contract: PoolContract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `V3PoolSrc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trade` is never used [INFO] [stdout] --> src/v3_pool_src.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl V3PoolSrc { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn trade(&mut self, amount_in: U256, from0: bool) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PoolUpdateError` is never used [INFO] [stdout] --> src/err.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum PoolUpdateError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_ticks_from_bitmap` is never used [INFO] [stdout] --> src/tick_math.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn extract_ticks_from_bitmap(bitmap: U256, word_idx: I24, tick_spacing: I24) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_ticks_from_map` is never used [INFO] [stdout] --> src/tick_math.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn collect_ticks_from_map( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tick_from_price` is never used [INFO] [stdout] --> src/tick_math.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn tick_from_price(sqrt_price_x96: U256) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_amount_possible` is never used [INFO] [stdout] --> src/tick_math.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn compute_amount_possible( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_price_from0` is never used [INFO] [stdout] --> src/tick_math.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn compute_price_from0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_price_from1` is never used [INFO] [stdout] --> src/tick_math.rs:367:8 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn compute_price_from1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_liquidity` is never used [INFO] [stdout] --> src/tick_math.rs:389:8 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn update_liquidity(current_liquidity: U256, liquidity_net: i128) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trade` is never constructed [INFO] [stdout] --> src/trade.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Trade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/tick_math.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | while idx >= 0 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.21s [INFO] running `Command { std: "docker" "inspect" "51232f2d19738d7e564a99e3c63741ec63e8eebab9539f153f28969e65494084", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51232f2d19738d7e564a99e3c63741ec63e8eebab9539f153f28969e65494084", kill_on_drop: false }` [INFO] [stdout] 51232f2d19738d7e564a99e3c63741ec63e8eebab9539f153f28969e65494084