[INFO] cloning repository https://github.com/SSebigo/iris-classification [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SSebigo/iris-classification" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSSebigo%2Firis-classification", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSSebigo%2Firis-classification'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49bdf25c8825328d541edd31a06875d882b6fd94 [INFO] checking SSebigo/iris-classification against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSSebigo%2Firis-classification" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SSebigo/iris-classification on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SSebigo/iris-classification [INFO] finished tweaking git repo https://github.com/SSebigo/iris-classification [INFO] tweaked toml for git repo https://github.com/SSebigo/iris-classification written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/SSebigo/iris-classification already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ndarray-rand v0.9.0 [INFO] [stderr] Downloaded rand_jitter v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66decc1a61e60c36b0e8093bac9e9a73723493d2108b6ce6254824b6ac2debc5 [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" "66decc1a61e60c36b0e8093bac9e9a73723493d2108b6ce6254824b6ac2debc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66decc1a61e60c36b0e8093bac9e9a73723493d2108b6ce6254824b6ac2debc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66decc1a61e60c36b0e8093bac9e9a73723493d2108b6ce6254824b6ac2debc5", kill_on_drop: false }` [INFO] [stdout] 66decc1a61e60c36b0e8093bac9e9a73723493d2108b6ce6254824b6ac2debc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f00bb720d6f88ff4c3c3885c9cb62e7cf660812b5b1bdce043c3e1c2660b16b [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" "9f00bb720d6f88ff4c3c3885c9cb62e7cf660812b5b1bdce043c3e1c2660b16b", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Checking rawpointer v0.1.0 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_pcg v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.1 [INFO] [stderr] Checking ndarray-rand v0.9.0 [INFO] [stderr] Checking iris-classification v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/model.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array, Array2}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/model.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array, Array2}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_set` [INFO] [stdout] --> src/main.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let (train_set, test_set) = (train_set.to_vec(), test_set.to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_labels` [INFO] [stdout] --> src/model.rs:76:52 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn fit(&mut self, training_set: Vec, set_labels: Vec<&str>, epochs: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_set` [INFO] [stdout] --> src/model.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_labels` [INFO] [stdout] --> src/model.rs:132:41 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prediction_set` [INFO] [stdout] --> src/model.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn predict(prediction_set: T) -> Array2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prediction_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `learning_rate` [INFO] [stdout] --> src/model.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let learning_rate = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_learning_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_1` [INFO] [stdout] --> src/model.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let beta_1 = 0.9; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_2` [INFO] [stdout] --> src/model.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let beta_2 = 0.999; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epsilon` [INFO] [stdout] --> src/model.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let epsilon = 10_f64.powf(-8_f64); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_epsilon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_set` [INFO] [stdout] --> src/main.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let (train_set, test_set) = (train_set.to_vec(), test_set.to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_labels` [INFO] [stdout] --> src/model.rs:76:52 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn fit(&mut self, training_set: Vec, set_labels: Vec<&str>, epochs: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_set` [INFO] [stdout] --> src/model.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_labels` [INFO] [stdout] --> src/model.rs:132:41 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prediction_set` [INFO] [stdout] --> src/model.rs:136:23 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn predict(prediction_set: T) -> Array2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prediction_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `learning_rate` [INFO] [stdout] --> src/model.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let learning_rate = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_learning_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_1` [INFO] [stdout] --> src/model.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let beta_1 = 0.9; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta_2` [INFO] [stdout] --> src/model.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let beta_2 = 0.999; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_beta_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epsilon` [INFO] [stdout] --> src/model.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let epsilon = 10_f64.powf(-8_f64); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_epsilon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/model.rs:107:52 [INFO] [stdout] | [INFO] [stdout] 104 | match self.layers.last() { [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 107 | prediction_error = self.loss(result.neurons.clone(), iris.class.clone()); [INFO] [stdout] | ^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sigmoid_prime` [INFO] [stdout] --> src/layer.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn sigmoid_prime(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate` [INFO] [stdout] --> src/model.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `predict` [INFO] [stdout] --> src/model.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn predict(prediction_set: T) -> Array2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adam_optimizer` [INFO] [stdout] --> src/model.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn adam_optimizer(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gradient_descent` [INFO] [stdout] --> src/model.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gradient_descent(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mean_squared_error` [INFO] [stdout] --> src/model.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn mean_squared_error(&mut self, prediction: Array2, target: Array2) -> Array2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/model.rs:107:52 [INFO] [stdout] | [INFO] [stdout] 104 | match self.layers.last() { [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 107 | prediction_error = self.loss(result.neurons.clone(), iris.class.clone()); [INFO] [stdout] | ^^^^ -------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sigmoid_prime` [INFO] [stdout] --> src/layer.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn sigmoid_prime(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate` [INFO] [stdout] --> src/model.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn evaluate(test_set: Vec, set_labels: Vec<&str>) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `predict` [INFO] [stdout] --> src/model.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn predict(prediction_set: T) -> Array2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adam_optimizer` [INFO] [stdout] --> src/model.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn adam_optimizer(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gradient_descent` [INFO] [stdout] --> src/model.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gradient_descent(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mean_squared_error` [INFO] [stdout] --> src/model.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn mean_squared_error(&mut self, prediction: Array2, target: Array2) -> Array2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.18s [INFO] running `Command { std: "docker" "inspect" "9f00bb720d6f88ff4c3c3885c9cb62e7cf660812b5b1bdce043c3e1c2660b16b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f00bb720d6f88ff4c3c3885c9cb62e7cf660812b5b1bdce043c3e1c2660b16b", kill_on_drop: false }` [INFO] [stdout] 9f00bb720d6f88ff4c3c3885c9cb62e7cf660812b5b1bdce043c3e1c2660b16b