[INFO] cloning repository https://github.com/t2hk/RustZeroDeepLearning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/t2hk/RustZeroDeepLearning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft2hk%2FRustZeroDeepLearning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft2hk%2FRustZeroDeepLearning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5701140904ef4bf3d5704977865a8169e4a3adc7 [INFO] checking t2hk/RustZeroDeepLearning against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft2hk%2FRustZeroDeepLearning" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/t2hk/RustZeroDeepLearning [INFO] finished tweaking git repo https://github.com/t2hk/RustZeroDeepLearning [INFO] tweaked toml for git repo https://github.com/t2hk/RustZeroDeepLearning written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/t2hk/RustZeroDeepLearning on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/t2hk/RustZeroDeepLearning 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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 03279c16102a99bd1f9a001a9742ce1646b27ffd2423166fa1866d7d5c1c8576 [INFO] running `Command { std: "docker" "start" "-a" "03279c16102a99bd1f9a001a9742ce1646b27ffd2423166fa1866d7d5c1c8576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03279c16102a99bd1f9a001a9742ce1646b27ffd2423166fa1866d7d5c1c8576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03279c16102a99bd1f9a001a9742ce1646b27ffd2423166fa1866d7d5c1c8576", kill_on_drop: false }` [INFO] [stdout] 03279c16102a99bd1f9a001a9742ce1646b27ffd2423166fa1866d7d5c1c8576 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 326d12f79f375e60c4a6f3104fb964d17815d3013eef4a2e22ae8dfbb496c56d [INFO] running `Command { std: "docker" "start" "-a" "326d12f79f375e60c4a6f3104fb964d17815d3013eef4a2e22ae8dfbb496c56d", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking libloading v0.8.6 [INFO] [stderr] Compiling cc v1.2.18 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Compiling font-kit v0.14.2 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking bytemuck v1.22.0 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking miniz_oxide v0.8.7 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking float-ord v0.3.2 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking jiff v0.2.5 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking rand_isaac v0.3.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking plotters-bitmap v0.3.7 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking ndarray-rand v0.15.0 [INFO] [stderr] Checking rust_zero_deeplearning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `series::PointSeries` [INFO] [stdout] --> src/modules/datasets.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | series::PointSeries, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/modules/datasets.rs:171:47 [INFO] [stdout] | [INFO] [stdout] 171 | let mut t: Array = Array::zeros((data_size)); [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] 171 - let mut t: Array = Array::zeros((data_size)); [INFO] [stdout] 171 + let mut t: Array = Array::zeros(data_size); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Axis` and `s` [INFO] [stdout] --> src/modules/math/get_item.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use ndarray::{s, Array, Axis, IxDyn}; [INFO] [stdout] | ^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::math::*` [INFO] [stdout] --> src/modules/math/linear.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::math::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::math::*` [INFO] [stdout] --> src/modules/math/matmul.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::math::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array1` [INFO] [stdout] --> src/modules/math/softmax.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{Array, Array1, Axis, IxDyn}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rc` and `Weak` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArrayViewMut`, `ArrayView`, `Ix0`, `Ix1`, `Zip`, and `s` [INFO] [stdout] --> src/modules/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | s, stack, Array, ArrayView, ArrayViewMut, Axis, Dimension, Ix0, Ix1, IxDyn, Slice, SliceInfo, [INFO] [stdout] | ^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ ^^^ [INFO] [stdout] 7 | SliceInfoElem, Zip, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: ambiguous glob re-exports [INFO] [stdout] --> src/modules.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use crate::modules::core::data_loader::*; [INFO] [stdout] | ------------------------------------ but the name `DataLoader` in the type namespace is also re-exported here [INFO] [stdout] ... [INFO] [stdout] 25 | pub use crate::modules::datasets::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `DataLoader` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [INFO] [stdout] = note: `#[deny(ambiguous_glob_reexports)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `modules::math::get_item_grad::*` [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use modules::math::get_item_grad::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/modules/core/data_loader.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | use rand::seq::SliceRandom; [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: `series::PointSeries` [INFO] [stdout] --> src/modules/datasets.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | series::PointSeries, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/modules/datasets.rs:171:47 [INFO] [stdout] | [INFO] [stdout] 171 | let mut t: Array = Array::zeros((data_size)); [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] 171 - let mut t: Array = Array::zeros((data_size)); [INFO] [stdout] 171 + let mut t: Array = Array::zeros(data_size); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::plot_dot_graph` [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | use crate::plot_dot_graph; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::plot_dot_graph` [INFO] [stdout] --> src/modules/layer_modules/two_layer_net.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use crate::plot_dot_graph; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/modules/math/factorial.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | use std::{cell::RefCell, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Axis` [INFO] [stdout] --> src/modules/math/get_item.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use ndarray::{s, Array, Axis, IxDyn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::math::*` [INFO] [stdout] --> src/modules/math/linear.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::math::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/modules/math/linear.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::math::*` [INFO] [stdout] --> src/modules/math/matmul.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::math::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/modules/math/sigmoid.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array1` [INFO] [stdout] --> src/modules/math/softmax.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{Array, Array1, Axis, IxDyn}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/modules/math/sum_to.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/modules/math/tanh.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rc` and `Weak` [INFO] [stdout] --> src/modules/optimizers/sgd.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArrayViewMut`, `ArrayView`, `Ix0`, `Ix1`, `Zip`, and `s` [INFO] [stdout] --> src/modules/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | s, stack, Array, ArrayView, ArrayViewMut, Axis, Dimension, Ix0, Ix1, IxDyn, Slice, SliceInfo, [INFO] [stdout] | ^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^ ^^^ [INFO] [stdout] 7 | SliceInfoElem, Zip, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: ambiguous glob re-exports [INFO] [stdout] --> src/modules.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use crate::modules::core::data_loader::*; [INFO] [stdout] | ------------------------------------ but the name `DataLoader` in the type namespace is also re-exported here [INFO] [stdout] ... [INFO] [stdout] 25 | pub use crate::modules::datasets::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the name `DataLoader` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [INFO] [stdout] = note: `#[deny(ambiguous_glob_reexports)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `modules::math::get_item_grad::*` [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use modules::math::get_item_grad::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Dimension` [INFO] [stdout] --> src/modules/utils.rs:6:53 [INFO] [stdout] | [INFO] [stdout] 6 | s, stack, Array, ArrayView, ArrayViewMut, Axis, Dimension, Ix0, Ix1, IxDyn, Slice, SliceInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/modules/core/layer.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | for (idx, key) in self.layers.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/modules/core/layer.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | for (idx, key_value) in self.layer_models.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (name, parameter) in self.parameters.iter_mut() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut layer = LayerExecutor::new(Rc::new(RefCell::new(ll))); [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: unused variable: `inputs` [INFO] [stdout] --> src/modules/math/get_item.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | inputs: Vec>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/math/reshape.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut gy = gys[0].clone(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/modules/utils.rs:780:52 [INFO] [stdout] | [INFO] [stdout] 780 | Some(DynamicSlice::Indices(indices)) => Slice { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim` [INFO] [stdout] --> src/modules/utils.rs:752:14 [INFO] [stdout] | [INFO] [stdout] 752 | for (dim, slice_opt) in self.slices.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/utils.rs:914:13 [INFO] [stdout] | [INFO] [stdout] 914 | let mut slice_info = self.create_slice_info(array.shape()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/modules/utils.rs:894:14 [INFO] [stdout] | [INFO] [stdout] 894 | for (i, slice_opt) in self.slices.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim` [INFO] [stdout] --> src/modules/utils.rs:999:9 [INFO] [stdout] | [INFO] [stdout] 999 | dim: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `shuffle` and `data_size` are never read [INFO] [stdout] --> src/modules/core/data_loader.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DataLoader { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | shuffle: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | data_size: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataLoader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of` is never used [INFO] [stdout] --> src/modules/core/function_libs.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn type_of(_: T) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nobias` is never read [INFO] [stdout] --> src/modules/layer_modules/linear.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct LinearLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | nobias: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LinearLayer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x_shape` is never read [INFO] [stdout] --> src/modules/math/get_item.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct GetItemFunction { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 14 | x_shape: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GetItemFunction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_zero_deeplearning` (lib) due to 2 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Dimension` [INFO] [stdout] --> src/modules/utils.rs:6:53 [INFO] [stdout] | [INFO] [stdout] 6 | s, stack, Array, ArrayView, ArrayViewMut, Axis, Dimension, Ix0, Ix1, IxDyn, Slice, SliceInfo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/core/data_loader.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut spiral_train_set = Dataset::init(true, Rc::new(RefCell::new(SpiralDataSet {}))); [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/modules/core/data_loader.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut spiral_test_set = Dataset::init(false, Rc::new(RefCell::new(SpiralDataSet {}))); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/modules/core/layer.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | for (idx, key) in self.layers.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/modules/core/layer.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | for (idx, key_value) in self.layer_models.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | for (name, parameter) in self.parameters.iter_mut() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut layer = LayerExecutor::new(Rc::new(RefCell::new(ll))); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lr` [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let lr = 0.2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hidden_size` [INFO] [stdout] --> src/modules/layer_modules/mlp.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let hidden_size = 10; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hidden_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/modules/math/get_item.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | inputs: Vec>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/modules/math/get_item.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | let slice = DynamicSlice::Range { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/math/reshape.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut gy = gys[0].clone(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/modules/utils.rs:780:52 [INFO] [stdout] | [INFO] [stdout] 780 | Some(DynamicSlice::Indices(indices)) => Slice { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim` [INFO] [stdout] --> src/modules/utils.rs:752:14 [INFO] [stdout] | [INFO] [stdout] 752 | for (dim, slice_opt) in self.slices.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/utils.rs:914:13 [INFO] [stdout] | [INFO] [stdout] 914 | let mut slice_info = self.create_slice_info(array.shape()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/modules/utils.rs:894:14 [INFO] [stdout] | [INFO] [stdout] 894 | for (i, slice_opt) in self.slices.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim` [INFO] [stdout] --> src/modules/utils.rs:999:9 [INFO] [stdout] | [INFO] [stdout] 999 | dim: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/modules/utils.rs:1507:13 [INFO] [stdout] | [INFO] [stdout] 1507 | let slice = DynamicSlice::Range { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/modules/utils.rs:1547:13 [INFO] [stdout] | [INFO] [stdout] 1547 | let slice = DynamicSlice::Range { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `shuffle` and `data_size` are never read [INFO] [stdout] --> src/modules/core/data_loader.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DataLoader { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | shuffle: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | data_size: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataLoader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of` is never used [INFO] [stdout] --> src/modules/core/function_libs.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn type_of(_: T) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nobias` is never read [INFO] [stdout] --> src/modules/layer_modules/linear.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct LinearLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | nobias: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LinearLayer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x_shape` is never read [INFO] [stdout] --> src/modules/math/get_item.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct GetItemFunction { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 14 | x_shape: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GetItemFunction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_zero_deeplearning` (lib test) due to 2 previous errors; 42 warnings emitted [INFO] running `Command { std: "docker" "inspect" "326d12f79f375e60c4a6f3104fb964d17815d3013eef4a2e22ae8dfbb496c56d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "326d12f79f375e60c4a6f3104fb964d17815d3013eef4a2e22ae8dfbb496c56d", kill_on_drop: false }` [INFO] [stdout] 326d12f79f375e60c4a6f3104fb964d17815d3013eef4a2e22ae8dfbb496c56d