[INFO] cloning repository https://github.com/wangxuefeng2023/optionPricing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wangxuefeng2023/optionPricing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangxuefeng2023%2FoptionPricing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangxuefeng2023%2FoptionPricing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e068f903a090c6f477250b35e369a4c32d55c51 [INFO] testing wangxuefeng2023/optionPricing against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangxuefeng2023%2FoptionPricing" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 60% (1207/1992) Updating files: 61% (1216/1992) Updating files: 62% (1236/1992) Updating files: 63% (1255/1992) Updating files: 64% (1275/1992) Updating files: 65% (1295/1992) Updating files: 66% (1315/1992) Updating files: 67% (1335/1992) Updating files: 67% (1341/1992) Updating files: 68% (1355/1992) Updating files: 69% (1375/1992) Updating files: 70% (1395/1992) Updating files: 71% (1415/1992) Updating files: 72% (1435/1992) Updating files: 72% (1438/1992) Updating files: 73% (1455/1992) Updating files: 74% (1475/1992) Updating files: 75% (1494/1992) Updating files: 76% (1514/1992) Updating files: 77% (1534/1992) Updating files: 77% (1541/1992) Updating files: 78% (1554/1992) Updating files: 79% (1574/1992) Updating files: 80% (1594/1992) Updating files: 81% (1614/1992) Updating files: 82% (1634/1992) Updating files: 83% (1654/1992) Updating files: 84% (1674/1992) Updating files: 85% (1694/1992) Updating files: 86% (1714/1992) Updating files: 87% (1734/1992) Updating files: 88% (1753/1992) Updating files: 89% (1773/1992) Updating files: 90% (1793/1992) Updating files: 90% (1806/1992) Updating files: 91% (1813/1992) Updating files: 92% (1833/1992) Updating files: 93% (1853/1992) Updating files: 94% (1873/1992) Updating files: 95% (1893/1992) Updating files: 96% (1913/1992) Updating files: 97% (1933/1992) Updating files: 98% (1953/1992) Updating files: 99% (1973/1992) Updating files: 100% (1992/1992) Updating files: 100% (1992/1992), done. [INFO] started tweaking git repo https://github.com/wangxuefeng2023/optionPricing [INFO] finished tweaking git repo https://github.com/wangxuefeng2023/optionPricing [INFO] tweaked toml for git repo https://github.com/wangxuefeng2023/optionPricing written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wangxuefeng2023/optionPricing on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wangxuefeng2023/optionPricing 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e38f77b561b3c5729efab3f94a1e4592f524e9d593dfb3c0bd99afaa2b614397 [INFO] running `Command { std: "docker" "start" "-a" "e38f77b561b3c5729efab3f94a1e4592f524e9d593dfb3c0bd99afaa2b614397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e38f77b561b3c5729efab3f94a1e4592f524e9d593dfb3c0bd99afaa2b614397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e38f77b561b3c5729efab3f94a1e4592f524e9d593dfb3c0bd99afaa2b614397", kill_on_drop: false }` [INFO] [stdout] e38f77b561b3c5729efab3f94a1e4592f524e9d593dfb3c0bd99afaa2b614397 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7239984d61192ede940fe4ee0816ba0dbf3f30f2325a20958c2f19272cfd6b16 [INFO] running `Command { std: "docker" "start" "-a" "7239984d61192ede940fe4ee0816ba0dbf3f30f2325a20958c2f19272cfd6b16", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling simba v0.6.0 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling nalgebra v0.29.0 [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 tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling statrs v0.16.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling option_pricing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/models/mod.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stdout] 58 + prices[i] = s * u.powi(steps as i32 - i as i32) * d.powi(i as i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `optionType` should have a snake case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | optionType: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `option_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7m 36s [INFO] running `Command { std: "docker" "inspect" "7239984d61192ede940fe4ee0816ba0dbf3f30f2325a20958c2f19272cfd6b16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7239984d61192ede940fe4ee0816ba0dbf3f30f2325a20958c2f19272cfd6b16", kill_on_drop: false }` [INFO] [stdout] 7239984d61192ede940fe4ee0816ba0dbf3f30f2325a20958c2f19272cfd6b16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e04ac2c2793705cb028ebbf1b6157fcf6b2343e12a98b8694b62e24de17db0c [INFO] running `Command { std: "docker" "start" "-a" "5e04ac2c2793705cb028ebbf1b6157fcf6b2343e12a98b8694b62e24de17db0c", kill_on_drop: false }` [INFO] [stderr] Compiling option_pricing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/models/mod.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stdout] 58 + prices[i] = s * u.powi(steps as i32 - i as i32) * d.powi(i as i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `optionType` should have a snake case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | optionType: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `option_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "5e04ac2c2793705cb028ebbf1b6157fcf6b2343e12a98b8694b62e24de17db0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e04ac2c2793705cb028ebbf1b6157fcf6b2343e12a98b8694b62e24de17db0c", kill_on_drop: false }` [INFO] [stdout] 5e04ac2c2793705cb028ebbf1b6157fcf6b2343e12a98b8694b62e24de17db0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8359f78f9720da50204d3400483464faa1f07b0ad246b0b6920523919e01189a [INFO] running `Command { std: "docker" "start" "-a" "8359f78f9720da50204d3400483464faa1f07b0ad246b0b6920523919e01189a", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/models/mod.rs:58:32 [INFO] [stderr] | [INFO] [stderr] 58 | prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 58 - prices[i] = s * u.powi((steps as i32 - i as i32)) * d.powi(i as i32); [INFO] [stderr] 58 + prices[i] = s * u.powi(steps as i32 - i as i32) * d.powi(i as i32); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: structure field `optionType` should have a snake case name [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | optionType: String, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `option_type` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `option_pricing` (bin "option_pricing" test) generated 2 warnings (run `cargo fix --bin "option_pricing" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/option_pricing-ebab4674c3f1a535) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test models::tests::test_black_scholes_call ... ok [INFO] [stdout] test models::tests::test_monte_carlo_call ... ok [INFO] [stdout] test models::tests::test_crr_binomial_american_call ... ok [INFO] [stdout] test models::tests::test_crr_binomial_call ... ok [INFO] [stdout] test models::tests::test_digital_option_call ... ok [INFO] [stdout] test models::tests::test_barrier_option_mc_call_knock_in ... ok [INFO] [stdout] test models::tests::test_asian_arithmetic_mc_call ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8359f78f9720da50204d3400483464faa1f07b0ad246b0b6920523919e01189a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8359f78f9720da50204d3400483464faa1f07b0ad246b0b6920523919e01189a", kill_on_drop: false }` [INFO] [stdout] 8359f78f9720da50204d3400483464faa1f07b0ad246b0b6920523919e01189a