[INFO] fetching crate deep_q_network_bindings 0.1.0... [INFO] testing deep_q_network_bindings-0.1.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate deep_q_network_bindings 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate deep_q_network_bindings 0.1.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate deep_q_network_bindings 0.1.0 [INFO] finished tweaking crates.io crate deep_q_network_bindings 0.1.0 [INFO] tweaked toml for crates.io crate deep_q_network_bindings 0.1.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e86e1880e6b9b10ab040a8d6a1e00c0af1e6d869966317a03ecc4f5c6f55e7b3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e86e1880e6b9b10ab040a8d6a1e00c0af1e6d869966317a03ecc4f5c6f55e7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e86e1880e6b9b10ab040a8d6a1e00c0af1e6d869966317a03ecc4f5c6f55e7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e86e1880e6b9b10ab040a8d6a1e00c0af1e6d869966317a03ecc4f5c6f55e7b3", kill_on_drop: false }` [INFO] [stdout] e86e1880e6b9b10ab040a8d6a1e00c0af1e6d869966317a03ecc4f5c6f55e7b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c7a9b49df8c1a1fcc5b7de56e3e687f8f7526387e4986b9eee0e937684e93bd5 [INFO] running `Command { std: "docker" "start" "-a" "c7a9b49df8c1a1fcc5b7de56e3e687f8f7526387e4986b9eee0e937684e93bd5", kill_on_drop: false }` [INFO] [stderr] Compiling deep_q_network_bindings 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 1.92s [INFO] running `Command { std: "docker" "inspect" "c7a9b49df8c1a1fcc5b7de56e3e687f8f7526387e4986b9eee0e937684e93bd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7a9b49df8c1a1fcc5b7de56e3e687f8f7526387e4986b9eee0e937684e93bd5", kill_on_drop: false }` [INFO] [stdout] c7a9b49df8c1a1fcc5b7de56e3e687f8f7526387e4986b9eee0e937684e93bd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5e8df882ab932e390170938685f6afe5a0bad7aeb10bdba272d2e6036a868a46 [INFO] running `Command { std: "docker" "start" "-a" "5e8df882ab932e390170938685f6afe5a0bad7aeb10bdba272d2e6036a868a46", 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 deep_q_network_bindings 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 1.82s [INFO] running `Command { std: "docker" "inspect" "5e8df882ab932e390170938685f6afe5a0bad7aeb10bdba272d2e6036a868a46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e8df882ab932e390170938685f6afe5a0bad7aeb10bdba272d2e6036a868a46", kill_on_drop: false }` [INFO] [stdout] 5e8df882ab932e390170938685f6afe5a0bad7aeb10bdba272d2e6036a868a46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b2613d7d5b5abbb5cbbf54411dd01edf66b624605e911b9866e5bc8b1d89f750 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b2613d7d5b5abbb5cbbf54411dd01edf66b624605e911b9866e5bc8b1d89f750", 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] [stdout] [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] running 2 tests [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: `deep_q_network_bindings` (lib) generated 22 warnings [INFO] [stderr] warning: `deep_q_network_bindings` (lib test) generated 13 warnings (12 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/deep_q_network_bindings-bddcf9835eacbac4) [INFO] [stdout] test dqn::tests::check_back_propagate ... ok [INFO] [stdout] test dqn::tests::check_forward_propagate ... ok [INFO] [stderr] Doc-tests deep_q_network_bindings [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [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" "b2613d7d5b5abbb5cbbf54411dd01edf66b624605e911b9866e5bc8b1d89f750", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2613d7d5b5abbb5cbbf54411dd01edf66b624605e911b9866e5bc8b1d89f750", kill_on_drop: false }` [INFO] [stdout] b2613d7d5b5abbb5cbbf54411dd01edf66b624605e911b9866e5bc8b1d89f750