[INFO] fetching crate ferrite-dl 0.2.0... [INFO] testing ferrite-dl-0.2.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate ferrite-dl 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate ferrite-dl 0.2.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate ferrite-dl 0.2.0 [INFO] tweaked toml for crates.io crate ferrite-dl 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ferrite-dl 0.2.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ferrite-dl 0.2.0 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f18b78880a52e3126c915f311e9da8ebdac1482683faa4e387c37766c6e789d1 [INFO] running `Command { std: "docker" "start" "-a" "f18b78880a52e3126c915f311e9da8ebdac1482683faa4e387c37766c6e789d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f18b78880a52e3126c915f311e9da8ebdac1482683faa4e387c37766c6e789d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f18b78880a52e3126c915f311e9da8ebdac1482683faa4e387c37766c6e789d1", kill_on_drop: false }` [INFO] [stdout] f18b78880a52e3126c915f311e9da8ebdac1482683faa4e387c37766c6e789d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ac3a3d65b077f0586480f268b0b932658b0735d4687e73d873a411f553fe817b [INFO] running `Command { std: "docker" "start" "-a" "ac3a3d65b077f0586480f268b0b932658b0735d4687e73d873a411f553fe817b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rayon v1.10.0 [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)]` 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)]` 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)]` 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: lifetime flowing from input to output with different syntax can be 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] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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 13.36s [INFO] running `Command { std: "docker" "inspect" "ac3a3d65b077f0586480f268b0b932658b0735d4687e73d873a411f553fe817b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac3a3d65b077f0586480f268b0b932658b0735d4687e73d873a411f553fe817b", kill_on_drop: false }` [INFO] [stdout] ac3a3d65b077f0586480f268b0b932658b0735d4687e73d873a411f553fe817b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9fd126675ef8b6255564e6f29cfc5acde8538dd69081c3a49325247a68b09861 [INFO] running `Command { std: "docker" "start" "-a" "9fd126675ef8b6255564e6f29cfc5acde8538dd69081c3a49325247a68b09861", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling oorandom v11.1.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling clap_builder v4.5.27 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [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 rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling criterion-plot v0.5.0 [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)]` 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)]` 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)]` 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: lifetime flowing from input to output with different syntax can be 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] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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)]` 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)]` 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)]` 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: lifetime flowing from input to output with different syntax can be 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] | ^^^^^ this lifetime flows to the output ----- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 34 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 128 | fn data_mut(&self) -> std::sync::RwLockWriteGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustczegOYZ/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "-lopenblas" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{librand-966fb4cdac996f79.rlib,librand_chacha-c51378c3e51e2a7f.rlib,libppv_lite86-675b92c29f26ab23.rlib,libzerocopy-5195dbae741bc159.rlib,libbyteorder-6dfa0ce667cc70fb.rlib,librand_core-57d42dd674a5856d.rlib,libgetrandom-aa48d55754834ba9.rlib,liblibc-43c3433c4a6dd1b5.rlib,libcfg_if-66d55f6b302e88c8.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustczegOYZ/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/examples/benchmark-3177991d08d391c5" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `get_num_procs': [INFO] [stdout] (.text+0x210): undefined reference to `__sched_cpualloc' [INFO] [stdout] /usr/bin/ld: (.text+0x25c): undefined reference to `__sched_cpufree' [INFO] [stdout] /usr/bin/ld: (.text+0x2b4): undefined reference to `__sched_cpufree' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `blas_memory_alloc': [INFO] [stdout] (.text+0x7d0): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x877): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `blas_memory_free': [INFO] [stdout] (.text+0x982): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `alloc_mmap_free.cold': [INFO] [stdout] (.text.unlikely+0x2d): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_nn.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x1198): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_nt.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x1178): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_tn.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x11c8): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_tt.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x11a8): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(xerbla.o): in function `__xerbla': [INFO] [stdout] (.text+0x1c): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(openblas_env.o): in function `openblas_read_env': [INFO] [stdout] (.text+0x9b): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0xca): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0xf9): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0x12a): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0x15a): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(openblas_env.o):(.text+0x18e): more undefined references to `__isoc23_strtol' follow [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(blas_server.o): in function `blas_thread_init': [INFO] [stdout] (.text+0x60a): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x6a1): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(dynamic.o): in function `gotoblas_dynamic_init': [INFO] [stdout] (.text+0x5c2): undefined reference to `__sprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x95e): undefined reference to `__snprintf_chk' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrite-dl` (example "benchmark") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcStgeiZ/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libferrite-d965889e9ab0e06d.rlib}.rlib" "-lopenblas" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{librand-966fb4cdac996f79.rlib,librand_chacha-c51378c3e51e2a7f.rlib,libppv_lite86-675b92c29f26ab23.rlib,libzerocopy-5195dbae741bc159.rlib,libbyteorder-6dfa0ce667cc70fb.rlib,librand_core-57d42dd674a5856d.rlib,libgetrandom-aa48d55754834ba9.rlib,liblibc-43c3433c4a6dd1b5.rlib,libcfg_if-66d55f6b302e88c8.rlib,librayon-75e1676852b09a9b.rlib,librayon_core-aa1ba359694adbc7.rlib,libcrossbeam_deque-7b1467e9406bcce1.rlib,libcrossbeam_epoch-7f2a1972b1339e08.rlib,libcrossbeam_utils-fb48174d8dac237b.rlib,libeither-a8706e9188860c5c.rlib,libndarray-9b541ff212ce124e.rlib,libmatrixmultiply-5d4385a59c8553b0.rlib,libnum_complex-0a35b1a4738ffc06.rlib,libnum_integer-c4cc2994b2e5d650.rlib,libnum_traits-d2d1e9803077770a.rlib,librawpointer-ee8696fe85e6dce4.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcStgeiZ/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/examples/main-dc55611ad3bfc127" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `get_num_procs': [INFO] [stdout] (.text+0x210): undefined reference to `__sched_cpualloc' [INFO] [stdout] /usr/bin/ld: (.text+0x25c): undefined reference to `__sched_cpufree' [INFO] [stdout] /usr/bin/ld: (.text+0x2b4): undefined reference to `__sched_cpufree' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `blas_memory_alloc': [INFO] [stdout] (.text+0x7d0): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x877): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `blas_memory_free': [INFO] [stdout] (.text+0x982): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(memory.o): in function `alloc_mmap_free.cold': [INFO] [stdout] (.text.unlikely+0x2d): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_nn.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x1198): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_nt.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x1178): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_tn.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x11c8): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(sgemm_thread_tt.o): in function `gemm_driver.isra.0': [INFO] [stdout] (.text+0x11a8): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(xerbla.o): in function `__xerbla': [INFO] [stdout] (.text+0x1c): undefined reference to `__printf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(openblas_env.o): in function `openblas_read_env': [INFO] [stdout] (.text+0x9b): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0xca): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0xf9): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0x12a): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: (.text+0x15a): undefined reference to `__isoc23_strtol' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(openblas_env.o):(.text+0x18e): more undefined references to `__isoc23_strtol' follow [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(blas_server.o): in function `blas_thread_init': [INFO] [stdout] (.text+0x60a): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x6a1): undefined reference to `__fprintf_chk' [INFO] [stdout] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libopenblas.a(dynamic.o): in function `gotoblas_dynamic_init': [INFO] [stdout] (.text+0x5c2): undefined reference to `__sprintf_chk' [INFO] [stdout] /usr/bin/ld: (.text+0x95e): undefined reference to `__snprintf_chk' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ferrite-dl` (example "main") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "9fd126675ef8b6255564e6f29cfc5acde8538dd69081c3a49325247a68b09861", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fd126675ef8b6255564e6f29cfc5acde8538dd69081c3a49325247a68b09861", kill_on_drop: false }` [INFO] [stdout] 9fd126675ef8b6255564e6f29cfc5acde8538dd69081c3a49325247a68b09861