[INFO] cloning repository https://github.com/KaustubhKhulbe/cs128h-final [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KaustubhKhulbe/cs128h-final" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaustubhKhulbe%2Fcs128h-final", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaustubhKhulbe%2Fcs128h-final'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4b8909ad5b4be64ab8a29be2aa23989b84be4afe [INFO] checking KaustubhKhulbe/cs128h-final against master#3139ff09e9d07f7700f8d15ed25a231e29c43627 for pr-121848-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaustubhKhulbe%2Fcs128h-final" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KaustubhKhulbe/cs128h-final on toolchain 3139ff09e9d07f7700f8d15ed25a231e29c43627 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KaustubhKhulbe/cs128h-final [INFO] finished tweaking git repo https://github.com/KaustubhKhulbe/cs128h-final [INFO] tweaked toml for git repo https://github.com/KaustubhKhulbe/cs128h-final written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KaustubhKhulbe/cs128h-final already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b93ef6fbd8b48df91f8a8319ddebbf8451ddefb6472e6255509b2d0c7557e0a [INFO] running `Command { std: "docker" "start" "-a" "5b93ef6fbd8b48df91f8a8319ddebbf8451ddefb6472e6255509b2d0c7557e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b93ef6fbd8b48df91f8a8319ddebbf8451ddefb6472e6255509b2d0c7557e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b93ef6fbd8b48df91f8a8319ddebbf8451ddefb6472e6255509b2d0c7557e0a", kill_on_drop: false }` [INFO] [stdout] 5b93ef6fbd8b48df91f8a8319ddebbf8451ddefb6472e6255509b2d0c7557e0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 493bfcd31a20cf06b60badeb4fbcfb87e29cbb4e5fd2b28feab3f7d8fd1d775a [INFO] running `Command { std: "docker" "start" "-a" "493bfcd31a20cf06b60badeb4fbcfb87e29cbb4e5fd2b28feab3f7d8fd1d775a", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking wide v0.7.13 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking cs128h-final v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DMatrix` [INFO] [stdout] --> src/utils/neural_net.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::{DVector, DMatrix}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DMatrix` [INFO] [stdout] --> src/utils/neural_net.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::{DVector, DMatrix}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let c = network.get_cost_val(&y_hat, &y); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [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/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut network = NeuralNetwork::new(DVector::from(vec![1.0, 2.0, 3.0])); [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: fields `weights_matrix_`, `bias_vector_`, `nodes_`, `activation_function_`, and `computed_` are never read [INFO] [stdout] --> src/utils/layer.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Layer { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 6 | pub weights_matrix_: DMatrix, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub bias_vector_: DVector, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | pub nodes_: DVector, // previous layer values [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub activation_function_: Activation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub computed_: DVector [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `single_layer_forward_propogation` are never used [INFO] [stdout] --> src/utils/layer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Layer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(num_layers: usize, num_prev_layers: usize, activation: Activation, previous_layer: DVector) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn single_layer_forward_propogation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Relu`, `Tanx`, and `Sigmoid` are never constructed [INFO] [stdout] --> src/utils/activation.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Activation { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 2 | Relu, Tanx, Sigmoid, Input // etc [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `relu` and `sigmoid` are never used [INFO] [stdout] --> src/utils/activation.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Activation { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn relu(x: f64) -> f64{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn sigmoid(x: f64) -> f64{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `layers` is never read [INFO] [stdout] --> src/utils/neural_net.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct NeuralNetwork { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 6 | layers: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_layer`, `forward_propogation`, and `print_network` are never used [INFO] [stdout] --> src/utils/neural_net.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl NeuralNetwork { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_layer(&mut self, size: usize, activation: Activation) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn forward_propogation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn print_network(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let c = network.get_cost_val(&y_hat, &y); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [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/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut network = NeuralNetwork::new(DVector::from(vec![1.0, 2.0, 3.0])); [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `activation_function_` is never read [INFO] [stdout] --> src/utils/layer.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Layer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub activation_function_: Activation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `single_layer_forward_propogation` is never used [INFO] [stdout] --> src/utils/layer.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Layer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn single_layer_forward_propogation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tanx` and `Sigmoid` are never constructed [INFO] [stdout] --> src/utils/activation.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Activation { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 2 | Relu, Tanx, Sigmoid, Input // etc [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `relu` and `sigmoid` are never used [INFO] [stdout] --> src/utils/activation.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Activation { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn relu(x: f64) -> f64{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn sigmoid(x: f64) -> f64{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `layers` is never read [INFO] [stdout] --> src/utils/neural_net.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct NeuralNetwork { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 6 | layers: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_layer`, `forward_propogation`, and `print_network` are never used [INFO] [stdout] --> src/utils/neural_net.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl NeuralNetwork { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_layer(&mut self, size: usize, activation: Activation) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn forward_propogation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn print_network(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.84s [INFO] running `Command { std: "docker" "inspect" "493bfcd31a20cf06b60badeb4fbcfb87e29cbb4e5fd2b28feab3f7d8fd1d775a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "493bfcd31a20cf06b60badeb4fbcfb87e29cbb4e5fd2b28feab3f7d8fd1d775a", kill_on_drop: false }` [INFO] [stdout] 493bfcd31a20cf06b60badeb4fbcfb87e29cbb4e5fd2b28feab3f7d8fd1d775a