[INFO] cloning repository https://github.com/ratcht/rust-ml [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ratcht/rust-ml" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratcht%2Frust-ml", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratcht%2Frust-ml'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 203887396cd81937e72bf329ff31d2c685abb41d [INFO] testing ratcht/rust-ml against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratcht%2Frust-ml" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ratcht/rust-ml [INFO] finished tweaking git repo https://github.com/ratcht/rust-ml [INFO] tweaked toml for git repo https://github.com/ratcht/rust-ml written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ratcht/rust-ml on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ratcht/rust-ml 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" "+028592fec99e54cc92def5a2a849c673b066dd93" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap v4.5.27 [INFO] [stderr] Downloaded is-terminal v0.4.15 [INFO] [stderr] Downloaded matrixmultiply v0.3.9 [INFO] [stderr] Downloaded unicode-ident v1.0.15 [INFO] [stderr] Downloaded serde_json v1.0.137 [INFO] [stderr] Downloaded portable-atomic v1.10.0 [INFO] [stderr] Downloaded clap_builder v4.5.27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2c373fad4866de4373fe055fd34b5b9a8ee2ad04178f0dd04100f58bd5303be [INFO] running `Command { std: "docker" "start" "-a" "d2c373fad4866de4373fe055fd34b5b9a8ee2ad04178f0dd04100f58bd5303be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2c373fad4866de4373fe055fd34b5b9a8ee2ad04178f0dd04100f58bd5303be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2c373fad4866de4373fe055fd34b5b9a8ee2ad04178f0dd04100f58bd5303be", kill_on_drop: false }` [INFO] [stdout] d2c373fad4866de4373fe055fd34b5b9a8ee2ad04178f0dd04100f58bd5303be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99d359c9c30cb599d6ae2a6268dcc648d58374f0c88d27ba1e3c9bfdf7c41bf9 [INFO] running `Command { std: "docker" "start" "-a" "99d359c9c30cb599d6ae2a6268dcc648d58374f0c88d27ba1e3c9bfdf7c41bf9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ferrite-dl v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/reduction.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/transform.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CpuStorage` and `grad_storage` [INFO] [stdout] --> src/tensor/base.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{grad_storage, GradientFunction, CpuStorage}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/tensor/shape.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tensor/shape.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] 73 + if a.device() != b.device() { panic!("Tensors not on same device!") } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeviceStorage` and `match_storage_assign` [INFO] [stdout] --> src/tensor/ops/reduction.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{DeviceStorage, MeanGrad, ProductGrad, Storage, SumGrad, Tensor, match_storage, match_storage_assign}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/tensor/storage/traits.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{rc::Rc, sync::RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/tensor/storage/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use base::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `DivAssign`, `Div`, `MulAssign`, `Mul`, `SubAssign`, and `Sub` [INFO] [stdout] --> src/tensor/device/cpu/kernels/arithmetic.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign, Div, DivAssign}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arithmetic::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use arithmetic::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blas::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use blas::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduction::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use reduction::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transform::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use transform::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activation::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use activation::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernels::*` [INFO] [stdout] --> src/tensor/device/cpu/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use kernels::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cuda::*` [INFO] [stdout] --> src/tensor/device/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use cuda::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::*` [INFO] [stdout] --> src/tensor/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use shape::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tensor::*` [INFO] [stdout] --> src/network/optimizer/optimizer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tensor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tensor/ops/reduction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result = Tensor::new(tensor, self.device(), requires_grad); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | let mut temp = tensor.grad().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | let mut storage = tensor.tensor_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/autograd/scalar/graph.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/base.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/traits.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard>; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/device/cpu/storage/base.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.08s [INFO] running `Command { std: "docker" "inspect" "99d359c9c30cb599d6ae2a6268dcc648d58374f0c88d27ba1e3c9bfdf7c41bf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99d359c9c30cb599d6ae2a6268dcc648d58374f0c88d27ba1e3c9bfdf7c41bf9", kill_on_drop: false }` [INFO] [stdout] 99d359c9c30cb599d6ae2a6268dcc648d58374f0c88d27ba1e3c9bfdf7c41bf9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 475a81dba6da6811264a9dd42655bc165fcfc9a0941c78f9ce1f75a866923aa5 [INFO] running `Command { std: "docker" "start" "-a" "475a81dba6da6811264a9dd42655bc165fcfc9a0941c78f9ce1f75a866923aa5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling clap_builder v4.5.27 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling oorandom v11.1.4 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling is-terminal v0.4.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling clap v4.5.27 [INFO] [stderr] Compiling ferrite-dl v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/reduction.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/transform.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CpuStorage` and `grad_storage` [INFO] [stdout] --> src/tensor/base.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{grad_storage, GradientFunction, CpuStorage}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/tensor/shape.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tensor/shape.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] 73 + if a.device() != b.device() { panic!("Tensors not on same device!") } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeviceStorage` and `match_storage_assign` [INFO] [stdout] --> src/tensor/ops/reduction.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{DeviceStorage, MeanGrad, ProductGrad, Storage, SumGrad, Tensor, match_storage, match_storage_assign}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/tensor/storage/traits.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{rc::Rc, sync::RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/tensor/storage/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use base::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `DivAssign`, `Div`, `MulAssign`, `Mul`, `SubAssign`, and `Sub` [INFO] [stdout] --> src/tensor/device/cpu/kernels/arithmetic.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign, Div, DivAssign}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arithmetic::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use arithmetic::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blas::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use blas::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduction::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use reduction::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transform::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use transform::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activation::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use activation::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernels::*` [INFO] [stdout] --> src/tensor/device/cpu/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use kernels::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cuda::*` [INFO] [stdout] --> src/tensor/device/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use cuda::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::*` [INFO] [stdout] --> src/tensor/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use shape::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tensor::*` [INFO] [stdout] --> src/network/optimizer/optimizer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tensor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tensor/ops/reduction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result = Tensor::new(tensor, self.device(), requires_grad); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | let mut temp = tensor.grad().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | let mut storage = tensor.tensor_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/autograd/scalar/graph.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/base.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/traits.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard>; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/device/cpu/storage/base.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/reduction.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduce_grad` [INFO] [stdout] --> src/autograd/grad_fn/transform.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CpuStorage` and `grad_storage` [INFO] [stdout] --> src/tensor/base.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{grad_storage, GradientFunction, CpuStorage}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/tensor/shape.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/tensor/shape.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stdout] 73 + if a.device() != b.device() { panic!("Tensors not on same device!") } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeviceStorage` and `match_storage_assign` [INFO] [stdout] --> src/tensor/ops/reduction.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{DeviceStorage, MeanGrad, ProductGrad, Storage, SumGrad, Tensor, match_storage, match_storage_assign}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/tensor/storage/traits.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{rc::Rc, sync::RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/tensor/storage/traits.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use base::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/storage/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `DivAssign`, `Div`, `MulAssign`, `Mul`, `SubAssign`, and `Sub` [INFO] [stdout] --> src/tensor/device/cpu/kernels/arithmetic.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign, Div, DivAssign}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arithmetic::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use arithmetic::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blas::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use blas::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reduction::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use reduction::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transform::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use transform::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activation::*` [INFO] [stdout] --> src/tensor/device/cpu/kernels/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use activation::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernels::*` [INFO] [stdout] --> src/tensor/device/cpu/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use kernels::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cuda::*` [INFO] [stdout] --> src/tensor/device/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use cuda::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::*` [INFO] [stdout] --> src/tensor/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use shape::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/tensor/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `creation::*` [INFO] [stdout] --> src/tensor/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use creation::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tensor::*` [INFO] [stdout] --> src/network/optimizer/optimizer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tensor::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tensor/ops/reduction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result = Tensor::new(tensor, self.device(), requires_grad); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | let mut temp = tensor.grad().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/optimizer/gd.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | let mut storage = tensor.tensor_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/autograd/scalar/graph.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/base.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/storage/traits.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard>; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/device/cpu/storage/base.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 22.98s [INFO] running `Command { std: "docker" "inspect" "475a81dba6da6811264a9dd42655bc165fcfc9a0941c78f9ce1f75a866923aa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "475a81dba6da6811264a9dd42655bc165fcfc9a0941c78f9ce1f75a866923aa5", kill_on_drop: false }` [INFO] [stdout] 475a81dba6da6811264a9dd42655bc165fcfc9a0941c78f9ce1f75a866923aa5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bc53142e868a125612c3bde58745abf34ea803d99aba79cccd208bbdfafc8eee [INFO] running `Command { std: "docker" "start" "-a" "bc53142e868a125612c3bde58745abf34ea803d99aba79cccd208bbdfafc8eee", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `reduce_grad` [INFO] [stderr] --> src/autograd/grad_fn/reduction.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `reduce_grad` [INFO] [stderr] --> src/autograd/grad_fn/transform.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{reduce_grad, tensor::*}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CpuStorage` and `grad_storage` [INFO] [stderr] --> src/tensor/base.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::{grad_storage, GradientFunction, CpuStorage}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::any::Any` [INFO] [stderr] --> src/tensor/shape.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::any::Any; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/tensor/shape.rs:73:8 [INFO] [stderr] | [INFO] [stderr] 73 | if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 73 - if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stderr] 73 + if a.device() != b.device() { panic!("Tensors not on same device!") } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DeviceStorage` and `match_storage_assign` [INFO] [stderr] --> src/tensor/ops/reduction.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::{DeviceStorage, MeanGrad, ProductGrad, Storage, SumGrad, Tensor, match_storage, match_storage_assign}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rc::Rc` [INFO] [stderr] --> src/tensor/storage/traits.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use std::{rc::Rc, sync::RwLock}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cell::RefCell` [INFO] [stderr] --> src/tensor/storage/traits.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::cell::RefCell; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `base::*` [INFO] [stderr] --> src/tensor/storage/mod.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub use base::*; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `creation::*` [INFO] [stderr] --> src/tensor/storage/mod.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub use creation::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::*` [INFO] [stderr] --> src/tensor/storage/mod.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub use utils::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AddAssign`, `Add`, `DivAssign`, `Div`, `MulAssign`, `Mul`, `SubAssign`, and `Sub` [INFO] [stderr] --> src/tensor/device/cpu/kernels/arithmetic.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign, Div, DivAssign}; [INFO] [stderr] | ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `arithmetic::*` [INFO] [stderr] --> src/tensor/device/cpu/kernels/mod.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use arithmetic::*; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `blas::*` [INFO] [stderr] --> src/tensor/device/cpu/kernels/mod.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub use blas::*; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reduction::*` [INFO] [stderr] --> src/tensor/device/cpu/kernels/mod.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub use reduction::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `transform::*` [INFO] [stderr] --> src/tensor/device/cpu/kernels/mod.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub use transform::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `activation::*` [INFO] [stderr] --> src/tensor/device/cpu/kernels/mod.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub use activation::*; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `kernels::*` [INFO] [stderr] --> src/tensor/device/cpu/mod.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub use kernels::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cuda::*` [INFO] [stderr] --> src/tensor/device/mod.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub use cuda::*; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `shape::*` [INFO] [stderr] --> src/tensor/mod.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub use shape::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::*` [INFO] [stderr] --> src/tensor/mod.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub use utils::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `creation::*` [INFO] [stderr] --> src/tensor/mod.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub use creation::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::tensor::*` [INFO] [stderr] --> src/network/optimizer/optimizer.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::tensor::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tensor/ops/reduction.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 47 | let mut result = Tensor::new(tensor, self.device(), requires_grad); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/optimizer/gd.rs:22:11 [INFO] [stderr] | [INFO] [stderr] 22 | let mut temp = tensor.grad().unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/network/optimizer/gd.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | let mut storage = tensor.tensor_mut(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/autograd/scalar/graph.rs:71:17 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 71 | pub fn scalar(&self, data: f32, requires_grad: bool) -> Value<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tensor/storage/base.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tensor/storage/traits.rs:45:15 [INFO] [stderr] | [INFO] [stderr] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard>; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tensor/device/cpu/storage/base.rs:128:17 [INFO] [stderr] | [INFO] [stderr] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `ferrite-dl` (lib) generated 30 warnings (run `cargo fix --lib -p ferrite-dl` to apply 30 suggestions) [INFO] [stderr] warning: `ferrite-dl` (lib test) generated 30 warnings (30 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ferrite-4b6328ea43313510) [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] [stderr] Doc-tests ferrite [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/tensor/shape.rs:73:8 [INFO] [stderr] | [INFO] [stderr] 73 | if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 73 - if (a.device() != b.device()) { panic!("Tensors not on same device!") } [INFO] [stderr] 73 + if a.device() != b.device() { panic!("Tensors not on same device!") } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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" "bc53142e868a125612c3bde58745abf34ea803d99aba79cccd208bbdfafc8eee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc53142e868a125612c3bde58745abf34ea803d99aba79cccd208bbdfafc8eee", kill_on_drop: false }` [INFO] [stdout] bc53142e868a125612c3bde58745abf34ea803d99aba79cccd208bbdfafc8eee