[INFO] cloning repository https://github.com/selareid/rust_machine_learning_library [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/selareid/rust_machine_learning_library" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselareid%2Frust_machine_learning_library", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselareid%2Frust_machine_learning_library'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d1b5f41ff2b613d06da8dbc2c7be7f0c6df9018 [INFO] testing selareid/rust_machine_learning_library against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselareid%2Frust_machine_learning_library" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/selareid/rust_machine_learning_library on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/selareid/rust_machine_learning_library [INFO] finished tweaking git repo https://github.com/selareid/rust_machine_learning_library [INFO] tweaked toml for git repo https://github.com/selareid/rust_machine_learning_library written to /workspace/builds/worker-58/source/Cargo.toml [INFO] crate git repo https://github.com/selareid/rust_machine_learning_library already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 802aff512e5c22f3f2dc9635d2dc56298bc6632ca92db67c29fda95a37c1a70f [INFO] running `Command { std: "docker" "start" "-a" "802aff512e5c22f3f2dc9635d2dc56298bc6632ca92db67c29fda95a37c1a70f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "802aff512e5c22f3f2dc9635d2dc56298bc6632ca92db67c29fda95a37c1a70f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "802aff512e5c22f3f2dc9635d2dc56298bc6632ca92db67c29fda95a37c1a70f", kill_on_drop: false }` [INFO] [stdout] 802aff512e5c22f3f2dc9635d2dc56298bc6632ca92db67c29fda95a37c1a70f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] acf0a5c0c91c389454d83713b41910071d9ed6734b9784cde226d59018137dfc [INFO] running `Command { std: "docker" "start" "-a" "acf0a5c0c91c389454d83713b41910071d9ed6734b9784cde226d59018137dfc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling rust_machine_learning_library v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neat/species.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | for i in 0..number_to_cull { [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: variable does not need to be mutable [INFO] [stdout] --> src/neat/species.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut random_client1_ref: Rc>; [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/neat/species.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut random_client2_ref: Rc>; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `HashSetRemoveTypes` [INFO] [stdout] --> src/random_hash_set.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum HashSetRemoveTypes where [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/random_hash_set.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn insert(&mut self, object: Rc, index: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/random_hash_set.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn remove(&mut self, to_remove: HashSetRemoveTypes) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DerivativeFunctions` [INFO] [stdout] --> src/activation_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct DerivativeFunctions {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_species` [INFO] [stdout] --> src/neat/client.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | pub(super) fn get_species(&self) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_calculator` [INFO] [stdout] --> src/neat/client.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | pub(super) fn get_calculator(&self) -> Optionf64>>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/neat/species.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | pub(super) fn reset(&mut self, default_species: &Rc>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_representative` [INFO] [stdout] --> src/neat/species.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn get_representative(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ReLU` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn ReLU(input: f64) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | C2: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | proportion_to_kill: f64, C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 53.94s [INFO] running `Command { std: "docker" "inspect" "acf0a5c0c91c389454d83713b41910071d9ed6734b9784cde226d59018137dfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acf0a5c0c91c389454d83713b41910071d9ed6734b9784cde226d59018137dfc", kill_on_drop: false }` [INFO] [stdout] acf0a5c0c91c389454d83713b41910071d9ed6734b9784cde226d59018137dfc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca4443d55ecf6a2496e0177024127996fb43a357ae8500fddce4aeaf1f8ac866 [INFO] running `Command { std: "docker" "start" "-a" "ca4443d55ecf6a2496e0177024127996fb43a357ae8500fddce4aeaf1f8ac866", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rust_machine_learning_library v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neat/species.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | for i in 0..number_to_cull { [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: variable does not need to be mutable [INFO] [stdout] --> src/neat/species.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut random_client1_ref: Rc>; [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/neat/species.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut random_client2_ref: Rc>; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `HashSetRemoveTypes` [INFO] [stdout] --> src/random_hash_set.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum HashSetRemoveTypes where [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/random_hash_set.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn insert(&mut self, object: Rc, index: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/random_hash_set.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn remove(&mut self, to_remove: HashSetRemoveTypes) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DerivativeFunctions` [INFO] [stdout] --> src/activation_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct DerivativeFunctions {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_species` [INFO] [stdout] --> src/neat/client.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | pub(super) fn get_species(&self) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_calculator` [INFO] [stdout] --> src/neat/client.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | pub(super) fn get_calculator(&self) -> Optionf64>>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/neat/species.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | pub(super) fn reset(&mut self, default_species: &Rc>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_representative` [INFO] [stdout] --> src/neat/species.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn get_representative(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ReLU` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn ReLU(input: f64) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | C2: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | proportion_to_kill: f64, C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neat/species.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | for i in 0..number_to_cull { [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: variable does not need to be mutable [INFO] [stdout] --> src/neat/species.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut random_client1_ref: Rc>; [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/neat/species.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut random_client2_ref: Rc>; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/feed_forward/tests.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut genome = get_testing_genome_0(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/random_hash_set.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn insert(&mut self, object: Rc, index: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DerivativeFunctions` [INFO] [stdout] --> src/activation_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct DerivativeFunctions {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_species` [INFO] [stdout] --> src/neat/client.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | pub(super) fn get_species(&self) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_calculator` [INFO] [stdout] --> src/neat/client.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | pub(super) fn get_calculator(&self) -> Optionf64>>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/neat/species.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | pub(super) fn reset(&mut self, default_species: &Rc>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_representative` [INFO] [stdout] --> src/neat/species.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn get_representative(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ReLU` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn ReLU(input: f64) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | C2: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C1` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | proportion_to_kill: f64, C1: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C2` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C3` should have a snake case name [INFO] [stdout] --> src/neat/mod.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | C2: f64, C3: f64, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/feed_forward/calculator/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 9.48s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_machine_learning_library-ce6dca53761713ce) [INFO] running `Command { std: "docker" "inspect" "ca4443d55ecf6a2496e0177024127996fb43a357ae8500fddce4aeaf1f8ac866", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca4443d55ecf6a2496e0177024127996fb43a357ae8500fddce4aeaf1f8ac866", kill_on_drop: false }` [INFO] [stdout] ca4443d55ecf6a2496e0177024127996fb43a357ae8500fddce4aeaf1f8ac866 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5966eb8b4f02e1331fce8e7b240dc12f92dae6f80cf4d0859ecf7fdbc6cf225f [INFO] running `Command { std: "docker" "start" "-a" "5966eb8b4f02e1331fce8e7b240dc12f92dae6f80cf4d0859ecf7fdbc6cf225f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stderr] --> src/feed_forward/calculator/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::hash_map::RandomState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/neat/species.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | for i in 0..number_to_cull { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/neat/species.rs:137:13 [INFO] [stderr] | [INFO] [stderr] 137 | let mut random_client1_ref: Rc>; [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/neat/species.rs:138:13 [INFO] [stderr] | [INFO] [stderr] 138 | let mut random_client2_ref: Rc>; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `HashSetRemoveTypes` [INFO] [stderr] --> src/random_hash_set.rs:4:17 [INFO] [stderr] | [INFO] [stderr] 4 | pub(crate) enum HashSetRemoveTypes where [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `insert` [INFO] [stderr] --> src/random_hash_set.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn insert(&mut self, object: Rc, index: usize) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove` [INFO] [stderr] --> src/random_hash_set.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn remove(&mut self, to_remove: HashSetRemoveTypes) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `DerivativeFunctions` [INFO] [stderr] --> src/activation_functions.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct DerivativeFunctions {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_species` [INFO] [stderr] --> src/neat/client.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 45 | pub(super) fn get_species(&self) -> Rc> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_calculator` [INFO] [stderr] --> src/neat/client.rs:62:19 [INFO] [stderr] | [INFO] [stderr] 62 | pub(super) fn get_calculator(&self) -> Optionf64>>> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset` [INFO] [stderr] --> src/neat/species.rs:91:19 [INFO] [stderr] | [INFO] [stderr] 91 | pub(super) fn reset(&mut self, default_species: &Rc>) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_representative` [INFO] [stderr] --> src/neat/species.rs:174:8 [INFO] [stderr] | [INFO] [stderr] 174 | fn get_representative(&self) -> Option>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `ReLU` should have a snake case name [INFO] [stderr] --> src/activation_functions.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn ReLU(input: f64) -> f64 { [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `C1` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | C1: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stderr] [INFO] [stderr] warning: structure field `C2` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:46:5 [INFO] [stderr] | [INFO] [stderr] 46 | C2: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stderr] [INFO] [stderr] warning: structure field `C3` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | C3: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stderr] [INFO] [stderr] warning: variable `C1` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:71:41 [INFO] [stderr] | [INFO] [stderr] 71 | proportion_to_kill: f64, C1: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c1` [INFO] [stderr] [INFO] [stderr] warning: variable `C2` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:72:16 [INFO] [stderr] | [INFO] [stderr] 72 | C2: f64, C3: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c2` [INFO] [stderr] [INFO] [stderr] warning: variable `C3` should have a snake case name [INFO] [stderr] --> src/neat/mod.rs:72:25 [INFO] [stderr] | [INFO] [stderr] 72 | C2: f64, C3: f64, [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `c3` [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/feed_forward/calculator/mod.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 77 | let _ = &mut to_node.borrow_mut().connections.push(Rc::new(new_connection)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/feed_forward/tests.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | let mut genome = get_testing_genome_0(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `insert` [INFO] [stderr] --> src/random_hash_set.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn insert(&mut self, object: Rc, index: usize) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_machine_learning_library` (lib) generated 20 warnings [INFO] [stderr] warning: `rust_machine_learning_library` (lib test) generated 19 warnings (17 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 29.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_machine_learning_library-ce6dca53761713ce) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test feed_forward::calculator::connection::tests::get_weighted_connection_value_returns_as_expected_with_doctored_node_output ... ok [INFO] [stdout] test feed_forward::calculator::connection::tests::new_connection_has_weight_and_node_given ... ok [INFO] [stdout] test neat::genome_neat_tests::test_distance_function ... ignored [INFO] [stdout] test feed_forward::tests::test_calculator ... ok [INFO] [stdout] test neat::genome_neat_tests::test_breeding ... ok [INFO] [stdout] test neat::species::tests::test_new_species ... ignored [INFO] [stdout] test neat::genome_neat_tests::test_mutate_toggle_connection ... ok [INFO] [stdout] test neat::genome_neat_tests::test_mutate_add_connection ... ok [INFO] [stdout] test neat::genome_neat_tests::test_mutate_add_node ... ok [INFO] [stdout] test neat::genome_neat_tests::test_mutate_random_weight ... ok [INFO] [stdout] test tests::test_ref_cell_in_random_hash_set ... ok [INFO] [stdout] test tests::test_random_hash_set ... ok [INFO] [stdout] test neat::genome_neat_tests::test_mutate_weight_shift ... ok [INFO] [stdout] test feed_forward::calculator::connection::tests::get_weighted_connection_value_panics_with_new_node - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] Doc-tests rust_machine_learning_library [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" "5966eb8b4f02e1331fce8e7b240dc12f92dae6f80cf4d0859ecf7fdbc6cf225f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5966eb8b4f02e1331fce8e7b240dc12f92dae6f80cf4d0859ecf7fdbc6cf225f", kill_on_drop: false }` [INFO] [stdout] 5966eb8b4f02e1331fce8e7b240dc12f92dae6f80cf4d0859ecf7fdbc6cf225f