[INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] fatal: write error: No space left on device [INFO] [stderr] fatal: fetch-pack: invalid index-pack output [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] error: failed to write new configuration file /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3/config.lock [INFO] [stderr] fatal: could not set 'core.repositoryformatversion' to '0' [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/commit-msg.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3/hooks/commit-msg.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [INFO] cloning repository https://github.com/ikurek/PEA-Projekt3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ikurek/PEA-Projekt3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f2041bbda198adb0bb828467da6db33ac3f77ed4 [INFO] checking ikurek/PEA-Projekt3 against master#f7b43542838f0a4a6cfdb17fbeadf45002042a77 for pr-138499 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fikurek%2FPEA-Projekt3" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ikurek/PEA-Projekt3 on toolchain f7b43542838f0a4a6cfdb17fbeadf45002042a77 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ikurek/PEA-Projekt3 [INFO] finished tweaking git repo https://github.com/ikurek/PEA-Projekt3 [INFO] tweaked toml for git repo https://github.com/ikurek/PEA-Projekt3 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ikurek/PEA-Projekt3 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" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tsplib v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3590da49f13de0e5a9bae0241e11e1ef2f3afee0b47e2f83c8eeec453ed0f21a [INFO] running `Command { std: "docker" "start" "-a" "3590da49f13de0e5a9bae0241e11e1ef2f3afee0b47e2f83c8eeec453ed0f21a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3590da49f13de0e5a9bae0241e11e1ef2f3afee0b47e2f83c8eeec453ed0f21a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3590da49f13de0e5a9bae0241e11e1ef2f3afee0b47e2f83c8eeec453ed0f21a", kill_on_drop: false }` [INFO] [stdout] 3590da49f13de0e5a9bae0241e11e1ef2f3afee0b47e2f83c8eeec453ed0f21a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b51efec319de19e76e46f16b0599cd7671d33f16092d99336d49f95586e96ed [INFO] running `Command { std: "docker" "start" "-a" "1b51efec319de19e76e46f16b0599cd7671d33f16092d99336d49f95586e96ed", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.35 [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Checking tsplib v0.1.0 [INFO] [stderr] Checking rand v0.3.19 [INFO] [stderr] Checking time v0.1.39 [INFO] [stderr] Checking genetic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:273:47 [INFO] [stdout] | [INFO] [stdout] 273 | value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 273 - value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] 273 + value = value + matrix[previous_node][permutation[(i as usize)] as usize]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:273:60 [INFO] [stdout] | [INFO] [stdout] 273 | value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 273 - value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] 273 + value = value + matrix[previous_node][(permutation[i as usize] as usize)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:275:37 [INFO] [stdout] | [INFO] [stdout] 275 | previous_node = permutation[(i as usize)] as usize; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 275 - previous_node = permutation[(i as usize)] as usize; [INFO] [stdout] 275 + previous_node = permutation[i as usize] as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:273:47 [INFO] [stdout] | [INFO] [stdout] 273 | value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 273 - value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] 273 + value = value + matrix[previous_node][permutation[(i as usize)] as usize]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:273:60 [INFO] [stdout] | [INFO] [stdout] 273 | value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 273 - value = value + matrix[previous_node][(permutation[(i as usize)] as usize)]; [INFO] [stdout] 273 + value = value + matrix[previous_node][(permutation[i as usize] as usize)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/genetic_algorithm.rs:275:37 [INFO] [stdout] | [INFO] [stdout] 275 | previous_node = permutation[(i as usize)] as usize; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 275 - previous_node = permutation[(i as usize)] as usize; [INFO] [stdout] 275 + previous_node = permutation[i as usize] as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_reader.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | Error::description(&error) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_reader.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | Error::description(&error) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_reader.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | Error::description(&error) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_reader.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | Error::description(&error) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_best_solution` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut current_best_solution: i32 = ::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parents_population` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut parents_population: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/genetic_algorithm.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | for iteration in 0..iterations { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | for i in 0..children_pairs_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_time_in_seconds` [INFO] [stdout] --> src/genetic_algorithm.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | max_time_in_seconds: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_time_in_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut number_of_cities: i32 = matrix.len() as i32; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut nodes: Vec = (0..number_of_cities).collect(); [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/genetic_algorithm.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut parents_population_size: i32 = population_size / 2; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `single_population_element` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut single_population_element: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | for i in 0..(population_size.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number_of_cities` [INFO] [stdout] --> src/genetic_algorithm.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | number_of_cities: &i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_of_cities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | for i in 0..population_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | for i in 0..parents_population_size.clone() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let mut path_value: i32 = permutation_value(&matrix, &permutation); [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/genetic_algorithm.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let mut max_path_value: i32 = ::max_value(); [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/genetic_algorithm.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut parents_pair: Vec> = generate_parents_pair(&parents_population); [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/genetic_algorithm.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | let mut saved_element: i32 = permutation[first_element_index]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_best_solution` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut current_best_solution: i32 = ::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parents_population` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut parents_population: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iteration` [INFO] [stdout] --> src/genetic_algorithm.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | for iteration in 0..iterations { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | for i in 0..children_pairs_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_time_in_seconds` [INFO] [stdout] --> src/genetic_algorithm.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | max_time_in_seconds: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_time_in_seconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:75:22 [INFO] [stdout] | [INFO] [stdout] 75 | fn solve_genetic(mut matrix: &mut Vec>) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_tabu_list` is never used [INFO] [stdout] --> src/print_utils.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn print_tabu_list(tabu_list: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result` is never used [INFO] [stdout] --> src/print_utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn print_result(result: i32, result_path: Vec, elapsed_time: i64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut number_of_cities: i32 = matrix.len() as i32; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut nodes: Vec = (0..number_of_cities).collect(); [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/genetic_algorithm.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut parents_population_size: i32 = population_size / 2; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `single_population_element` is never read [INFO] [stdout] --> src/genetic_algorithm.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut single_population_element: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | for i in 0..(population_size.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number_of_cities` [INFO] [stdout] --> src/genetic_algorithm.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | number_of_cities: &i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_of_cities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | for i in 0..population_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/genetic_algorithm.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | for i in 0..parents_population_size.clone() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genetic_algorithm.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let mut path_value: i32 = permutation_value(&matrix, &permutation); [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/genetic_algorithm.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let mut max_path_value: i32 = ::max_value(); [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/genetic_algorithm.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let mut parents_pair: Vec> = generate_parents_pair(&parents_population); [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/genetic_algorithm.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | let mut saved_element: i32 = permutation[first_element_index]; [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:75:22 [INFO] [stdout] | [INFO] [stdout] 75 | fn solve_genetic(mut matrix: &mut Vec>) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_tabu_list` is never used [INFO] [stdout] --> src/print_utils.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn print_tabu_list(tabu_list: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result` is never used [INFO] [stdout] --> src/print_utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn print_result(result: i32, result_path: Vec, elapsed_time: i64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "1b51efec319de19e76e46f16b0599cd7671d33f16092d99336d49f95586e96ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b51efec319de19e76e46f16b0599cd7671d33f16092d99336d49f95586e96ed", kill_on_drop: false }` [INFO] [stdout] 1b51efec319de19e76e46f16b0599cd7671d33f16092d99336d49f95586e96ed