[INFO] cloning repository https://github.com/jhashi19/quant [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jhashi19/quant" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhashi19%2Fquant", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhashi19%2Fquant'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 952663e910a5d39897eed586bd9ab7b8e713f2c6 [INFO] checking jhashi19/quant against try#bf5ff6675cf10ce009ac02007b064a7cfc4509ac for pr-140558 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhashi19%2Fquant" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jhashi19/quant on toolchain bf5ff6675cf10ce009ac02007b064a7cfc4509ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jhashi19/quant [INFO] finished tweaking git repo https://github.com/jhashi19/quant [INFO] tweaked toml for git repo https://github.com/jhashi19/quant written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jhashi19/quant 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" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6138aefa27dd86d125d3e00cd20542f0b4a5c6cdf39ded039edd0981dec4acb8 [INFO] running `Command { std: "docker" "start" "-a" "6138aefa27dd86d125d3e00cd20542f0b4a5c6cdf39ded039edd0981dec4acb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6138aefa27dd86d125d3e00cd20542f0b4a5c6cdf39ded039edd0981dec4acb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6138aefa27dd86d125d3e00cd20542f0b4a5c6cdf39ded039edd0981dec4acb8", kill_on_drop: false }` [INFO] [stdout] 6138aefa27dd86d125d3e00cd20542f0b4a5c6cdf39ded039edd0981dec4acb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe26c999d3e33cd897312dadebf78502fe2add71884db29c9c3c59c31770c9b3 [INFO] running `Command { std: "docker" "start" "-a" "fe26c999d3e33cd897312dadebf78502fe2add71884db29c9c3c59c31770c9b3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling cc v1.1.37 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling rustix v0.38.39 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking lapack-sys v0.12.1 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Compiling ndarray v0.14.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking cblas-sys v0.1.4 [INFO] [stderr] Checking blas-src v0.6.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Compiling tar v0.4.43 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking lapack v0.17.0 [INFO] [stderr] Checking cauchy v0.3.0 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling ureq v2.10.1 [INFO] [stderr] Compiling openblas-build v0.10.9 [INFO] [stderr] Compiling openblas-src v0.10.9 [INFO] [stderr] Checking lax v0.1.0 [INFO] [stderr] Checking ndarray-linalg v0.13.1 [INFO] [stderr] Checking quant v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::analysis` [INFO] [stdout] --> src/hull_white/hw_lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::analysis; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::curve` [INFO] [stdout] --> src/hull_white/hw_lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::curve; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::tree` [INFO] [stdout] --> src/hull_white/hw_lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::tree; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/hull_white.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / /// Bermudan Swaptionの価格を計算する [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | /// キャリブレーションのためのマーケットデータ [INFO] [stdout] | |_________________________________________________^^ [INFO] [stdout] 16 | // 満期 [INFO] [stdout] 17 | let maturities = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0]; [INFO] [stdout] | ---------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::analysis` [INFO] [stdout] --> src/hull_white/hw_lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::analysis; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::curve` [INFO] [stdout] --> src/hull_white/hw_lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::curve; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::tree` [INFO] [stdout] --> src/hull_white/hw_lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::tree; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/hull_white.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / /// Bermudan Swaptionの価格を計算する [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | /// キャリブレーションのためのマーケットデータ [INFO] [stdout] | |_________________________________________________^^ [INFO] [stdout] 16 | // 満期 [INFO] [stdout] 17 | let maturities = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0]; [INFO] [stdout] | ---------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maturities` [INFO] [stdout] --> src/hull_white.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let maturities = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maturities` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strikes` [INFO] [stdout] --> src/hull_white.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let strikes = vec![0.005, 0.01, 0.015, 0.02, 0.025]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_strikes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `swap_dates` [INFO] [stdout] --> src/hull_white.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let swap_dates = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_swap_dates` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `market_prices` [INFO] [stdout] --> src/hull_white.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let market_prices = vec![ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_market_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_a` [INFO] [stdout] --> src/hull_white.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let init_a = 0.005; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_sigma` [INFO] [stdout] --> src/hull_white.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let init_sigma = 0.005; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_sigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Put` is never constructed [INFO] [stdout] --> src/bs/black_scholes.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum OptionType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 13 | Call, [INFO] [stdout] 14 | Put, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explicit_fdm_bs` is never used [INFO] [stdout] --> src/fdm/finite_difference_method.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn explicit_fdm_bs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptionType` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum OptionType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CapFloorType` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CapFloorType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CapFloorType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SwaptionType` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum SwaptionType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwaptionType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `df` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn df(curve: curve::Curve, t: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discount_bond_option` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn discount_bond_option( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discount_bond_option_given_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn discount_bond_option_given_vol( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dbo_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn dbo_vol(a: f64, sigma: f64, mat_u: f64, mat_o: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn capfloorlet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet_given_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn capfloorlet_given_vol( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn capfloorlet_vol(a: f64, sigma: f64, date_s: f64, date_e: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloor` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn capfloor( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloor_given_vols` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn capfloor_given_vols( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn swaption( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption_given_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn swaption_given_vol( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn swaption_vol( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coupons` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:207:4 [INFO] [stdout] | [INFO] [stdout] 207 | fn coupons(swap_dates: &Vec, strike: f64, curve: Curve) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coupon_bearing_bond` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn coupon_bearing_bond(swap_dates: &Vec, strike: f64, curve: Curve) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption_with_maturities` is never used [INFO] [stdout] --> src/hull_white/calibration.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn swaption_with_maturities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption_shifted_maturity` is never used [INFO] [stdout] --> src/hull_white/calibration.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn swaption_shifted_maturity( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_swap_dates` is never used [INFO] [stdout] --> src/hull_white/calibration.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn slice_swap_dates(maturity: f64, swap_dates: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swaption_with_strikes` is never used [INFO] [stdout] --> src/hull_white/calibration.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn swaption_with_strikes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Curve` is never used [INFO] [stdout] --> src/hull_white/curve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Curve { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Curve` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_curve` is never used [INFO] [stdout] --> src/hull_white/curve.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn match_curve(curve: Curve) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `df` is never used [INFO] [stdout] --> src/hull_white/curve.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn df(curve: Curve, t: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instantaneous_forward_rate` is never used [INFO] [stdout] --> src/hull_white/curve.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn instantaneous_forward_rate(curve: Curve, t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instantaneous_forward_rate_svensson` is never used [INFO] [stdout] --> src/hull_white/curve.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn instantaneous_forward_rate_svensson(t: f64, params: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `zero_rate_svensson` is never used [INFO] [stdout] --> src/hull_white/curve.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn zero_rate_svensson(t: f64, params: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ois_date` is never used [INFO] [stdout] --> src/hull_white/data.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_ois_date() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ois_rate` is never used [INFO] [stdout] --> src/hull_white/data.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_ois_rate() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_libor6m_date` is never used [INFO] [stdout] --> src/hull_white/data.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn get_libor6m_date() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_libor6m_rate` is never used [INFO] [stdout] --> src/hull_white/data.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_libor6m_rate() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_libor12m_date` is never used [INFO] [stdout] --> src/hull_white/data.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn get_libor12m_date() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_libor12m_rate` is never used [INFO] [stdout] --> src/hull_white/data.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_libor12m_rate() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HullWhite` is never constructed [INFO] [stdout] --> src/hull_white/hw_lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HullWhite { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HullWhite` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hull_white/hw_lib.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl HullWhite { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cubic_spline` is never used [INFO] [stdout] --> src/hull_white/interpolation.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn cubic_spline(dates: &Vec, rates: &Vec, target: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_up_equation` is never used [INFO] [stdout] --> src/hull_white/interpolation.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn set_up_equation(dates: &Vec, rates: &Vec) -> (Vec, Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_equation` is never used [INFO] [stdout] --> src/hull_white/interpolation.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn solve_equation( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `std_normal_cdf` is never used [INFO] [stdout] --> src/hull_white/math.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn std_normal_cdf(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_std_normal_cdf` is never used [INFO] [stdout] --> src/hull_white/math.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn inverse_std_normal_cdf(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wichura_inverse_normal_cdf` is never used [INFO] [stdout] --> src/hull_white/math.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn wichura_inverse_normal_cdf(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moro_inverse_normal_cdf` is never used [INFO] [stdout] --> src/hull_white/math.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn moro_inverse_normal_cdf(average: f64, std_dev: f64, x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moro_inverse_std_normal_cdf` is never used [INFO] [stdout] --> src/hull_white/math.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn moro_inverse_std_normal_cdf(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/hull_white/node.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hull_white/node.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn calc_fluctuation_mean(a: f64, rate: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn calc_fluctuation_var(a: f64, sigma: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn calc_transition_prob( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn calc_alpha( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn calc_prob_up(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn calc_prob_mid(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn calc_prob_down(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_transition_index_up(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_transition_index_mid(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_transition_index_down(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Newton` is never constructed [INFO] [stdout] --> src/hull_white/optimization.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Newton { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_root`, and `find_root_safe` are never used [INFO] [stdout] --> src/hull_white/optimization.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Newton { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn find_root(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn find_root_safe(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FnTypeLM` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 102 | type FnTypeLM = fn(f64, &[f64]) -> f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `levenberg_marquardt` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn levenberg_marquardt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_to_array` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn vec_to_array(vec: &Vec) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_error` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn calc_error( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_params` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn update_params( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_jacobian` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn calc_jacobian( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numerical_difference` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn numerical_difference(f: F, args: &Vec, idx: usize) -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numerical_difference_for_lm` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:249:4 [INFO] [stdout] | [INFO] [stdout] 249 | fn numerical_difference_for_lm(f: F, index: usize) -> impl Fn(f64, &[f64]) -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `derivative_funcs_numerical_difference_for_lm` is never used [INFO] [stdout] --> src/hull_white/optimization.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn derivative_funcs_numerical_difference_for_lm<'a, F>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/hull_white/tree.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tree` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hull_white/tree.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new(hw: HullWhite, time_vec: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn construct_base_tree(self) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn adjust_tree(self) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn get_a(&self, target: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn get_sigma(&self, target: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn get_piecewise_constant_value(val: &Vec, interval: &Vec, target: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn calc_rate_interval(sigma: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn create_node( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn calc_adjusting_param(nodes: &Vec, time_interval: f64, df: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | fn calc_arrow_debreu( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/hull_white/optimization.rs:309:26 [INFO] [stdout] | [INFO] [stdout] 309 | let f_deriv_x = |w: f64, v: &[f64]| -> f64 { 1.0 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/hull_white/optimization.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | let f_deriv_x = |w: f64, v: &[f64]| -> f64 { 1.0 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/hull_white/optimization.rs:311:34 [INFO] [stdout] | [INFO] [stdout] 311 | let f_deriv_z = |w: f64, v: &[f64]| -> f64 { w.powi(2) }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maturities` [INFO] [stdout] --> src/hull_white.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let maturities = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maturities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strikes` [INFO] [stdout] --> src/hull_white.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let strikes = vec![0.005, 0.01, 0.015, 0.02, 0.025]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_strikes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `swap_dates` [INFO] [stdout] --> src/hull_white.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let swap_dates = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_swap_dates` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `market_prices` [INFO] [stdout] --> src/hull_white.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let market_prices = vec![ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_market_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_a` [INFO] [stdout] --> src/hull_white.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let init_a = 0.005; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_sigma` [INFO] [stdout] --> src/hull_white.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let init_sigma = 0.005; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_sigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Put` is never constructed [INFO] [stdout] --> src/bs/black_scholes.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum OptionType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 13 | Call, [INFO] [stdout] 14 | Put, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explicit_fdm_bs` is never used [INFO] [stdout] --> src/fdm/finite_difference_method.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn explicit_fdm_bs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptionType` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum OptionType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CapFloorType` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum CapFloorType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CapFloorType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Receiver` is never constructed [INFO] [stdout] --> src/hull_white/analysis.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum SwaptionType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 26 | Payer, [INFO] [stdout] 27 | Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwaptionType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discount_bond_option` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn discount_bond_option( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discount_bond_option_given_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn discount_bond_option_given_vol( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dbo_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn dbo_vol(a: f64, sigma: f64, mat_u: f64, mat_o: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn capfloorlet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet_given_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn capfloorlet_given_vol( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloorlet_vol` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn capfloorlet_vol(a: f64, sigma: f64, date_s: f64, date_e: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloor` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn capfloor( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capfloor_given_vols` is never used [INFO] [stdout] --> src/hull_white/analysis.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn capfloor_given_vols( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Libor6M` and `Libor12M` are never constructed [INFO] [stdout] --> src/hull_white/curve.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Curve { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | Ois, [INFO] [stdout] 8 | Libor6M, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Libor12M, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Curve` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HullWhite` is never constructed [INFO] [stdout] --> src/hull_white/hw_lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HullWhite { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HullWhite` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hull_white/hw_lib.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl HullWhite { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/hull_white/node.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hull_white/node.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn calc_fluctuation_mean(a: f64, rate: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn calc_fluctuation_var(a: f64, sigma: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn calc_transition_prob( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn calc_alpha( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn calc_prob_up(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn calc_prob_mid(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn calc_prob_down(alpha: f64, rate_fluctuation_var: f64, next_rate_fluctuation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_transition_index_up(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_transition_index_mid(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_transition_index_down(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/hull_white/tree.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tree` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hull_white/tree.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new(hw: HullWhite, time_vec: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn construct_base_tree(self) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn adjust_tree(self) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn get_a(&self, target: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn get_sigma(&self, target: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn get_piecewise_constant_value(val: &Vec, interval: &Vec, target: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn calc_rate_interval(sigma: f64, time_interval: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn create_node( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn calc_adjusting_param(nodes: &Vec, time_interval: f64, df: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | fn calc_arrow_debreu( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.53s [INFO] running `Command { std: "docker" "inspect" "fe26c999d3e33cd897312dadebf78502fe2add71884db29c9c3c59c31770c9b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe26c999d3e33cd897312dadebf78502fe2add71884db29c9c3c59c31770c9b3", kill_on_drop: false }` [INFO] [stdout] fe26c999d3e33cd897312dadebf78502fe2add71884db29c9c3c59c31770c9b3