[INFO] cloning repository https://github.com/iwanghy/investmen-calculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iwanghy/investmen-calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d271040155f044fbd2521ac153f82c18eb5d924 [INFO] checking iwanghy/investmen-calculator against master#59fd4ef94daa991e6797b5aa6127e824f3067def for pr-145108-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwanghy%2Finvestmen-calculator" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iwanghy/investmen-calculator [INFO] finished tweaking git repo https://github.com/iwanghy/investmen-calculator [INFO] tweaked toml for git repo https://github.com/iwanghy/investmen-calculator written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iwanghy/investmen-calculator on toolchain 59fd4ef94daa991e6797b5aa6127e824f3067def [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+59fd4ef94daa991e6797b5aa6127e824f3067def" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iwanghy/investmen-calculator 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" "+59fd4ef94daa991e6797b5aa6127e824f3067def" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded askama_parser v0.2.1 [INFO] [stderr] Downloaded askama v0.12.1 [INFO] [stderr] Downloaded tokio-test v0.4.5 [INFO] [stderr] Downloaded askama_derive v0.12.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+59fd4ef94daa991e6797b5aa6127e824f3067def" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 857221d134f5423599553d84a7d30d5ba7b83c6fed9b42f31f256c7d4db5b8bb [INFO] running `Command { std: "docker" "start" "-a" "857221d134f5423599553d84a7d30d5ba7b83c6fed9b42f31f256c7d4db5b8bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "857221d134f5423599553d84a7d30d5ba7b83c6fed9b42f31f256c7d4db5b8bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "857221d134f5423599553d84a7d30d5ba7b83c6fed9b42f31f256c7d4db5b8bb", kill_on_drop: false }` [INFO] [stdout] 857221d134f5423599553d84a7d30d5ba7b83c6fed9b42f31f256c7d4db5b8bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+59fd4ef94daa991e6797b5aa6127e824f3067def" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a2024ec47c06640c77b473796a4672dd087751a0a7b5b3eaf977fcb9f9f5e2f [INFO] running `Command { std: "docker" "start" "-a" "8a2024ec47c06640c77b473796a4672dd087751a0a7b5b3eaf977fcb9f9f5e2f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling find-msvc-tools v0.1.7 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling zmij v1.0.13 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling askama_parser v0.2.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking askama_escape v0.10.3 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling basic-toml v0.1.10 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-test v0.4.5 [INFO] [stderr] Checking askama v0.12.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking loss-calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `investment_type` [INFO] [stdout] --> src/services/sina_finance.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | investment_type: &InvestmentType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `investment_type` [INFO] [stdout] --> src/services/sina_finance.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | investment_type: &InvestmentType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `investment_type` [INFO] [stdout] --> src/services/sina_finance.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | investment_type: &InvestmentType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price_by_date` is never used [INFO] [stdout] --> src/db/prices.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl PriceRepository { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_price_by_date( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `investment_id` and `created_at` are never read [INFO] [stdout] --> src/db/prices.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PriceWithTimestamp { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 79 | pub investment_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceWithTimestamp` 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: struct `Price` is never constructed [INFO] [stdout] --> src/models/mod.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price_for_date` is never used [INFO] [stdout] --> src/services/price_cache.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl PriceCacheService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn get_price_for_date( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_price_yahoo` is never used [INFO] [stdout] --> src/services/yahoo_finance.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn fetch_price_yahoo(symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_historical_prices` is never used [INFO] [stdout] --> src/services/yahoo_finance.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn fetch_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_timestamp` is never used [INFO] [stdout] --> src/utils/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn format_timestamp(timestamp: i64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_timestamp_to_chrono` is never used [INFO] [stdout] --> src/utils/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse_timestamp_to_chrono(timestamp: i64) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `investment_type` [INFO] [stdout] --> src/services/sina_finance.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | investment_type: &InvestmentType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_investment_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price_by_date` is never used [INFO] [stdout] --> src/db/prices.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl PriceRepository { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_price_by_date( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `investment_id` and `created_at` are never read [INFO] [stdout] --> src/db/prices.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PriceWithTimestamp { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 79 | pub investment_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceWithTimestamp` 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: struct `Price` is never constructed [INFO] [stdout] --> src/models/mod.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price_for_date` is never used [INFO] [stdout] --> src/services/price_cache.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl PriceCacheService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn get_price_for_date( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_price_yahoo` is never used [INFO] [stdout] --> src/services/yahoo_finance.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn fetch_price_yahoo(symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_historical_prices` is never used [INFO] [stdout] --> src/services/yahoo_finance.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn fetch_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_timestamp` is never used [INFO] [stdout] --> src/utils/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn format_timestamp(timestamp: i64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_timestamp_to_chrono` is never used [INFO] [stdout] --> src/utils/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse_timestamp_to_chrono(timestamp: i64) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "8a2024ec47c06640c77b473796a4672dd087751a0a7b5b3eaf977fcb9f9f5e2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a2024ec47c06640c77b473796a4672dd087751a0a7b5b3eaf977fcb9f9f5e2f", kill_on_drop: false }` [INFO] [stdout] 8a2024ec47c06640c77b473796a4672dd087751a0a7b5b3eaf977fcb9f9f5e2f