[INFO] updating cached repository https://github.com/Akavall/Simulations-in-Rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9952c478819ea1e8fe827c5de337e40e0e0f5df0 [INFO] checking Akavall/Simulations-in-Rust against master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkavall%2FSimulations-in-Rust" "/workspace/builds/worker-5/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Akavall/Simulations-in-Rust on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/Akavall/Simulations-in-Rust [INFO] finished tweaking git repo https://github.com/Akavall/Simulations-in-Rust [INFO] tweaked toml for git repo https://github.com/Akavall/Simulations-in-Rust written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/Akavall/Simulations-in-Rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-5/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 89740db458387879de9f69aa0eb8844b74e2c0b6c971df313ebfa3023921797a [INFO] running `"docker" "start" "-a" "89740db458387879de9f69aa0eb8844b74e2c0b6c971df313ebfa3023921797a"` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking simulation v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `num::traits::Float` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use num::traits::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/math_tools.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | for i in (1..(n+1)) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | for _ in (0..n_iterations) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:21:14 [INFO] [stderr] | [INFO] [stderr] 21 | for i in (2..(n_turns * 2)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:37:14 [INFO] [stderr] | [INFO] [stderr] 37 | for _ in (0..n_iterations) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/analytics.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | for i in (1..(n_turns + 1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/analytics.rs:16:32 [INFO] [stderr] | [INFO] [stderr] 16 | let catalan = calc_catalan((n-1)); [INFO] [stderr] | ^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/analytics_combs.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | for i in (1..(n_turns + 1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused import: `num::traits::Float` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use num::traits::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/math_tools.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | for i in (1..(n+1)) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | for _ in (0..n_iterations) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:21:14 [INFO] [stderr] | [INFO] [stderr] 21 | for i in (2..(n_turns * 2)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/simulation_part.rs:37:14 [INFO] [stderr] | [INFO] [stderr] 37 | for _ in (0..n_iterations) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/analytics.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | for i in (1..(n_turns + 1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/analytics.rs:16:32 [INFO] [stderr] | [INFO] [stderr] 16 | let catalan = calc_catalan((n-1)); [INFO] [stderr] | ^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/analytics_combs.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | for i in (1..(n_turns + 1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | for i in 0..(n * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_turns_float` [INFO] [stderr] --> src/analytics.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let n_turns_float = n_turns as f64; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_turns_float` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_turns_float` [INFO] [stderr] --> src/analytics_combs.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let n_turns_float = n_turns as f64; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_turns_float` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_f64` [INFO] [stderr] --> src/analytics_combs.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let n_f64 = n as f64; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_n_f64` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | for i in 0..(n_1 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | for i in 0..(n_2 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | for i in 0..(n_1 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | for i in 0..(n_2 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_conv_dist` [INFO] [stderr] --> src/simulation_part.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn gen_conv_dist(prob_down: f64, n_turns: i32, n_iterations: i32) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_conv_one_run` [INFO] [stderr] --> src/simulation_part.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn gen_conv_one_run(prob_down: f64, n_turns: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_expected_crosses` [INFO] [stderr] --> src/simulation_part.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn gen_expected_crosses(prob_down: f64, n_turns: i32, n_iterations: i32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_n_convs_one_run` [INFO] [stderr] --> src/simulation_part.rs:43:8 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn gen_n_convs_one_run(prob_down: f64, n_turns: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | for i in 0..(n * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_turns_float` [INFO] [stderr] --> src/analytics.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let n_turns_float = n_turns as f64; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_turns_float` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_turns_float` [INFO] [stderr] --> src/analytics_combs.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let n_turns_float = n_turns as f64; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_turns_float` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_f64` [INFO] [stderr] --> src/analytics_combs.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let n_f64 = n as f64; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_n_f64` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | for i in 0..(n_1 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | for i in 0..(n_2 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | for i in 0..n_simulations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | for i in 0..(n_1 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/simulation_combs_w_break.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | for i in 0..(n_2 * 2) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_conv_dist` [INFO] [stderr] --> src/simulation_part.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn gen_conv_dist(prob_down: f64, n_turns: i32, n_iterations: i32) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_conv_one_run` [INFO] [stderr] --> src/simulation_part.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn gen_conv_one_run(prob_down: f64, n_turns: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_expected_crosses` [INFO] [stderr] --> src/simulation_part.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn gen_expected_crosses(prob_down: f64, n_turns: i32, n_iterations: i32) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gen_n_convs_one_run` [INFO] [stderr] --> src/simulation_part.rs:43:8 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn gen_n_convs_one_run(prob_down: f64, n_turns: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 23 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.73s [INFO] running `"docker" "inspect" "89740db458387879de9f69aa0eb8844b74e2c0b6c971df313ebfa3023921797a"` [INFO] running `"docker" "rm" "-f" "89740db458387879de9f69aa0eb8844b74e2c0b6c971df313ebfa3023921797a"` [INFO] [stdout] 89740db458387879de9f69aa0eb8844b74e2c0b6c971df313ebfa3023921797a