[INFO] cloning repository https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMathiasBjerggaard%2F2D-Edge-Released-Protein-Diffusion-Simulation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMathiasBjerggaard%2F2D-Edge-Released-Protein-Diffusion-Simulation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5eceed54c48f147cc13a7bb31df5a4341637814 [INFO] checking MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation against try#0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMathiasBjerggaard%2F2D-Edge-Released-Protein-Diffusion-Simulation" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation [INFO] finished tweaking git repo https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation [INFO] tweaked toml for git repo https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation on toolchain 0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MathiasBjerggaard/2D-Edge-Released-Protein-Diffusion-Simulation 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" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67d1dd975fbece007c1b68934965848ff109f19032fb0b1f2b2c39d34bd9cc95 [INFO] running `Command { std: "docker" "start" "-a" "67d1dd975fbece007c1b68934965848ff109f19032fb0b1f2b2c39d34bd9cc95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67d1dd975fbece007c1b68934965848ff109f19032fb0b1f2b2c39d34bd9cc95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67d1dd975fbece007c1b68934965848ff109f19032fb0b1f2b2c39d34bd9cc95", kill_on_drop: false }` [INFO] [stdout] 67d1dd975fbece007c1b68934965848ff109f19032fb0b1f2b2c39d34bd9cc95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70f5bee03aa2bb61153ce3e009951ba455f80ee3421fea38bc04868584403eb2 [INFO] running `Command { std: "docker" "start" "-a" "70f5bee03aa2bb61153ce3e009951ba455f80ee3421fea38bc04868584403eb2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking rand_distr v0.5.1 [INFO] [stderr] Checking Particles2D v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:80:51 [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] 80 + fn placenewdna(dna: &mut Vec>, i:usize)->Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:98:31 [INFO] [stdout] | [INFO] [stdout] 98 | fn placedna(dnanumber:usize)->(Vec>){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - fn placedna(dnanumber:usize)->(Vec>){ [INFO] [stdout] 98 + fn placedna(dnanumber:usize)->Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:80:51 [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 80 - fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] 80 + fn placenewdna(dna: &mut Vec>, i:usize)->Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:98:31 [INFO] [stdout] | [INFO] [stdout] 98 | fn placedna(dnanumber:usize)->(Vec>){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - fn placedna(dnanumber:usize)->(Vec>){ [INFO] [stdout] 98 + fn placedna(dnanumber:usize)->Vec> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:189:33 [INFO] [stdout] | [INFO] [stdout] 189 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:189:33 [INFO] [stdout] | [INFO] [stdout] 189 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | let angle = rng.gen::() * 2.0 * std::f64::consts::PI; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | let angle = rng.gen::() * 2.0 * std::f64::consts::PI; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:190:37 [INFO] [stdout] | [INFO] [stdout] 190 | let random_number = rng.gen::(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:190:37 [INFO] [stdout] | [INFO] [stdout] 190 | let random_number = rng.gen::(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_distr::Distribution` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand_distr::Distribution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `old_particles` is never read [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut old_particles = particles.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut done:usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn resetstatus(mut status: Vec, number: usize) -> Vec{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, _i:usize)->(Vec){ [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RUNS` [INFO] [stdout] | [INFO] [stdout] 80 - fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] 80 + fn placenewdna(dna: &mut Vec>, RUNS:usize)->(Vec){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dna` [INFO] [stdout] --> src/main.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | fn Placeparticles(number:usize, dna: &mut Vec>)->Vec>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dna` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/main.rs:204:43 [INFO] [stdout] | [INFO] [stdout] 204 | fn boundpercentfunction(status:&Vec, number:&usize)->i32{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_distr::Distribution` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand_distr::Distribution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `old_particles` is never read [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut old_particles = particles.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testboundpercent` is never used [INFO] [stdout] --> src/main.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn testboundpercent(status:&Vec, number:&usize)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Save` is never used [INFO] [stdout] --> src/main.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn Save(dna:&Vec>,particles:&Vec>, writer: &mut BufWriter,i:usize)-> Result<(), Box>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut done:usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | saveboundpercent(boundpercent, &mut writer2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = saveboundpercent(boundpercent, &mut writer2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Placeparticles` should have a snake case name [INFO] [stdout] --> src/main.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn Placeparticles(number:usize, dna: &mut Vec>)->Vec>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `placeparticles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Save` should have a snake case name [INFO] [stdout] --> src/main.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn Save(dna:&Vec>,particles:&Vec>, writer: &mut BufWriter,i:usize)-> Result<(), Box>{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `save` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | writeln!(writer, "Particles start"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 232 | let _ = writeln!(writer, "Particles start"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn resetstatus(mut status: Vec, number: usize) -> Vec{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 80 | fn placenewdna(dna: &mut Vec>, _i:usize)->(Vec){ [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RUNS` [INFO] [stdout] | [INFO] [stdout] 80 - fn placenewdna(dna: &mut Vec>, i:usize)->(Vec){ [INFO] [stdout] 80 + fn placenewdna(dna: &mut Vec>, RUNS:usize)->(Vec){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dna` [INFO] [stdout] --> src/main.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | fn Placeparticles(number:usize, dna: &mut Vec>)->Vec>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dna` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/main.rs:204:43 [INFO] [stdout] | [INFO] [stdout] 204 | fn boundpercentfunction(status:&Vec, number:&usize)->i32{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let mut particles = vec![vec![0.5, 0.5], vec![0.2, 0.2]]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let mut particles = vec![vec![0.5, 0.5], vec![0.2, 0.2]]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let mut status = vec![0, 0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 313 | let mut status = vec![0, 0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut status = vec![0, 0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | let mut particles = vec![vec![0.1, 0.1], vec![0.2, 0.2]]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let mut status = vec![0, 999999]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Save` is never used [INFO] [stdout] --> src/main.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn Save(dna:&Vec>,particles:&Vec>, writer: &mut BufWriter,i:usize)-> Result<(), Box>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | saveboundpercent(boundpercent, &mut writer2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = saveboundpercent(boundpercent, &mut writer2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Placeparticles` should have a snake case name [INFO] [stdout] --> src/main.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn Placeparticles(number:usize, dna: &mut Vec>)->Vec>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `placeparticles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Save` should have a snake case name [INFO] [stdout] --> src/main.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn Save(dna:&Vec>,particles:&Vec>, writer: &mut BufWriter,i:usize)-> Result<(), Box>{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `save` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | writeln!(writer, "Particles start"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 232 | let _ = writeln!(writer, "Particles start"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.21s [INFO] running `Command { std: "docker" "inspect" "70f5bee03aa2bb61153ce3e009951ba455f80ee3421fea38bc04868584403eb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70f5bee03aa2bb61153ce3e009951ba455f80ee3421fea38bc04868584403eb2", kill_on_drop: false }` [INFO] [stdout] 70f5bee03aa2bb61153ce3e009951ba455f80ee3421fea38bc04868584403eb2