[INFO] cloning repository https://github.com/nekechs/snailbrain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nekechs/snailbrain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnekechs%2Fsnailbrain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnekechs%2Fsnailbrain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0172a9aeeee3b6857f51e96caca4f74a390e6645 [INFO] checking nekechs/snailbrain against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnekechs%2Fsnailbrain" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nekechs/snailbrain on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nekechs/snailbrain [INFO] finished tweaking git repo https://github.com/nekechs/snailbrain [INFO] tweaked toml for git repo https://github.com/nekechs/snailbrain written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nekechs/snailbrain 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e38785563d2d9322d4127fcdf33085eaf60f465b621390d81cf3855a3f86b72 [INFO] running `Command { std: "docker" "start" "-a" "4e38785563d2d9322d4127fcdf33085eaf60f465b621390d81cf3855a3f86b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e38785563d2d9322d4127fcdf33085eaf60f465b621390d81cf3855a3f86b72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e38785563d2d9322d4127fcdf33085eaf60f465b621390d81cf3855a3f86b72", kill_on_drop: false }` [INFO] [stdout] 4e38785563d2d9322d4127fcdf33085eaf60f465b621390d81cf3855a3f86b72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d95c22e18845b06dd4b7f53a587a53b052cf11526f7624c87f426a4bbbfdae9 [INFO] running `Command { std: "docker" "start" "-a" "5d95c22e18845b06dd4b7f53a587a53b052cf11526f7624c87f426a4bbbfdae9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking snailbrain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/tens/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/tens/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | re_i32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | re_i32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | re_i64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | re_i64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | re_f32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | re_f64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | re_f32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | re_f64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | cm_i32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmI32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | cm_i32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmI32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | cm_f32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | cm_f32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Debug` and `rc::Rc` [INFO] [stdout] --> src/tens/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{rc::Rc, fmt::Debug}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Debug` and `rc::Rc` [INFO] [stdout] --> src/tens/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{rc::Rc, fmt::Debug}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/autograd/expr.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::{Add, Sub, Div}, cell::{RefCell, Ref}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::linalg::Dot` [INFO] [stdout] --> src/autograd/expr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::linalg::Dot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/autograd/expr.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::{Add, Sub, Div}, cell::{RefCell, Ref}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::linalg::Dot` [INFO] [stdout] --> src/autograd/expr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::linalg::Dot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawData` [INFO] [stdout] --> src/autograd/tape.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{prelude::*, RawData}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawData` [INFO] [stdout] --> src/autograd/tape.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{prelude::*, RawData}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{prelude::*, Zip, LinalgScalar}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{prelude::*, Zip, LinalgScalar}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/leaf.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/leaf.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/leaf.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{prelude::*, Zip}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/leaf.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{prelude::*, Zip}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{rc::Rc, cell::RefCell, borrow::Borrow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tens::view::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tens::view::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{rc::Rc, cell::RefCell, borrow::Borrow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tens::view::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tens::view::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Dot` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::linalg::{general_mat_vec_mul, Dot, general_mat_mul}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Dot` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::linalg::{general_mat_vec_mul, Dot, general_mat_mul}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/autograd/tape.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut nodes = self.nodes.borrow_mut(); [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/autograd/tape.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut nodes = self.nodes.borrow_mut(); [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: struct `TensorView` is never constructed [INFO] [stdout] --> src/tens/view.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TensorView { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TensorView` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VecStorage` is never constructed [INFO] [stdout] --> src/tens/vec_sto.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct VecStorage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VecStorage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TensorView` is never constructed [INFO] [stdout] --> src/tens/view.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TensorView { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TensorView` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DType` is never used [INFO] [stdout] --> src/tens/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum DType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VecStorage` is never constructed [INFO] [stdout] --> src/tens/vec_sto.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct VecStorage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VecStorage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `num_bytes` is never used [INFO] [stdout] --> src/tens/types.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl DType { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn num_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DType` is never used [INFO] [stdout] --> src/tens/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum DType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `operands` is never read [INFO] [stdout] --> src/autograd/tape.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) operands: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `num_bytes` is never used [INFO] [stdout] --> src/tens/types.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl DType { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn num_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl MatVecMulForward [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: LinalgScalar [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(mat_ref: &Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `operands` is never read [INFO] [stdout] --> src/autograd/tape.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) operands: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LeafForward{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | pub(crate) value: Rc>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl MatVecMulForward [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: LinalgScalar [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(mat_ref: &Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LeafForward{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | pub(crate) value: Rc>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/autograd/operations/leaf.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | / impl LeafForward [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | D: Dimension, [INFO] [stdout] 16 | | T: Clone + Zero [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 17 | { [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grad` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct LeafBackward { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 37 | pub(crate) grad: Rc>> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/autograd/operations/leaf.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | / impl LeafForward [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | D: Dimension, [INFO] [stdout] 16 | | T: Clone + Zero [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 17 | { [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grad` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct LeafBackward { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 37 | pub(crate) grad: Rc>> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = graph.from_elem_grad(Ix2(3, 4), 5.); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = graph.from_elem_grad(Ix2(3, 4), 5.); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.06s [INFO] running `Command { std: "docker" "inspect" "5d95c22e18845b06dd4b7f53a587a53b052cf11526f7624c87f426a4bbbfdae9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d95c22e18845b06dd4b7f53a587a53b052cf11526f7624c87f426a4bbbfdae9", kill_on_drop: false }` [INFO] [stdout] 5d95c22e18845b06dd4b7f53a587a53b052cf11526f7624c87f426a4bbbfdae9 [INFO] checking nekechs/snailbrain against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnekechs%2Fsnailbrain" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nekechs/snailbrain on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nekechs/snailbrain [INFO] finished tweaking git repo https://github.com/nekechs/snailbrain [INFO] tweaked toml for git repo https://github.com/nekechs/snailbrain written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nekechs/snailbrain 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35ca51643410dc54699424a708725476c53cc3a7a14e4dd606032b908f780c46 [INFO] running `Command { std: "docker" "start" "-a" "35ca51643410dc54699424a708725476c53cc3a7a14e4dd606032b908f780c46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35ca51643410dc54699424a708725476c53cc3a7a14e4dd606032b908f780c46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35ca51643410dc54699424a708725476c53cc3a7a14e4dd606032b908f780c46", kill_on_drop: false }` [INFO] [stdout] 35ca51643410dc54699424a708725476c53cc3a7a14e4dd606032b908f780c46 [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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e5458e531cf26c2b9a464966a66f6f3a8dd9cce57435224ffe2ab85c78951f7 [INFO] running `Command { std: "docker" "start" "-a" "5e5458e531cf26c2b9a464966a66f6f3a8dd9cce57435224ffe2ab85c78951f7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking snailbrain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/tens/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | re_i32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | re_i64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | re_f32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | re_f64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | cm_i32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmI32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | cm_f32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Debug` and `rc::Rc` [INFO] [stdout] --> src/tens/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{rc::Rc, fmt::Debug}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/autograd/expr.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::{Add, Sub, Div}, cell::{RefCell, Ref}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::linalg::Dot` [INFO] [stdout] --> src/autograd/expr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::linalg::Dot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawData` [INFO] [stdout] --> src/autograd/tape.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{prelude::*, RawData}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{prelude::*, Zip, LinalgScalar}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/leaf.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/leaf.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{prelude::*, Zip}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{rc::Rc, cell::RefCell, borrow::Borrow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tens::view::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tens::view::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/tens/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | re_i32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_i64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | re_i64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReI64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | re_f32, // 4 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `re_f64` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | re_f64, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `ReF64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_i32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | cm_i32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmI32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `cm_f32` should have an upper camel case name [INFO] [stdout] --> src/tens/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | cm_f32, // 8 bytes [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `CmF32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Debug` and `rc::Rc` [INFO] [stdout] --> src/tens/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{rc::Rc, fmt::Debug}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/autograd/expr.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{ops::{Add, Sub, Div}, cell::{RefCell, Ref}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::linalg::Dot` [INFO] [stdout] --> src/autograd/expr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::linalg::Dot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawData` [INFO] [stdout] --> src/autograd/tape.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use ndarray::{prelude::*, RawData}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{prelude::*, Zip, LinalgScalar}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/autograd/operations/leaf.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zip` [INFO] [stdout] --> src/autograd/operations/leaf.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{prelude::*, Zip}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `cell::RefCell`, and `rc::Rc` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{rc::Rc, cell::RefCell, borrow::Borrow}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tens::view::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tens::view::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Dot` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::linalg::{general_mat_vec_mul, Dot, general_mat_mul}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Dot` [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::linalg::{general_mat_vec_mul, Dot, general_mat_mul}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/autograd/tape.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut nodes = self.nodes.borrow_mut(); [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/autograd/tape.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut nodes = self.nodes.borrow_mut(); [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: struct `TensorView` is never constructed [INFO] [stdout] --> src/tens/view.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TensorView { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TensorView` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VecStorage` is never constructed [INFO] [stdout] --> src/tens/vec_sto.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct VecStorage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VecStorage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DType` is never used [INFO] [stdout] --> src/tens/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum DType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `num_bytes` is never used [INFO] [stdout] --> src/tens/types.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl DType { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn num_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `operands` is never read [INFO] [stdout] --> src/autograd/tape.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) operands: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl MatVecMulForward [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: LinalgScalar [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(mat_ref: &Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LeafForward{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | pub(crate) value: Rc>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TensorView` is never constructed [INFO] [stdout] --> src/tens/view.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TensorView { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TensorView` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/autograd/operations/leaf.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | / impl LeafForward [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | D: Dimension, [INFO] [stdout] 16 | | T: Clone + Zero [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 17 | { [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VecStorage` is never constructed [INFO] [stdout] --> src/tens/vec_sto.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct VecStorage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VecStorage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grad` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct LeafBackward { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 37 | pub(crate) grad: Rc>> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DType` is never used [INFO] [stdout] --> src/tens/types.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum DType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `num_bytes` is never used [INFO] [stdout] --> src/tens/types.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl DType { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn num_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = graph.from_elem_grad(Ix2(3, 4), 5.); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `operands` is never read [INFO] [stdout] --> src/autograd/tape.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) operands: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl MatVecMulForward [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: LinalgScalar [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(mat_ref: &Rc>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LeafForward{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | pub(crate) value: Rc>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/expr.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 73 | let lhs_arr = self.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let rhs_arr = rhs.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 82 | let mut grad_ref = None; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 83 | let bw: Option> = if self.grad_exists() || rhs.grad_exists() { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 84 | let grad = Rc::from(RefCell::new(Array::zeros(lhs_arr.dim()))); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 101 | let sum_ref = Rc::from(RefCell::new(&*lhs_arr + &*rhs_arr)); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let new_node = Node { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | output: sum_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/autograd/operations/leaf.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 13 | / impl LeafForward [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | D: Dimension, [INFO] [stdout] 16 | | T: Clone + Zero [INFO] [stdout] | |___________________- associated function in this implementation [INFO] [stdout] 17 | { [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grad` is never read [INFO] [stdout] --> src/autograd/operations/leaf.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct LeafBackward { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 37 | pub(crate) grad: Rc>> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = graph.from_elem_grad(Ix2(3, 4), 5.); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/expr.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 127 | let mat_ref = self.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 128 | let vec_ref = rhs.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 139 | let mut grad_ref = None; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 140 | let bw: Option> = if self.grad_exists() || rhs.grad_exists() { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 141 | let grad = Rc::from(RefCell::new(Array::zeros(mat_rows))); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 159 | let output_ref = Rc::from(RefCell::new(Array1::zeros(mat_rows))); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 160 | let new_node = Node { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 173 | output: output_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_elem<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 41 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim, val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | output: arr_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_elem<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 41 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim, val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 55 | grad: None [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn from_elem_grad<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim.clone(), val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let grad_ref = Rc::from(RefCell::new(Array::zeros(dim))); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 80 | output: arr_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn from_elem_grad<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim.clone(), val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let grad_ref = Rc::from(RefCell::new(Array::zeros(dim))); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 81 | grad: Some(grad_ref.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 30 | matrix: mat_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/expr.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 73 | let lhs_arr = self.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let rhs_arr = rhs.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 82 | let mut grad_ref = None; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 83 | let bw: Option> = if self.grad_exists() || rhs.grad_exists() { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 84 | let grad = Rc::from(RefCell::new(Array::zeros(lhs_arr.dim()))); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 101 | let sum_ref = Rc::from(RefCell::new(&*lhs_arr + &*rhs_arr)); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let new_node = Node { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | output: sum_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 31 | vector: vec_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 32 | output: new.clone() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/expr.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 127 | let mat_ref = self.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 128 | let vec_ref = rhs.output.borrow(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 139 | let mut grad_ref = None; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 140 | let bw: Option> = if self.grad_exists() || rhs.grad_exists() { [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 141 | let grad = Rc::from(RefCell::new(Array::zeros(mat_rows))); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 159 | let output_ref = Rc::from(RefCell::new(Array1::zeros(mat_rows))); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 160 | let new_node = Node { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 173 | output: output_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/leaf.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let arr: Array = ArrayBase::zeros(shape); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | let arr_ref = Rc::from(RefCell::new(arr)); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | ( [INFO] [stdout] 22 | / LeafForward { [INFO] [stdout] 23 | | value: arr_ref.clone(), [INFO] [stdout] 24 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_elem<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 41 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim, val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | output: arr_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn from_elem<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 41 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim, val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 55 | grad: None [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn from_elem_grad<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim.clone(), val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let grad_ref = Rc::from(RefCell::new(Array::zeros(dim))); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 80 | output: arr_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/tape.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn from_elem_grad<'t, T, D>(&'t self, dim: D, val: T) -> Expression<'t, T, D> [INFO] [stdout] | ------ ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | let arr_ref = Rc::from(RefCell::new(Array::from_elem(dim.clone(), val))); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let grad_ref = Rc::from(RefCell::new(Array::zeros(dim))); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | let leaf_node = Node { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 81 | grad: Some(grad_ref.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 30 | matrix: mat_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 31 | vector: vec_ref.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/matvecmul.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 23 | let mat = mat_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let vec = vec_ref.borrow(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let new = Rc::from(RefCell::new((mat).dot(&*vec))); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 32 | output: new.clone() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/autograd/operations/leaf.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn zeros(shape: D) -> (Self, Rc>>){ [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let arr: Array = ArrayBase::zeros(shape); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | let arr_ref = Rc::from(RefCell::new(arr)); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | ( [INFO] [stdout] 22 | / LeafForward { [INFO] [stdout] 23 | | value: arr_ref.clone(), [INFO] [stdout] 24 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `snailbrain` (bin "snailbrain") due to 11 previous errors; 29 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `snailbrain` (bin "snailbrain" test) due to 11 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5e5458e531cf26c2b9a464966a66f6f3a8dd9cce57435224ffe2ab85c78951f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e5458e531cf26c2b9a464966a66f6f3a8dd9cce57435224ffe2ab85c78951f7", kill_on_drop: false }` [INFO] [stdout] 5e5458e531cf26c2b9a464966a66f6f3a8dd9cce57435224ffe2ab85c78951f7