[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] checking whodatbo1/GA_FJSP against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhodatbo1%2FGA_FJSP" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/whodatbo1/GA_FJSP on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-7-tc1/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfe7778b8e35bcb5b42ca1bc9e24998feac048a41b02e0cc541699e50350b19d [INFO] running `Command { std: "docker" "start" "-a" "bfe7778b8e35bcb5b42ca1bc9e24998feac048a41b02e0cc541699e50350b19d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfe7778b8e35bcb5b42ca1bc9e24998feac048a41b02e0cc541699e50350b19d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfe7778b8e35bcb5b42ca1bc9e24998feac048a41b02e0cc541699e50350b19d", kill_on_drop: false }` [INFO] [stdout] bfe7778b8e35bcb5b42ca1bc9e24998feac048a41b02e0cc541699e50350b19d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c099560e9c902c0e208f8616bed24c0e661ae37be7c2fb05fa231dd22a05389 [INFO] running `Command { std: "docker" "start" "-a" "4c099560e9c902c0e208f8616bed24c0e661ae37be7c2fb05fa231dd22a05389", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking radium v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Checking crossbeam-utils v0.8.11 [INFO] [stderr] Checking bitvec v0.17.4 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Checking crossbeam-epoch v0.9.10 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking rayon-core v1.9.3 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rayon v1.5.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking shuffle v0.1.7 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking geneticAlgorithmFJSP v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `decode_optimal`, `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: unused imports: `decode_optimal`, `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] [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: 23 warnings emitted [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] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.17s [INFO] running `Command { std: "docker" "inspect" "4c099560e9c902c0e208f8616bed24c0e661ae37be7c2fb05fa231dd22a05389", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c099560e9c902c0e208f8616bed24c0e661ae37be7c2fb05fa231dd22a05389", kill_on_drop: false }` [INFO] [stdout] 4c099560e9c902c0e208f8616bed24c0e661ae37be7c2fb05fa231dd22a05389