[INFO] fetching crate dqn_variable_ratio_test 0.1.0... [INFO] testing dqn_variable_ratio_test-0.1.0 against beta-2022-02-22 for beta-1.60-1 [INFO] extracting crate dqn_variable_ratio_test 0.1.0 into /workspace/builds/worker-29/source [INFO] validating manifest of crates.io crate dqn_variable_ratio_test 0.1.0 on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dqn_variable_ratio_test 0.1.0 [INFO] finished tweaking crates.io crate dqn_variable_ratio_test 0.1.0 [INFO] tweaked toml for crates.io crate dqn_variable_ratio_test 0.1.0 written to /workspace/builds/worker-29/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f65d90c01bc1a3c54dcb44737677e5a2345186256c0028df2818fff2746a7321 [INFO] running `Command { std: "docker" "start" "-a" "f65d90c01bc1a3c54dcb44737677e5a2345186256c0028df2818fff2746a7321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f65d90c01bc1a3c54dcb44737677e5a2345186256c0028df2818fff2746a7321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f65d90c01bc1a3c54dcb44737677e5a2345186256c0028df2818fff2746a7321", kill_on_drop: false }` [INFO] [stdout] f65d90c01bc1a3c54dcb44737677e5a2345186256c0028df2818fff2746a7321 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0b2e32018a0ea62cdb8de83966350071fc7f018ec7dd2a417d5a726468ef6a2 [INFO] running `Command { std: "docker" "start" "-a" "a0b2e32018a0ea62cdb8de83966350071fc7f018ec7dd2a417d5a726468ef6a2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling dqn_variable_ratio_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `current_index` is never read [INFO] [stdout] --> src/dqn.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut current_index = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HyperTan` [INFO] [stdout] --> src/neuron.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | HyperTan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Sigmoidal` [INFO] [stdout] --> src/neuron.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Sigmoidal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Step` [INFO] [stdout] --> src/neuron.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Step, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Linear` [INFO] [stdout] --> src/neuron.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Linear, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Relu` [INFO] [stdout] --> src/neuron.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Relu [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bias` [INFO] [stdout] --> src/neuron.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | bias: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `activation_function` [INFO] [stdout] --> src/neuron.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | activation_function: ActivationFunction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `layer_number` [INFO] [stdout] --> src/neuron.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | layer_number: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `initialize` [INFO] [stdout] --> src/neuron.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn initialize(layer_number: f64, activation_function: ActivationFunction, input_number: u64, use_rand: bool) -> Self{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weights` [INFO] [stdout] --> src/neuron.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_weights(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `predict` [INFO] [stdout] --> src/neuron.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn predict(&self, inputs: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adjust` [INFO] [stdout] --> src/neuron.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn adjust(&mut self, actual_q_value: f64, predicted_value: f64, reward: f64, inputs: &Vec, next_state: &Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/neuron.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn activate(&self, weighted_sum: f64) -> f64{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Agent` [INFO] [stdout] --> src/agent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BufferItem` [INFO] [stdout] --> src/agent.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct BufferItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `initialize_agent` [INFO] [stdout] --> src/agent.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn initialize_agent(structure: Vec, amount_of_states: u64, reward_policy: String, copy_amount: u64, range: Range) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `act` [INFO] [stdout] --> src/agent.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn act(&mut self, current_state: Vec, action: usize, next_state: Vec, reward: f64){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exploit_explore` [INFO] [stdout] --> src/agent.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn exploit_explore(&mut self, current_state: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_network` [INFO] [stdout] --> src/dqn.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn generate_network(structure: Vec, input_layer_amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_q_value` [INFO] [stdout] --> src/dqn.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn generate_q_value(&mut self, input_state: &Vec) -> (Vec, f64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backpropagate` [INFO] [stdout] --> src/dqn.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn backpropagate(&mut self, inputs: &Vec, actual_q_value: f64, reward: f64, next_state: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "a0b2e32018a0ea62cdb8de83966350071fc7f018ec7dd2a417d5a726468ef6a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0b2e32018a0ea62cdb8de83966350071fc7f018ec7dd2a417d5a726468ef6a2", kill_on_drop: false }` [INFO] [stdout] a0b2e32018a0ea62cdb8de83966350071fc7f018ec7dd2a417d5a726468ef6a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fd3f659331c569bb52699196fa701f87f1e859abde92305fee24166e0c2ce94 [INFO] running `Command { std: "docker" "start" "-a" "6fd3f659331c569bb52699196fa701f87f1e859abde92305fee24166e0c2ce94", kill_on_drop: false }` [INFO] [stdout] warning: value assigned to `current_index` is never read [INFO] [stdout] --> src/dqn.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut current_index = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HyperTan` [INFO] [stdout] --> src/neuron.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | HyperTan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Sigmoidal` [INFO] [stdout] --> src/neuron.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Sigmoidal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling dqn_variable_ratio_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant is never constructed: `Step` [INFO] [stdout] --> src/neuron.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Step, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Linear` [INFO] [stdout] --> src/neuron.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Linear, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Relu` [INFO] [stdout] --> src/neuron.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Relu [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bias` [INFO] [stdout] --> src/neuron.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | bias: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `activation_function` [INFO] [stdout] --> src/neuron.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | activation_function: ActivationFunction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `layer_number` [INFO] [stdout] --> src/neuron.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | layer_number: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `initialize` [INFO] [stdout] --> src/neuron.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn initialize(layer_number: f64, activation_function: ActivationFunction, input_number: u64, use_rand: bool) -> Self{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weights` [INFO] [stdout] --> src/neuron.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_weights(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `predict` [INFO] [stdout] --> src/neuron.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn predict(&self, inputs: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adjust` [INFO] [stdout] --> src/neuron.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn adjust(&mut self, actual_q_value: f64, predicted_value: f64, reward: f64, inputs: &Vec, next_state: &Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `activate` [INFO] [stdout] --> src/neuron.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn activate(&self, weighted_sum: f64) -> f64{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Agent` [INFO] [stdout] --> src/agent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BufferItem` [INFO] [stdout] --> src/agent.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct BufferItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `initialize_agent` [INFO] [stdout] --> src/agent.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn initialize_agent(structure: Vec, amount_of_states: u64, reward_policy: String, copy_amount: u64, range: Range) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `act` [INFO] [stdout] --> src/agent.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn act(&mut self, current_state: Vec, action: usize, next_state: Vec, reward: f64){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exploit_explore` [INFO] [stdout] --> src/agent.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn exploit_explore(&mut self, current_state: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_network` [INFO] [stdout] --> src/dqn.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn generate_network(structure: Vec, input_layer_amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_q_value` [INFO] [stdout] --> src/dqn.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn generate_q_value(&mut self, input_state: &Vec) -> (Vec, f64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backpropagate` [INFO] [stdout] --> src/dqn.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn backpropagate(&mut self, inputs: &Vec, actual_q_value: f64, reward: f64, next_state: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::neuron` [INFO] [stdout] --> src/dqn.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::neuron; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_index` is never read [INFO] [stdout] --> src/dqn.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut current_index = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HyperTan` [INFO] [stdout] --> src/neuron.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | HyperTan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Sigmoidal` [INFO] [stdout] --> src/neuron.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Sigmoidal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Step` [INFO] [stdout] --> src/neuron.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Step, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Linear` [INFO] [stdout] --> src/neuron.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Linear, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `layer_number` [INFO] [stdout] --> src/neuron.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | layer_number: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/neuron.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weights` [INFO] [stdout] --> src/neuron.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_weights(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Agent` [INFO] [stdout] --> src/agent.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BufferItem` [INFO] [stdout] --> src/agent.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct BufferItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `initialize_agent` [INFO] [stdout] --> src/agent.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn initialize_agent(structure: Vec, amount_of_states: u64, reward_policy: String, copy_amount: u64, range: Range) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `act` [INFO] [stdout] --> src/agent.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn act(&mut self, current_state: Vec, action: usize, next_state: Vec, reward: f64){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exploit_explore` [INFO] [stdout] --> src/agent.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn exploit_explore(&mut self, current_state: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "6fd3f659331c569bb52699196fa701f87f1e859abde92305fee24166e0c2ce94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fd3f659331c569bb52699196fa701f87f1e859abde92305fee24166e0c2ce94", kill_on_drop: false }` [INFO] [stdout] 6fd3f659331c569bb52699196fa701f87f1e859abde92305fee24166e0c2ce94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 18f4b1ed8fcf1739e8e897f9b6518e942d1a04a2d08790283dbfcc8c7b8754b8 [INFO] running `Command { std: "docker" "start" "-a" "18f4b1ed8fcf1739e8e897f9b6518e942d1a04a2d08790283dbfcc8c7b8754b8", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `current_index` is never read [INFO] [stderr] --> src/dqn.rs:109:17 [INFO] [stderr] | [INFO] [stderr] 109 | let mut current_index = 1; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `HyperTan` [INFO] [stderr] --> src/neuron.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | HyperTan, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Sigmoidal` [INFO] [stderr] --> src/neuron.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Sigmoidal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Step` [INFO] [stderr] --> src/neuron.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Step, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Linear` [INFO] [stderr] --> src/neuron.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Linear, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Relu` [INFO] [stderr] --> src/neuron.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | Relu [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActivationFunction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `bias` [INFO] [stderr] --> src/neuron.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | bias: f64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `activation_function` [INFO] [stderr] --> src/neuron.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | activation_function: ActivationFunction, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `layer_number` [INFO] [stderr] --> src/neuron.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | layer_number: u64 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Neuron` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/neuron.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `initialize` [INFO] [stderr] --> src/neuron.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn initialize(layer_number: f64, activation_function: ActivationFunction, input_number: u64, use_rand: bool) -> Self{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_weights` [INFO] [stderr] --> src/neuron.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn get_weights(self) -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `predict` [INFO] [stderr] --> src/neuron.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn predict(&self, inputs: &Vec) -> f64 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `adjust` [INFO] [stderr] --> src/neuron.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn adjust(&mut self, actual_q_value: f64, predicted_value: f64, reward: f64, inputs: &Vec, next_state: &Vec) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `activate` [INFO] [stderr] --> src/neuron.rs:64:8 [INFO] [stderr] | [INFO] [stderr] 64 | fn activate(&self, weighted_sum: f64) -> f64{ [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Agent` [INFO] [stderr] --> src/agent.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Agent { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `BufferItem` [INFO] [stderr] --> src/agent.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | struct BufferItem { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `initialize_agent` [INFO] [stderr] --> src/agent.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn initialize_agent(structure: Vec, amount_of_states: u64, reward_policy: String, copy_amount: u64, range: Range) -> ... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `act` [INFO] [stderr] --> src/agent.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn act(&mut self, current_state: Vec, action: usize, next_state: Vec, reward: f64){ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `exploit_explore` [INFO] [stderr] --> src/agent.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn exploit_explore(&mut self, current_state: &Vec) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `generate_network` [INFO] [stderr] --> src/dqn.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn generate_network(structure: Vec, input_layer_amount: u64) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `generate_q_value` [INFO] [stderr] --> src/dqn.rs:75:12 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn generate_q_value(&mut self, input_state: &Vec) -> (Vec, f64){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `backpropagate` [INFO] [stderr] --> src/dqn.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn backpropagate(&mut self, inputs: &Vec, actual_q_value: f64, reward: f64, next_state: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::neuron` [INFO] [stderr] --> src/dqn.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::neuron; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `dqn_variable_ratio_test` (lib) generated 22 warnings [INFO] [stderr] warning: `dqn_variable_ratio_test` (lib test) generated 13 warnings (12 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/dqn_variable_ratio_test-981d74a79905c924) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test dqn::tests::check_forward_propagate ... ok [INFO] [stdout] test dqn::tests::check_back_propagate ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests dqn_variable_ratio_test [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" "18f4b1ed8fcf1739e8e897f9b6518e942d1a04a2d08790283dbfcc8c7b8754b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18f4b1ed8fcf1739e8e897f9b6518e942d1a04a2d08790283dbfcc8c7b8754b8", kill_on_drop: false }` [INFO] [stdout] 18f4b1ed8fcf1739e8e897f9b6518e942d1a04a2d08790283dbfcc8c7b8754b8