[INFO] cloning repository https://github.com/attakdefand/small-equation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/attakdefand/small-equation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fattakdefand%2Fsmall-equation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fattakdefand%2Fsmall-equation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f226eeb67b10659b2ee65ad65a9b4c88bb147659 [INFO] building attakdefand/small-equation against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fattakdefand%2Fsmall-equation" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 47% (1378/2877) Updating files: 48% (1381/2877) Updating files: 49% (1410/2877) Updating files: 50% (1439/2877) Updating files: 51% (1468/2877) Updating files: 51% (1474/2877) Updating files: 52% (1497/2877) Updating files: 53% (1525/2877) Updating files: 54% (1554/2877) Updating files: 55% (1583/2877) Updating files: 55% (1610/2877) Updating files: 56% (1612/2877) Updating files: 57% (1640/2877) Updating files: 57% (1668/2877) Updating files: 58% (1669/2877) Updating files: 59% (1698/2877) Updating files: 60% (1727/2877) Updating files: 61% (1755/2877) Updating files: 62% (1784/2877) Updating files: 63% (1813/2877) Updating files: 63% (1837/2877) Updating files: 64% (1842/2877) Updating files: 65% (1871/2877) Updating files: 66% (1899/2877) Updating files: 67% (1928/2877) Updating files: 68% (1957/2877) Updating files: 69% (1986/2877) Updating files: 70% (2014/2877) Updating files: 70% (2036/2877) Updating files: 71% (2043/2877) Updating files: 72% (2072/2877) Updating files: 73% (2101/2877) Updating files: 74% (2129/2877) Updating files: 75% (2158/2877) Updating files: 76% (2187/2877) Updating files: 77% (2216/2877) Updating files: 78% (2245/2877) Updating files: 79% (2273/2877) Updating files: 80% (2302/2877) Updating files: 81% (2331/2877) Updating files: 82% (2360/2877) Updating files: 83% (2388/2877) Updating files: 84% (2417/2877) Updating files: 84% (2444/2877) Updating files: 85% (2446/2877) Updating files: 86% (2475/2877) Updating files: 87% (2503/2877) Updating files: 88% (2532/2877) Updating files: 89% (2561/2877) Updating files: 90% (2590/2877) Updating files: 91% (2619/2877) Updating files: 92% (2647/2877) Updating files: 93% (2676/2877) Updating files: 94% (2705/2877) Updating files: 95% (2734/2877) Updating files: 96% (2762/2877) Updating files: 97% (2791/2877) Updating files: 97% (2811/2877) Updating files: 98% (2820/2877) Updating files: 99% (2849/2877) Updating files: 100% (2877/2877) Updating files: 100% (2877/2877), done. [INFO] started tweaking git repo https://github.com/attakdefand/small-equation [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/attakdefand/small-equation [INFO] tweaked toml for git repo https://github.com/attakdefand/small-equation written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/attakdefand/small-equation on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/attakdefand/small-equation 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" "+58b1b3c5342a414c161338871f8004258ccef2a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] [stderr] Adding console_error_panic_hook v0.1.7 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25a1eab0dbd1890b81c0321d6e1de2b20647f602c753b26cd337ab5bece23044 [INFO] running `Command { std: "docker" "start" "-a" "25a1eab0dbd1890b81c0321d6e1de2b20647f602c753b26cd337ab5bece23044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25a1eab0dbd1890b81c0321d6e1de2b20647f602c753b26cd337ab5bece23044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25a1eab0dbd1890b81c0321d6e1de2b20647f602c753b26cd337ab5bece23044", kill_on_drop: false }` [INFO] [stdout] 25a1eab0dbd1890b81c0321d6e1de2b20647f602c753b26cd337ab5bece23044 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3452b37d18be7a78e449ca29bb35dccd3038ecd29f150e673c0cee4e97c359a [INFO] running `Command { std: "docker" "start" "-a" "f3452b37d18be7a78e449ca29bb35dccd3038ecd29f150e673c0cee4e97c359a", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling libsqlite3-sys v0.25.2 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling pq-sys v0.7.5 [INFO] [stderr] Compiling diesel_derives v2.3.3 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling postgres-protocol v0.6.9 [INFO] [stderr] Compiling simba v0.6.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling phf v0.13.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling postgres-types v0.2.11 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling downcast-rs v2.0.2 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Compiling tokio-postgres v0.7.15 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling dsl_auto_type v0.2.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling nalgebra v0.29.0 [INFO] [stderr] Compiling js-sys v0.3.81 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling rusqlite v0.28.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling refinery-core v0.8.16 [INFO] [stderr] Compiling web-sys v0.3.81 [INFO] [stderr] Compiling refinery-macros v0.8.16 [INFO] [stderr] Compiling diesel v2.3.2 [INFO] [stderr] Compiling refinery v0.8.16 [INFO] [stderr] Compiling statrs v0.16.1 [INFO] [stderr] Compiling trillion-dollar-equation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 184 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Database` [INFO] [stdout] --> src/models/mod.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub use database::{Database, DatabaseConfig, OptionCalculation, MarketData, DatabaseFactory}; [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: `DatabaseFactory` [INFO] [stdout] --> src/cli/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | DatabaseConfig, DatabaseFactory, OptionCalculation, MarketData [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config`, `calculate_put_iv`, `newton_raphson_put`, `bisection_put`, and `calculate_vega_put` are never used [INFO] [stdout] --> src/models/implied_volatility.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl ImpliedVolatilitySolver { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn with_config(config: SolverConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn calculate_put_iv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn newton_raphson_put( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn bisection_put( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | fn calculate_vega_put(&self, option: &EuropeanPutOption) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NumericalError` is never constructed [INFO] [stdout] --> src/models/binomial_model.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum BinomialModelError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | NumericalError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinomialModelError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DatabaseError` is never used [INFO] [stdout] --> src/models/database.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum DatabaseError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DatabaseResult` is never used [INFO] [stdout] --> src/models/database.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub type DatabaseResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Database` is never used [INFO] [stdout] --> src/models/database.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 111 | pub trait Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLiteDatabase` is never constructed [INFO] [stdout] --> src/models/database.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/database.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl SQLiteDatabase { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 140 | pub fn new(config: DatabaseConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLDatabase` is never constructed [INFO] [stdout] --> src/models/database.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/database.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 187 | impl PostgreSQLDatabase { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 188 | pub fn new(config: DatabaseConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseFactory` is never constructed [INFO] [stdout] --> src/models/database.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct DatabaseFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_database` is never used [INFO] [stdout] --> src/models/database.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl DatabaseFactory { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 234 | /// Create a database instance based on configuration [INFO] [stdout] 235 | pub fn create_database(config: &DatabaseConfig) -> DatabaseResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "f3452b37d18be7a78e449ca29bb35dccd3038ecd29f150e673c0cee4e97c359a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3452b37d18be7a78e449ca29bb35dccd3038ecd29f150e673c0cee4e97c359a", kill_on_drop: false }` [INFO] [stdout] f3452b37d18be7a78e449ca29bb35dccd3038ecd29f150e673c0cee4e97c359a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 736fda9fbdf4f97ce9553d2482d6744f8305c4910b62743876c19af97284dcc2 [INFO] running `Command { std: "docker" "start" "-a" "736fda9fbdf4f97ce9553d2482d6744f8305c4910b62743876c19af97284dcc2", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rusqlite v0.28.0 [INFO] [stderr] Compiling refinery-core v0.8.16 [INFO] [stderr] Compiling criterion v0.4.0 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling refinery-macros v0.8.16 [INFO] [stderr] Compiling postgres-protocol v0.6.9 [INFO] [stderr] Compiling nalgebra v0.29.0 [INFO] [stderr] Compiling postgres-types v0.2.11 [INFO] [stderr] Compiling tokio-postgres v0.7.15 [INFO] [stderr] Compiling refinery v0.8.16 [INFO] [stderr] Compiling statrs v0.16.1 [INFO] [stderr] Compiling trillion-dollar-equation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 184 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 184 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsianMonteCarlo`, `BarrierMonteCarlo`, `BinomialGreeks`, and `VarianceReducedMonteCarlo` [INFO] [stdout] --> tests/integration_tests.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | AmericanOption, EuropeanOption, BinomialGreeks, BinomialConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | EuropeanMonteCarlo, AsianMonteCarlo, BarrierMonteCarlo, VarianceReducedMonteCarlo, MonteCarloConfig [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: `Database` [INFO] [stdout] --> src/models/mod.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub use database::{Database, DatabaseConfig, OptionCalculation, MarketData, DatabaseFactory}; [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: `DatabaseFactory` [INFO] [stdout] --> src/cli/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | DatabaseConfig, DatabaseFactory, OptionCalculation, MarketData [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> examples/database_example.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let db = DatabaseFactory::create_database(&config)?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Database` [INFO] [stdout] --> src/models/mod.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub use database::{Database, DatabaseConfig, OptionCalculation, MarketData, DatabaseFactory}; [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: `DatabaseFactory` [INFO] [stdout] --> src/cli/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | DatabaseConfig, DatabaseFactory, OptionCalculation, MarketData [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config`, `calculate_put_iv`, `newton_raphson_put`, `bisection_put`, and `calculate_vega_put` are never used [INFO] [stdout] --> src/models/implied_volatility.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl ImpliedVolatilitySolver { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn with_config(config: SolverConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn calculate_put_iv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn newton_raphson_put( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn bisection_put( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | fn calculate_vega_put(&self, option: &EuropeanPutOption) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NumericalError` is never constructed [INFO] [stdout] --> src/models/binomial_model.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum BinomialModelError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | NumericalError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinomialModelError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `QueryError` and `MigrationError` are never constructed [INFO] [stdout] --> src/models/database.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum DatabaseError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 15 | ConnectionError(String), [INFO] [stdout] 16 | QueryError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | MigrationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/models/database.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub trait Database { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 112 | /// Initialize the database connection [INFO] [stdout] 113 | fn connect(&self) -> DatabaseResult<()>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn run_migrations(&self) -> DatabaseResult<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn store_option_calculation(&self, calculation: &OptionCalculation) -> DatabaseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn get_option_calculation(&self, id: i32) -> DatabaseResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn store_market_data(&self, data: &MarketData) -> DatabaseResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn get_market_data(&self, symbol: &str, start_date: &str, end_date: &str) -> DatabaseResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn disconnect(&self) -> DatabaseResult<()>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 136 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/models/database.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 184 | config: DatabaseConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config`, `calculate_put_iv`, `newton_raphson_put`, `bisection_put`, and `calculate_vega_put` are never used [INFO] [stdout] --> src/models/implied_volatility.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl ImpliedVolatilitySolver { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn with_config(config: SolverConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn calculate_put_iv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn newton_raphson_put( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn bisection_put( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | fn calculate_vega_put(&self, option: &EuropeanPutOption) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NumericalError` is never constructed [INFO] [stdout] --> src/models/binomial_model.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum BinomialModelError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | NumericalError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinomialModelError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DatabaseError` is never used [INFO] [stdout] --> src/models/database.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum DatabaseError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DatabaseResult` is never used [INFO] [stdout] --> src/models/database.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub type DatabaseResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Database` is never used [INFO] [stdout] --> src/models/database.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 111 | pub trait Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SQLiteDatabase` is never constructed [INFO] [stdout] --> src/models/database.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct SQLiteDatabase { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/database.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl SQLiteDatabase { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 140 | pub fn new(config: DatabaseConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLDatabase` is never constructed [INFO] [stdout] --> src/models/database.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct PostgreSQLDatabase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/database.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 187 | impl PostgreSQLDatabase { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 188 | pub fn new(config: DatabaseConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseFactory` is never constructed [INFO] [stdout] --> src/models/database.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct DatabaseFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_database` is never used [INFO] [stdout] --> src/models/database.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl DatabaseFactory { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 234 | /// Create a database instance based on configuration [INFO] [stdout] 235 | pub fn create_database(config: &DatabaseConfig) -> DatabaseResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 38.45s [INFO] running `Command { std: "docker" "inspect" "736fda9fbdf4f97ce9553d2482d6744f8305c4910b62743876c19af97284dcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "736fda9fbdf4f97ce9553d2482d6744f8305c4910b62743876c19af97284dcc2", kill_on_drop: false }` [INFO] [stdout] 736fda9fbdf4f97ce9553d2482d6744f8305c4910b62743876c19af97284dcc2