[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 try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmenixator%2Fbiocomputation" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/menixator/biocomputation on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b1f2594eac607c1f051534800237eeedb5590a49" "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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 889a6c840fc6fad49d457c502d7543cffb77072fbaefd15b0f5f836aebf29c79 [INFO] running `Command { std: "docker" "start" "-a" "889a6c840fc6fad49d457c502d7543cffb77072fbaefd15b0f5f836aebf29c79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "889a6c840fc6fad49d457c502d7543cffb77072fbaefd15b0f5f836aebf29c79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "889a6c840fc6fad49d457c502d7543cffb77072fbaefd15b0f5f836aebf29c79", kill_on_drop: false }` [INFO] [stdout] 889a6c840fc6fad49d457c502d7543cffb77072fbaefd15b0f5f836aebf29c79 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69b175a21a5827f88bd0b498d78b75838f4503e87ddcf7671dd7e9eca1aa8309 [INFO] running `Command { std: "docker" "start" "-a" "69b175a21a5827f88bd0b498d78b75838f4503e87ddcf7671dd7e9eca1aa8309", kill_on_drop: false }` [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 serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling structopt-derive v0.4.10 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [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` and `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)]` (part of `#[warn(unused)]`) 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: 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: 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: 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: 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: unused imports: `CrossoverStrategyCommonOptions`, `CrossoverStrategy`, `MatchupStrategy`, `MatingStrategy`, and `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`, and `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`, and `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` and `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)]` (part of `#[warn(unused)]`) 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: 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: 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: 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: 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: unused imports: `CrossoverStrategyCommonOptions`, `CrossoverStrategy`, `MatchupStrategy`, `MatingStrategy`, and `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`, and `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`, and `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: value assigned to `line_number` is never read [INFO] [stdout] --> src/dataset.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_number` is never read [INFO] [stdout] --> src/dataset.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_number` is never read [INFO] [stdout] --> src/dataset.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_number` is never read [INFO] [stdout] --> src/dataset.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | line_number: usize, [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/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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/population.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 72 | data_set: &'_ DataSet, [INFO] [stdout] 73 | ) -> Result, FitnessCalculationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | ) -> Result>, FitnessCalculationError> { [INFO] [stdout] | ++++ [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/population.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 72 | data_set: &'_ DataSet, [INFO] [stdout] 73 | ) -> Result, FitnessCalculationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | ) -> Result>, FitnessCalculationError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.70s [INFO] running `Command { std: "docker" "inspect" "69b175a21a5827f88bd0b498d78b75838f4503e87ddcf7671dd7e9eca1aa8309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69b175a21a5827f88bd0b498d78b75838f4503e87ddcf7671dd7e9eca1aa8309", kill_on_drop: false }` [INFO] [stdout] 69b175a21a5827f88bd0b498d78b75838f4503e87ddcf7671dd7e9eca1aa8309