[INFO] cloning repository https://github.com/whodatbo1/GA_FJSP [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whodatbo1/GA_FJSP" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhodatbo1%2FGA_FJSP", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhodatbo1%2FGA_FJSP'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 591a8c5625eee739ddc530942c89cbb5f135d045 [INFO] testing whodatbo1/GA_FJSP against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhodatbo1%2FGA_FJSP" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/whodatbo1/GA_FJSP on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/whodatbo1/GA_FJSP [INFO] finished tweaking git repo https://github.com/whodatbo1/GA_FJSP [INFO] tweaked toml for git repo https://github.com/whodatbo1/GA_FJSP written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/whodatbo1/GA_FJSP 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49f1f5133b9bf472f6df280af1fa256a436f96fcd14e540f1445984eef2eb58f [INFO] running `Command { std: "docker" "start" "-a" "49f1f5133b9bf472f6df280af1fa256a436f96fcd14e540f1445984eef2eb58f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49f1f5133b9bf472f6df280af1fa256a436f96fcd14e540f1445984eef2eb58f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49f1f5133b9bf472f6df280af1fa256a436f96fcd14e540f1445984eef2eb58f", kill_on_drop: false }` [INFO] [stdout] 49f1f5133b9bf472f6df280af1fa256a436f96fcd14e540f1445984eef2eb58f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41f835131ff71a7ffed6e34ace37621e0dfe4a5fa31f6411755873410cae9e5b [INFO] running `Command { std: "docker" "start" "-a" "41f835131ff71a7ffed6e34ace37621e0dfe4a5fa31f6411755873410cae9e5b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling once_cell v1.15.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling radium v0.3.0 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling bitvec v0.17.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling aho-corasick v0.7.19 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling shuffle v0.1.7 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling geneticAlgorithmFJSP v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `decode_optimal` and `encode_schedule` [INFO] [stdout] --> src/main.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::encode_decode::{decode_optimal, decode_simple, encode_schedule}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/genetic_operations.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_random_schedule_encoding` [INFO] [stdout] --> src/population.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::schedule::{generate_random_schedule_encoding, Schedule}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::decode_simple` [INFO] [stdout] --> src/schedule.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::decode_simple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `index` is assigned to, but never used [INFO] [stdout] --> src/instance.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let mut index: i32 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_index` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nr_machines` is assigned to, but never used [INFO] [stdout] --> src/python_instance_decoder.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut nr_machines: i32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nr_machines` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `machines` is assigned to, but never used [INFO] [stdout] --> src/python_instance_decoder.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut machines: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_machines` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nr_machines` is never read [INFO] [stdout] --> src/python_instance_decoder.rs:31:34 [INFO] [stdout] | [INFO] [stdout] 31 | "nr_machines" => nr_machines = value.parse::().unwrap(), [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 `machines` is never read [INFO] [stdout] --> src/python_instance_decoder.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | "machines" => machines = parse_array_from_str::(value).expect("Error parsing machines"), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/python_instance_decoder.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | fn parse_orders(orders_string: &str, mut orders: &mut HashMap) { [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/python_instance_decoder.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let mut trimmed = value.clone().trim(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/schedule.rs:66:28 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/utils.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let x = distribution.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr_instances` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let nr_instances = 20; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `python_instance` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let python_instance = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_python_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `product` and `duration` are never read [INFO] [stdout] --> src/encode_decode.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DecodedOperation { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | product: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | duration: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DecodedOperation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_simple` is never used [INFO] [stdout] --> src/encode_decode.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode_simple(schedule: &Schedule, instance: &Instance) -> DecodedSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/generate_instances.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct ChangeOverTime { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 9 | index: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChangeOverTime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_all_instances` is never used [INFO] [stdout] --> src/generate_instances.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn generate_all_instances(instance_constants: &InstanceConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/schedule.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Schedule { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/python_instance_decoder.rs:120:28 [INFO] [stdout] | [INFO] [stdout] 120 | let mut trimmed = value.clone().trim(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.36s [INFO] running `Command { std: "docker" "inspect" "41f835131ff71a7ffed6e34ace37621e0dfe4a5fa31f6411755873410cae9e5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f835131ff71a7ffed6e34ace37621e0dfe4a5fa31f6411755873410cae9e5b", kill_on_drop: false }` [INFO] [stdout] 41f835131ff71a7ffed6e34ace37621e0dfe4a5fa31f6411755873410cae9e5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47002576a7e87a47e5a664ef19d110a71cc0786cecd97721e9138527df7bf26f [INFO] running `Command { std: "docker" "start" "-a" "47002576a7e87a47e5a664ef19d110a71cc0786cecd97721e9138527df7bf26f", kill_on_drop: false }` [INFO] [stderr] Compiling geneticAlgorithmFJSP v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `decode_optimal` and `encode_schedule` [INFO] [stdout] --> src/main.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::encode_decode::{decode_optimal, decode_simple, encode_schedule}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/genetic_operations.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_random_schedule_encoding` [INFO] [stdout] --> src/population.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::schedule::{generate_random_schedule_encoding, Schedule}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::decode_simple` [INFO] [stdout] --> src/schedule.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::decode_simple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `index` is assigned to, but never used [INFO] [stdout] --> src/instance.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let mut index: i32 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_index` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nr_machines` is assigned to, but never used [INFO] [stdout] --> src/python_instance_decoder.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut nr_machines: i32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nr_machines` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `machines` is assigned to, but never used [INFO] [stdout] --> src/python_instance_decoder.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut machines: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_machines` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nr_machines` is never read [INFO] [stdout] --> src/python_instance_decoder.rs:31:34 [INFO] [stdout] | [INFO] [stdout] 31 | "nr_machines" => nr_machines = value.parse::().unwrap(), [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 `machines` is never read [INFO] [stdout] --> src/python_instance_decoder.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | "machines" => machines = parse_array_from_str::(value).expect("Error parsing machines"), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/python_instance_decoder.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | fn parse_orders(orders_string: &str, mut orders: &mut HashMap) { [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/python_instance_decoder.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let mut trimmed = value.clone().trim(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/schedule.rs:66:28 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/utils.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let x = distribution.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nr_instances` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let nr_instances = 20; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `python_instance` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let python_instance = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_python_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `product` and `duration` are never read [INFO] [stdout] --> src/encode_decode.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DecodedOperation { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | product: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | duration: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DecodedOperation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_simple` is never used [INFO] [stdout] --> src/encode_decode.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode_simple(schedule: &Schedule, instance: &Instance) -> DecodedSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/generate_instances.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct ChangeOverTime { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 9 | index: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChangeOverTime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_all_instances` is never used [INFO] [stdout] --> src/generate_instances.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn generate_all_instances(instance_constants: &InstanceConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/schedule.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Schedule { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/python_instance_decoder.rs:120:28 [INFO] [stdout] | [INFO] [stdout] 120 | let mut trimmed = value.clone().trim(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "47002576a7e87a47e5a664ef19d110a71cc0786cecd97721e9138527df7bf26f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47002576a7e87a47e5a664ef19d110a71cc0786cecd97721e9138527df7bf26f", kill_on_drop: false }` [INFO] [stdout] 47002576a7e87a47e5a664ef19d110a71cc0786cecd97721e9138527df7bf26f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 122aea4c28bbd628e4faf795210ca13faa9ea654aeff9019678b1d092f889938 [INFO] running `Command { std: "docker" "start" "-a" "122aea4c28bbd628e4faf795210ca13faa9ea654aeff9019678b1d092f889938", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `decode_optimal` and `encode_schedule` [INFO] [stderr] --> src/main.rs:1:28 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::encode_decode::{decode_optimal, decode_simple, encode_schedule}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::Rng` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use rand::Rng; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/main.rs:10:17 [INFO] [stderr] | [INFO] [stderr] 10 | use std::time::{Duration, Instant}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq::SliceRandom` [INFO] [stderr] --> src/genetic_operations.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use rand::seq::SliceRandom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `generate_random_schedule_encoding` [INFO] [stderr] --> src/population.rs:3:23 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::schedule::{generate_random_schedule_encoding, Schedule}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::decode_simple` [INFO] [stderr] --> src/schedule.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::decode_simple; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `index` is assigned to, but never used [INFO] [stderr] --> src/instance.rs:85:17 [INFO] [stderr] | [INFO] [stderr] 85 | let mut index: i32 = 0; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_index` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `nr_machines` is assigned to, but never used [INFO] [stderr] --> src/python_instance_decoder.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | let mut nr_machines: i32; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_nr_machines` instead [INFO] [stderr] [INFO] [stderr] warning: variable `machines` is assigned to, but never used [INFO] [stderr] --> src/python_instance_decoder.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | let mut machines: Vec = Vec::new(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_machines` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `nr_machines` is never read [INFO] [stderr] --> src/python_instance_decoder.rs:31:34 [INFO] [stderr] | [INFO] [stderr] 31 | "nr_machines" => nr_machines = value.parse::().unwrap(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `machines` is never read [INFO] [stderr] --> src/python_instance_decoder.rs:34:31 [INFO] [stderr] | [INFO] [stderr] 34 | "machines" => machines = parse_array_from_str::(value).expect("Error parsing machines"), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/python_instance_decoder.rs:56:38 [INFO] [stderr] | [INFO] [stderr] 56 | fn parse_orders(orders_string: &str, mut orders: &mut HashMap) { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/python_instance_decoder.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | let mut trimmed = value.clone().trim(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `instance` [INFO] [stderr] --> src/schedule.rs:66:28 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/utils.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let x = distribution.len(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nr_instances` [INFO] [stderr] --> src/main.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let nr_instances = 20; [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_instances` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `python_instance` [INFO] [stderr] --> src/main.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | let python_instance = [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_python_instance` [INFO] [stderr] [INFO] [stderr] warning: fields `product` and `duration` are never read [INFO] [stderr] --> src/encode_decode.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct DecodedOperation { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | product: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 15 | duration: i32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DecodedOperation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `decode_simple` is never used [INFO] [stderr] --> src/encode_decode.rs:110:8 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn decode_simple(schedule: &Schedule, instance: &Instance) -> DecodedSchedule { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `index` is never read [INFO] [stderr] --> src/generate_instances.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | struct ChangeOverTime { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] 9 | index: i32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ChangeOverTime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `generate_all_instances` is never used [INFO] [stderr] --> src/generate_instances.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn generate_all_instances(instance_constants: &InstanceConstants, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_valid` is never used [INFO] [stderr] --> src/schedule.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl Schedule { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 66 | pub fn is_valid(&self, instance: &Instance) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/python_instance_decoder.rs:120:28 [INFO] [stderr] | [INFO] [stderr] 120 | let mut trimmed = value.clone().trim(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `geneticAlgorithmFJSP` (bin "geneticAlgorithmFJSP" test) generated 23 warnings (run `cargo fix --bin "geneticAlgorithmFJSP" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/geneticAlgorithmFJSP-47ad29d5f395ed4c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "122aea4c28bbd628e4faf795210ca13faa9ea654aeff9019678b1d092f889938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "122aea4c28bbd628e4faf795210ca13faa9ea654aeff9019678b1d092f889938", kill_on_drop: false }` [INFO] [stdout] 122aea4c28bbd628e4faf795210ca13faa9ea654aeff9019678b1d092f889938