[INFO] cloning repository https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1c3c6465c6379e9357a64997c362b0dd838403b [INFO] checking yiyangzhou0098/Bitcoin-Ingestion-Rust against master#fe55364329579d361b1ab565728bc033a7dba07e for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust" "/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/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] finished tweaking git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] tweaked toml for git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust on toolchain fe55364329579d361b1ab565728bc033a7dba07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust 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" "+fe55364329579d361b1ab565728bc033a7dba07e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitcoincore-rpc v0.19.0 [INFO] [stderr] Downloaded jsonrpc v0.18.0 [INFO] [stderr] Downloaded bitcoincore-rpc-json v0.19.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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4561f26e625d87453c623bf039aab4bd1045632c3253e1a2bb804fb2dcf3690 [INFO] running `Command { std: "docker" "start" "-a" "c4561f26e625d87453c623bf039aab4bd1045632c3253e1a2bb804fb2dcf3690", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4561f26e625d87453c623bf039aab4bd1045632c3253e1a2bb804fb2dcf3690", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4561f26e625d87453c623bf039aab4bd1045632c3253e1a2bb804fb2dcf3690", kill_on_drop: false }` [INFO] [stdout] c4561f26e625d87453c623bf039aab4bd1045632c3253e1a2bb804fb2dcf3690 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92ab7cff355c0f7d63d3829ba672c48a782f273f580cd82ccee0db2970e54774 [INFO] running `Command { std: "docker" "start" "-a" "92ab7cff355c0f7d63d3829ba672c48a782f273f580cd82ccee0db2970e54774", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking once_cell v1.20.1 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Checking hex-conservative v0.2.1 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling frunk_core v0.4.3 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Checking bitcoin-io v0.1.2 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking bitcoin_hashes v0.14.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling bigdecimal v0.4.5 [INFO] [stderr] Compiling bitcoin v0.32.3 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling minreq v2.12.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking bitcoin-units v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking bech32 v0.11.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking btoi v0.4.3 [INFO] [stderr] Compiling derive_utils v0.14.2 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking jsonrpc v0.18.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling io-enum v1.1.3 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking base58ck v0.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking lru v0.12.4 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.3 [INFO] [stderr] Checking multer v2.1.0 [INFO] [stderr] Compiling frunk_derives v0.4.3 [INFO] [stderr] Compiling frunk_proc_macros v0.1.3 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Compiling mysql-common-derive v0.31.1 [INFO] [stderr] Checking frunk v0.4.3 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking secp256k1 v0.29.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Compiling mysql_common v0.32.4 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking bitcoincore-rpc-json v0.19.0 [INFO] [stderr] Checking mysql v25.0.1 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking bitcoincore-rpc v0.19.0 [INFO] [stderr] Checking project-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/services/mysql_connection.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{string, sync::Arc}; [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: `Utc` [INFO] [stdout] --> src/services/ingestion.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_rpc_fn.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | test_rpc_func(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = test_rpc_func(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/services/mysql_connection.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{string, sync::Arc}; [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: `Utc` [INFO] [stdout] --> src/services/ingestion.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/services/bitcoin_rpc.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | let date = NaiveDateTime::from_timestamp(block_time as i64, 0).date(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/services/bitcoin_rpc.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | let date = NaiveDateTime::from_timestamp(block_time as i64, 0).date(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailyTxData` is never constructed [INFO] [stdout] --> src/services/bitcoin_rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DailyTxData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_last_7_days_tx_data` is never used [INFO] [stdout] --> src/services/bitcoin_rpc.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl BitcoinRpcService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn get_last_7_days_tx_data(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_daily_tx`, `get_last_7_days`, `check_today_data`, `save_today_tx`, and `save_7dma` are never used [INFO] [stdout] --> src/services/mysql_connection.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl MySqlService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn save_daily_tx(&self, date: NaiveDate, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_last_7_days(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn check_today_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn save_today_tx(&self, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn save_7dma(&self, date: NaiveDate, dma_value: f64) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_7dma` is never used [INFO] [stdout] --> src/services/ingestion.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn calculate_7dma(transaction_data: &[(NaiveDate, usize)]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailyTxData` is never constructed [INFO] [stdout] --> src/services/bitcoin_rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DailyTxData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_last_7_days_tx_data` is never used [INFO] [stdout] --> src/services/bitcoin_rpc.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl BitcoinRpcService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn get_last_7_days_tx_data(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_daily_tx`, `get_last_7_days`, `check_today_data`, `save_today_tx`, and `save_7dma` are never used [INFO] [stdout] --> src/services/mysql_connection.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl MySqlService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn save_daily_tx(&self, date: NaiveDate, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_last_7_days(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn check_today_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn save_today_tx(&self, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn save_7dma(&self, date: NaiveDate, dma_value: f64) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_7dma` is never used [INFO] [stdout] --> src/services/ingestion.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn calculate_7dma(transaction_data: &[(NaiveDate, usize)]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.96s [INFO] running `Command { std: "docker" "inspect" "92ab7cff355c0f7d63d3829ba672c48a782f273f580cd82ccee0db2970e54774", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92ab7cff355c0f7d63d3829ba672c48a782f273f580cd82ccee0db2970e54774", kill_on_drop: false }` [INFO] [stdout] 92ab7cff355c0f7d63d3829ba672c48a782f273f580cd82ccee0db2970e54774