[INFO] cloning repository https://github.com/LinusThorsell/rustensor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LinusThorsell/rustensor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinusThorsell%2Frustensor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinusThorsell%2Frustensor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a3498d1c80244af04e6b77ad1bafcffaf3b8e60b [INFO] checking LinusThorsell/rustensor against try#af54b6062f33b99e418444700f3a823ef0214052 for pr-138952 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinusThorsell%2Frustensor" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LinusThorsell/rustensor on toolchain af54b6062f33b99e418444700f3a823ef0214052 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af54b6062f33b99e418444700f3a823ef0214052" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LinusThorsell/rustensor [INFO] finished tweaking git repo https://github.com/LinusThorsell/rustensor [INFO] tweaked toml for git repo https://github.com/LinusThorsell/rustensor written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LinusThorsell/rustensor 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" "+af54b6062f33b99e418444700f3a823ef0214052" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+af54b6062f33b99e418444700f3a823ef0214052" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05bf09b376f90c45247ad8b7167ca4f95a1fa2b28a24f7b73458af78d508755c [INFO] running `Command { std: "docker" "start" "-a" "05bf09b376f90c45247ad8b7167ca4f95a1fa2b28a24f7b73458af78d508755c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05bf09b376f90c45247ad8b7167ca4f95a1fa2b28a24f7b73458af78d508755c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05bf09b376f90c45247ad8b7167ca4f95a1fa2b28a24f7b73458af78d508755c", kill_on_drop: false }` [INFO] [stdout] 05bf09b376f90c45247ad8b7167ca4f95a1fa2b28a24f7b73458af78d508755c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+af54b6062f33b99e418444700f3a823ef0214052" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b632fc7bc4908671f9deac394a2c5c65239920b8226221bce101dad4aa11bfa [INFO] running `Command { std: "docker" "start" "-a" "4b632fc7bc4908671f9deac394a2c5c65239920b8226221bce101dad4aa11bfa", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustensor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/activations.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | fn derivative(x: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/activations.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | fn derivative(x: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `:` [INFO] [stdout] --> src/main.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:` [INFO] [stdout] --> src/main.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `:` [INFO] [stdout] --> src/main.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:` [INFO] [stdout] --> src/main.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustensor::activations::ActivationFunctionType` [INFO] [stdout] --> src/main.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use rustensor::activations::{ActivationFunction, ActivationFunctionType, Linear, ReLU}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `ActivationFunctionType` in `activations` [INFO] [stdout] | help: a similar name exists in the module: `ActivationFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `calculate_output` has 2 parameters but the declaration in trait `Layer::calculate_output` has 3 [INFO] [stdout] --> src/main.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ----------------------------------------------------- trait requires 3 parameters [INFO] [stdout] ... [INFO] [stdout] 73 | fn calculate_output(&mut self, activation_function: fn(f64) -> f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 2 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustensor::activations::ActivationFunctionType` [INFO] [stdout] --> src/main.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use rustensor::activations::{ActivationFunction, ActivationFunctionType, Linear, ReLU}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `ActivationFunctionType` in `activations` [INFO] [stdout] | help: a similar name exists in the module: `ActivationFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:43:57 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `calculate_output` has 2 parameters but the declaration in trait `Layer::calculate_output` has 3 [INFO] [stdout] --> src/main.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ----------------------------------------------------- trait requires 3 parameters [INFO] [stdout] ... [INFO] [stdout] 73 | fn calculate_output(&mut self, activation_function: fn(f64) -> f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 2 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 134 | let mut output = self.layers[0].calculate_output(ReLU::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^---------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 134 | let mut output = self.layers[0].calculate_output(ReLU::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 134 | let mut output = self.layers[0].calculate_output(ReLU::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^---------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 134 | let mut output = self.layers[0].calculate_output(ReLU::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | output = self.layers[i].calculate_output(ReLU::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^---------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 139 | output = self.layers[i].calculate_output(ReLU::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | output = self.layers[i].calculate_output(ReLU::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^---------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 139 | output = self.layers[i].calculate_output(ReLU::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:145:48 [INFO] [stdout] | [INFO] [stdout] 145 | output = self.layers[last_layer_index].calculate_output(Linear::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------ argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 145 | output = self.layers[last_layer_index].calculate_output(Linear::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:145:48 [INFO] [stdout] | [INFO] [stdout] 145 | output = self.layers[last_layer_index].calculate_output(Linear::function); [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------ argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn calculate_output(&mut self, activation_function: T: ActivationFunction) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 145 | output = self.layers[last_layer_index].calculate_output(Linear::function, /* */); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0050, E0061, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0050`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0050, E0061, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0050`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustensor` (bin "rustensor") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustensor` (bin "rustensor" test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "4b632fc7bc4908671f9deac394a2c5c65239920b8226221bce101dad4aa11bfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b632fc7bc4908671f9deac394a2c5c65239920b8226221bce101dad4aa11bfa", kill_on_drop: false }` [INFO] [stdout] 4b632fc7bc4908671f9deac394a2c5c65239920b8226221bce101dad4aa11bfa