[INFO] cloning repository https://github.com/menixator/biocomputation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/menixator/biocomputation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmenixator%2Fbiocomputation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmenixator%2Fbiocomputation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fce4c70f5865d933893abf7751e20b28ec7e3fd5 [INFO] checking menixator/biocomputation against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmenixator%2Fbiocomputation" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/menixator/biocomputation 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/menixator/biocomputation [INFO] finished tweaking git repo https://github.com/menixator/biocomputation [INFO] tweaked toml for git repo https://github.com/menixator/biocomputation written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/menixator/biocomputation 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 55d1501ca35f276ed150fe49eb82b1e4057cfe34a900f06d628b98856ac76eaf [INFO] running `Command { std: "docker" "start" "-a" "55d1501ca35f276ed150fe49eb82b1e4057cfe34a900f06d628b98856ac76eaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55d1501ca35f276ed150fe49eb82b1e4057cfe34a900f06d628b98856ac76eaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55d1501ca35f276ed150fe49eb82b1e4057cfe34a900f06d628b98856ac76eaf", kill_on_drop: false }` [INFO] [stdout] 55d1501ca35f276ed150fe49eb82b1e4057cfe34a900f06d628b98856ac76eaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2d20ed98d4f6941950b81d897bfe3b6d6afb0b37970ee4d50edf7423d6df8646 [INFO] running `Command { std: "docker" "start" "-a" "2d20ed98d4f6941950b81d897bfe3b6d6afb0b37970ee4d50edf7423d6df8646", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling structopt-derive v0.4.10 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking structopt v0.3.17 [INFO] [stderr] Checking biocomputation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/candidate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/crossover.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/ga_spec.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/mutation.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dataitem::DataItem` [INFO] [stdout] --> src/population.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dataitem::DataItem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/population.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/rule.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/rule.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, Debug, Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/rule.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::candidate::Candidate` [INFO] [stdout] --> src/selection.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::candidate::Candidate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/selection.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CrossoverStrategyCommonOptions`, `CrossoverStrategy`, `MatchupStrategy`, `MatingStrategy`, `MirroringStrategy` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | CrossoverStrategy, CrossoverStrategyCommonOptions, MatchupStrategy, MatingStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | MirroringStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MutationStrategyCommonOptions`, `MutationStrategyVariant`, `MutationStrategy` [INFO] [stdout] --> src/main.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | use mutation::{MutationStrategy, MutationStrategyCommonOptions, MutationStrategyVariant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GaSpec` [INFO] [stdout] --> src/main.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | use ga_spec::{CalculatedSpecs, GaSpec, GaSpecInput}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DuplicateHandlingStrategy`, `RouletteSelection`, `SelectionStrategyCommonOptions`, `SelectionStrategyVariant`, `SelectionStrategy`, `TournamentSelection` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | DuplicateHandlingStrategy, RouletteSelection, Selection, SelectionStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | SelectionStrategyCommonOptions, SelectionStrategyVariant, TournamentSelection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/candidate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/crossover.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/ga_spec.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/mutation.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dataitem::DataItem` [INFO] [stdout] --> src/population.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dataitem::DataItem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/population.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/rule.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/rule.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, Debug, Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/rule.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::candidate::Candidate` [INFO] [stdout] --> src/selection.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::candidate::Candidate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/selection.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CrossoverStrategyCommonOptions`, `CrossoverStrategy`, `MatchupStrategy`, `MatingStrategy`, `MirroringStrategy` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | CrossoverStrategy, CrossoverStrategyCommonOptions, MatchupStrategy, MatingStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | MirroringStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MutationStrategyCommonOptions`, `MutationStrategyVariant`, `MutationStrategy` [INFO] [stdout] --> src/main.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | use mutation::{MutationStrategy, MutationStrategyCommonOptions, MutationStrategyVariant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GaSpec` [INFO] [stdout] --> src/main.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | use ga_spec::{CalculatedSpecs, GaSpec, GaSpecInput}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DuplicateHandlingStrategy`, `RouletteSelection`, `SelectionStrategyCommonOptions`, `SelectionStrategyVariant`, `SelectionStrategy`, `TournamentSelection` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | DuplicateHandlingStrategy, RouletteSelection, Selection, SelectionStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | SelectionStrategyCommonOptions, SelectionStrategyVariant, TournamentSelection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Selection` [INFO] [stdout] --> src/main.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | DuplicateHandlingStrategy, RouletteSelection, Selection, SelectionStrategy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Selection` [INFO] [stdout] --> src/main.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | DuplicateHandlingStrategy, RouletteSelection, Selection, SelectionStrategy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mutation.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | mut population: &mut Population, [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/rule.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn generate(mut rng: &mut T, spec: &GaSpec) -> Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/selection.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | for i in 0..self.tournament_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/main.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | let (training, test) = data_set.split_at_percentage(opt.split_percentage)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..ga_specs.max_evolutions { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate` [INFO] [stdout] --> src/main.rs:102:41 [INFO] [stdout] | [INFO] [stdout] 102 | for CandidateFitness { fitness, candidate } in &fitness { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `candidate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mutation_count` is never read [INFO] [stdout] --> src/candidate.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Candidate { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | rules: HashSet, [INFO] [stdout] 13 | mutation_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Candidate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mutation_count`, `set_mutation_count`, `increment_mutation_count`, `age`, `birth_generation_id`, and `rules_mut` are never used [INFO] [stdout] --> src/candidate.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Candidate { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn mutation_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_mutation_count(&mut self, new_mutation_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn increment_mutation_count(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn age(&mut self, current_generation_id: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn birth_generation_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn rules_mut(&mut self) -> &mut HashSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RngFail` is never constructed [INFO] [stdout] --> src/crossover.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum CrossoverError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 56 | #[error("rng failed to generate a unique value")] [INFO] [stdout] 57 | RngFail, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossoverError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `char_at` is never used [INFO] [stdout] --> src/dataitem.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl DataItem { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn char_at(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeterogenousData` and `InvalidPercentage` are never constructed [INFO] [stdout] --> src/dataset.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum DataSetError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 62 | #[error("found different kinds of data")] [INFO] [stdout] 63 | HeterogenousData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | InvalidPercentage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataSetError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_generation` and `candidates_mut` are never used [INFO] [stdout] --> src/population.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Population { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn set_generation(&mut self, new_generation: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn candidates_mut(&mut self) -> &mut HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mutation.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | mut population: &mut Population, [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/rule.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn generate(mut rng: &mut T, spec: &GaSpec) -> Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/selection.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | for i in 0..self.tournament_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/main.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | let (training, test) = data_set.split_at_percentage(opt.split_percentage)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..ga_specs.max_evolutions { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate` [INFO] [stdout] --> src/main.rs:102:41 [INFO] [stdout] | [INFO] [stdout] 102 | for CandidateFitness { fitness, candidate } in &fitness { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `candidate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mutation_count` is never read [INFO] [stdout] --> src/candidate.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Candidate { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | rules: HashSet, [INFO] [stdout] 13 | mutation_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Candidate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mutation_count`, `set_mutation_count`, `increment_mutation_count`, `age`, `birth_generation_id`, and `rules_mut` are never used [INFO] [stdout] --> src/candidate.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Candidate { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn mutation_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_mutation_count(&mut self, new_mutation_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn increment_mutation_count(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn age(&mut self, current_generation_id: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn birth_generation_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn rules_mut(&mut self) -> &mut HashSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RngFail` is never constructed [INFO] [stdout] --> src/crossover.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum CrossoverError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 56 | #[error("rng failed to generate a unique value")] [INFO] [stdout] 57 | RngFail, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossoverError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeterogenousData` and `InvalidPercentage` are never constructed [INFO] [stdout] --> src/dataset.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum DataSetError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 62 | #[error("found different kinds of data")] [INFO] [stdout] 63 | HeterogenousData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | InvalidPercentage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataSetError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_generation` and `candidates_mut` are never used [INFO] [stdout] --> src/population.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Population { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn set_generation(&mut self, new_generation: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn candidates_mut(&mut self) -> &mut HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.16s [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2d20ed98d4f6941950b81d897bfe3b6d6afb0b37970ee4d50edf7423d6df8646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d20ed98d4f6941950b81d897bfe3b6d6afb0b37970ee4d50edf7423d6df8646", kill_on_drop: false }` [INFO] [stdout] 2d20ed98d4f6941950b81d897bfe3b6d6afb0b37970ee4d50edf7423d6df8646