[INFO] fetching crate puffpastry 0.1.0... [INFO] checking puffpastry-0.1.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate puffpastry 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate puffpastry 0.1.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate puffpastry 0.1.0 [INFO] finished tweaking crates.io crate puffpastry 0.1.0 [INFO] tweaked toml for crates.io crate puffpastry 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate crates.io crate puffpastry 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded csv v1.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 288b5adfa9d8113cfa95ec6f481812dd242a1cf143b22798dad002986cd08974 [INFO] running `Command { std: "docker" "start" "-a" "288b5adfa9d8113cfa95ec6f481812dd242a1cf143b22798dad002986cd08974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "288b5adfa9d8113cfa95ec6f481812dd242a1cf143b22798dad002986cd08974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "288b5adfa9d8113cfa95ec6f481812dd242a1cf143b22798dad002986cd08974", kill_on_drop: false }` [INFO] [stdout] 288b5adfa9d8113cfa95ec6f481812dd242a1cf143b22798dad002986cd08974 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56ad3edf72fc3c4ea64343ee82fcd226d79c8a7602b2071371743ce09058960e [INFO] running `Command { std: "docker" "start" "-a" "56ad3edf72fc3c4ea64343ee82fcd226d79c8a7602b2071371743ce09058960e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking puffpastry v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Activation`, `Transpose`, `self` [INFO] [stdout] --> src/loss.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | vec_tools::{self, Transpose, ValidNumber}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | Activation, Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::activation::Activation` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::activation::Activation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddVec`, `ElementwiseMatrixMultiply`, `self` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/vec_tools.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec_tools::MatrixMultiply` [INFO] [stdout] --> src/activation.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Activation`, `Transpose`, `self` [INFO] [stdout] --> src/loss.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | vec_tools::{self, Transpose, ValidNumber}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | Activation, Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::activation::Activation` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::activation::Activation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddVec`, `ElementwiseMatrixMultiply`, `self` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/vec_tools.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truth` [INFO] [stdout] --> src/vec_tools.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let truth = vec![vec![14.0], vec![32.0], vec![50.0]]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_truth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StringRecord` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use csv::{Reader, StringRecord}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{self, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Activation`, `Transpose`, `self` [INFO] [stdout] --> src/loss.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | vec_tools::{self, Transpose, ValidNumber}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | Activation, Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::activation::Activation` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::activation::Activation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddVec`, `ElementwiseMatrixMultiply`, `self` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/vec_tools.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StringRecord` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use csv::{Reader, StringRecord}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{self, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec_tools::MatrixMultiply` [INFO] [stdout] --> src/activation.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Activation`, `Transpose`, `self` [INFO] [stdout] --> src/loss.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | vec_tools::{self, Transpose, ValidNumber}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | Activation, Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::activation::Activation` [INFO] [stdout] --> src/model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::activation::Activation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddVec`, `ElementwiseMatrixMultiply`, `self` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | self, AddVec, ElementwiseMatrixMultiply, MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Sigmoid`, and `Relu` are never constructed [INFO] [stdout] --> src/activation.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Activation { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Sigmoid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Relu, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Activation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `activate_num` is never used [INFO] [stdout] --> src/activation.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Activation { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn activate_num>(&self, num: T) -> T { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_weights_biases` is never used [INFO] [stdout] --> src/layer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl> Dense { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from_weights_biases( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_size` is never used [INFO] [stdout] --> src/layer.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl> Conv2d { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 101 | pub fn from_size( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MeanSquaredError` is never constructed [INFO] [stdout] --> src/loss.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Loss { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 8 | MeanSquaredError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Loss` 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: associated function `new` is never used [INFO] [stdout] --> src/model.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl> Model { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(loss: Loss) -> Model { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/tensor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl> Tensor { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_mut(&mut self, loc: &[usize]) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `row_count` and `col_count` are never used [INFO] [stdout] --> src/tensor.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl> Tensor { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] 205 | pub fn row_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn col_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_vec` is never used [INFO] [stdout] --> src/vec_tools.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait AddVec { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 31 | fn add_vec(&self, other: &Vec) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elementwise_multiply` is never used [INFO] [stdout] --> src/vec_tools.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait ElementwiseMatrixMultiply { [INFO] [stdout] | ------------------------- method in this trait [INFO] [stdout] 44 | fn elementwise_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matrix_multiply` is never used [INFO] [stdout] --> src/vec_tools.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub trait MatrixMultiply { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | write!(f, "{} ", elem); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | writeln!(f); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/vec_tools.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truth` [INFO] [stdout] --> src/vec_tools.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let truth = vec![vec![14.0], vec![32.0], vec![50.0]]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_truth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Relu` is never constructed [INFO] [stdout] --> src/activation.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Activation { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Relu, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Activation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `activate_num` is never used [INFO] [stdout] --> src/activation.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Activation { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn activate_num>(&self, num: T) -> T { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_weights_biases` is never used [INFO] [stdout] --> src/layer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl> Dense { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from_weights_biases( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_size` is never used [INFO] [stdout] --> src/layer.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl> Conv2d { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 101 | pub fn from_size( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl> Model { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(loss: Loss) -> Model { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/tensor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl> Tensor { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_mut(&mut self, loc: &[usize]) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `row_count` and `col_count` are never used [INFO] [stdout] --> src/tensor.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl> Tensor { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] 205 | pub fn row_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn col_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_vec` is never used [INFO] [stdout] --> src/vec_tools.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait AddVec { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 31 | fn add_vec(&self, other: &Vec) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | write!(f, "{} ", elem); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | writeln!(f); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.53s [INFO] running `Command { std: "docker" "inspect" "56ad3edf72fc3c4ea64343ee82fcd226d79c8a7602b2071371743ce09058960e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56ad3edf72fc3c4ea64343ee82fcd226d79c8a7602b2071371743ce09058960e", kill_on_drop: false }` [INFO] [stdout] 56ad3edf72fc3c4ea64343ee82fcd226d79c8a7602b2071371743ce09058960e [INFO] checking puffpastry-0.1.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] extracting crate puffpastry 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate puffpastry 0.1.0 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate puffpastry 0.1.0 [INFO] finished tweaking crates.io crate puffpastry 0.1.0 [INFO] tweaked toml for crates.io crate puffpastry 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate puffpastry 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] acf9011ef759b011ec37fad5693e85415fd0e1364be1322c320c1383ec8cc299 [INFO] running `Command { std: "docker" "start" "-a" "acf9011ef759b011ec37fad5693e85415fd0e1364be1322c320c1383ec8cc299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "acf9011ef759b011ec37fad5693e85415fd0e1364be1322c320c1383ec8cc299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acf9011ef759b011ec37fad5693e85415fd0e1364be1322c320c1383ec8cc299", kill_on_drop: false }` [INFO] [stdout] acf9011ef759b011ec37fad5693e85415fd0e1364be1322c320c1383ec8cc299 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4c175314d1ee5f9504de031021ff9ae73fc197c69c2081ca9ed14ecdf089e46 [INFO] running `Command { std: "docker" "start" "-a" "f4c175314d1ee5f9504de031021ff9ae73fc197c69c2081ca9ed14ecdf089e46", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking puffpastry v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/vec_tools.rs (1 fix) [INFO] [stderr] Fixed src/loss.rs (1 fix) [INFO] [stderr] Fixed src/model.rs (2 fixes) [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec_tools::MatrixMultiply` [INFO] [stdout] --> src/activation.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate rand; [INFO] [stdout] | ------------------ the item `rand` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | --------------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 117 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `MatrixMultiply` which provides `matrix_multiply` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:130:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | --------------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 130 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `MatrixMultiply` which provides `matrix_multiply` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 137 | let res = vec![input.clone()].transposed().transposed(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 147 | let res = mat1.transposed().elementwise_multiply(&mat2.transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:147:64 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 147 | let res = mat1.transposed().elementwise_multiply(&mat2.transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:149:51 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 149 | assert_eq!(res, vec![vec![3.0, 4.0, 3.0]].transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `puffpastry` (lib test) due to 7 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ the item `rand` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Sigmoid`, and `Relu` are never constructed [INFO] [stdout] --> src/activation.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Activation { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Sigmoid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Relu, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Activation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `activate_num` is never used [INFO] [stdout] --> src/activation.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Activation { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn activate_num>(&self, num: T) -> T { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_weights_biases` is never used [INFO] [stdout] --> src/layer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl> Dense { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from_weights_biases( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_size` is never used [INFO] [stdout] --> src/layer.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl> Conv2d { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 101 | pub fn from_size( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MeanSquaredError` is never constructed [INFO] [stdout] --> src/loss.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Loss { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 7 | MeanSquaredError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Loss` 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: associated function `new` is never used [INFO] [stdout] --> src/model.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl> Model { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(loss: Loss) -> Model { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/tensor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl> Tensor { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_mut(&mut self, loc: &[usize]) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `row_count` and `col_count` are never used [INFO] [stdout] --> src/tensor.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl> Tensor { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] 205 | pub fn row_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn col_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_vec` is never used [INFO] [stdout] --> src/vec_tools.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait AddVec { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 31 | fn add_vec(&self, other: &Vec) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elementwise_multiply` is never used [INFO] [stdout] --> src/vec_tools.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait ElementwiseMatrixMultiply { [INFO] [stdout] | ------------------------- method in this trait [INFO] [stdout] 44 | fn elementwise_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matrix_multiply` is never used [INFO] [stdout] --> src/vec_tools.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub trait MatrixMultiply { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | write!(f, "{} ", elem); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | writeln!(f); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` which comes from the expansion of the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec_tools::MatrixMultiply` [INFO] [stdout] --> src/activation.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/layer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand; [INFO] [stdout] | ^^^^^^^^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | --------------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 117 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `MatrixMultiply` which provides `matrix_multiply` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matrix_multiply` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:130:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn matrix_multiply(&self, other: &Vec>) -> Vec>; [INFO] [stdout] | --------------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 130 | let res = mat1.matrix_multiply(&mat2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `MatrixMultiply` which provides `matrix_multiply` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::MatrixMultiply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 137 | let res = vec![input.clone()].transposed().transposed(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 147 | let res = mat1.transposed().elementwise_multiply(&mat2.transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:147:64 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 147 | let res = mat1.transposed().elementwise_multiply(&mat2.transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `puffpastry` (bin "puffpastry" test) due to 7 previous errors; 6 warnings emitted [INFO] [stdout] error[E0599]: no method named `transposed` found for struct `Vec>` in the current scope [INFO] [stdout] --> src/vec_tools.rs:149:51 [INFO] [stdout] | [INFO] [stdout] 74 | fn transposed(&self) -> Vec>; [INFO] [stdout] | ---------- the method is available for `Vec>` here [INFO] [stdout] ... [INFO] [stdout] 149 | assert_eq!(res, vec![vec![3.0, 4.0, 3.0]].transposed()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Transpose` which provides `transposed` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 113 + use crate::vec_tools::Transpose; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/activation.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vec_tools::{Transpose, ValidNumber}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transpose` [INFO] [stdout] --> src/model.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MatrixMultiply` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | MatrixMultiply, Transpose, ValidNumber, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> src/layer.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | stride: (usize, usize), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f4c175314d1ee5f9504de031021ff9ae73fc197c69c2081ca9ed14ecdf089e46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4c175314d1ee5f9504de031021ff9ae73fc197c69c2081ca9ed14ecdf089e46", kill_on_drop: false }` [INFO] [stdout] f4c175314d1ee5f9504de031021ff9ae73fc197c69c2081ca9ed14ecdf089e46