[INFO] cloning repository https://github.com/ZCKun/option-process [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZCKun/option-process" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50af242a62796c68b49b2b0e94a0c0fef1e03ed2 [INFO] building ZCKun/option-process against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZCKun/option-process on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZCKun/option-process [INFO] finished tweaking git repo https://github.com/ZCKun/option-process [INFO] tweaked toml for git repo https://github.com/ZCKun/option-process written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/ZCKun/option-process already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07e0339f2f741a143b1e79741c2187bab509fec1e36ac7e9e0da19f95fab3279 [INFO] running `Command { std: "docker" "start" "-a" "07e0339f2f741a143b1e79741c2187bab509fec1e36ac7e9e0da19f95fab3279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07e0339f2f741a143b1e79741c2187bab509fec1e36ac7e9e0da19f95fab3279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07e0339f2f741a143b1e79741c2187bab509fec1e36ac7e9e0da19f95fab3279", kill_on_drop: false }` [INFO] [stdout] 07e0339f2f741a143b1e79741c2187bab509fec1e36ac7e9e0da19f95fab3279 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a93949b1d222ffb853d6aca8bb45c7074154f8b8da4183e48e4b6642cde1e8d9 [INFO] running `Command { std: "docker" "start" "-a" "a93949b1d222ffb853d6aca8bb45c7074154f8b8da4183e48e4b6642cde1e8d9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.70 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling const_fn v0.4.7 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling mysql v20.1.0 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling matrixmultiply v0.2.4 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling lru v0.6.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.26 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling io-enum v0.2.6 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling lexical v5.2.2 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling nix v0.19.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling alga v0.9.3 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rust_decimal v1.12.2 [INFO] [stderr] Compiling twox-hash v1.6.0 [INFO] [stderr] Compiling rand_distr v0.2.2 [INFO] [stderr] Compiling nalgebra v0.19.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling mysql_common v0.24.1 [INFO] [stderr] Compiling statrs v0.13.0 [INFO] [stderr] Compiling option-process-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SQRT_2` [INFO] [stdout] --> src/option_util.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::{PI, E, SQRT_2, FRAC_1_SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `black_scholes_calc`, `delta`, `effective_time_etf`, `implied_volatility`, `rho`, `theta` [INFO] [stdout] --> src/main.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::option_util::{implied_volatility, black_scholes_calc, theta, effective_time_etf, rho, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] 10 | delta, OptionUtil}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::serde::__private::ser::constrain` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use mysql::serde::__private::ser::constrain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e_t` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let e_t = 47721.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_e_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ou` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let ou = OptionUtil::new(s, k, t, r, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ou` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | for (k, v) in item.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (k, v) in item.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 54.53s [INFO] running `Command { std: "docker" "inspect" "a93949b1d222ffb853d6aca8bb45c7074154f8b8da4183e48e4b6642cde1e8d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a93949b1d222ffb853d6aca8bb45c7074154f8b8da4183e48e4b6642cde1e8d9", kill_on_drop: false }` [INFO] [stdout] a93949b1d222ffb853d6aca8bb45c7074154f8b8da4183e48e4b6642cde1e8d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb88b90177a7875aa17cf23088f95d9978373dcecaf473d42bfd9565ee9f49d1 [INFO] running `Command { std: "docker" "start" "-a" "bb88b90177a7875aa17cf23088f95d9978373dcecaf473d42bfd9565ee9f49d1", kill_on_drop: false }` [INFO] [stderr] Compiling option-process-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SQRT_2` [INFO] [stdout] --> src/option_util.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::{PI, E, SQRT_2, FRAC_1_SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `black_scholes_calc`, `delta`, `effective_time_etf`, `implied_volatility`, `rho`, `theta` [INFO] [stdout] --> src/main.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::option_util::{implied_volatility, black_scholes_calc, theta, effective_time_etf, rho, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] 10 | delta, OptionUtil}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql::serde::__private::ser::constrain` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use mysql::serde::__private::ser::constrain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e_t` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let e_t = 47721.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_e_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ou` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let ou = OptionUtil::new(s, k, t, r, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ou` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | for (k, v) in item.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (k, v) in item.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.41s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/option_process_rust-71b84348c42ea83e) [INFO] running `Command { std: "docker" "inspect" "bb88b90177a7875aa17cf23088f95d9978373dcecaf473d42bfd9565ee9f49d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb88b90177a7875aa17cf23088f95d9978373dcecaf473d42bfd9565ee9f49d1", kill_on_drop: false }` [INFO] [stdout] bb88b90177a7875aa17cf23088f95d9978373dcecaf473d42bfd9565ee9f49d1