[INFO] cloning repository https://github.com/jaroslaw-weber/rust-ml-from-scratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jaroslaw-weber/rust-ml-from-scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaroslaw-weber%2Frust-ml-from-scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaroslaw-weber%2Frust-ml-from-scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6eaecb746eae46b8964018a9846b1aa6f911d3b7 [INFO] building jaroslaw-weber/rust-ml-from-scratch against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaroslaw-weber%2Frust-ml-from-scratch" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jaroslaw-weber/rust-ml-from-scratch on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jaroslaw-weber/rust-ml-from-scratch [INFO] finished tweaking git repo https://github.com/jaroslaw-weber/rust-ml-from-scratch [INFO] tweaked toml for git repo https://github.com/jaroslaw-weber/rust-ml-from-scratch written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jaroslaw-weber/rust-ml-from-scratch 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jpeg-decoder v0.1.12 [INFO] [stderr] Downloaded deque v0.3.2 [INFO] [stderr] Downloaded rayon-core v1.0.2 [INFO] [stderr] Downloaded deflate v0.7.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4943af3670430ace9ac85bcd0e2a51939f0d2f89216dc093ab8a586ff21c83b5 [INFO] running `Command { std: "docker" "start" "-a" "4943af3670430ace9ac85bcd0e2a51939f0d2f89216dc093ab8a586ff21c83b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4943af3670430ace9ac85bcd0e2a51939f0d2f89216dc093ab8a586ff21c83b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4943af3670430ace9ac85bcd0e2a51939f0d2f89216dc093ab8a586ff21c83b5", kill_on_drop: false }` [INFO] [stdout] 4943af3670430ace9ac85bcd0e2a51939f0d2f89216dc093ab8a586ff21c83b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] deebbdcff5afdf29a0915a3ace320ffbf16d5c038d0a320fb6a4bf1fe0ca8856 [INFO] running `Command { std: "docker" "start" "-a" "deebbdcff5afdf29a0915a3ace320ffbf16d5c038d0a320fb6a4bf1fe0ca8856", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.23 [INFO] [stderr] Compiling num-traits v0.1.37 [INFO] [stderr] Compiling rayon-core v1.0.2 [INFO] [stderr] Compiling byteorder v1.0.0 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling deque v0.3.2 [INFO] [stderr] Compiling adler32 v1.0.0 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling color_quant v1.0.0 [INFO] [stderr] Compiling inflate v0.2.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.7 [INFO] [stderr] Compiling deflate v0.7.11 [INFO] [stderr] Compiling gif v0.9.1 [INFO] [stderr] Compiling num_cpus v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.34 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling num-iter v0.1.33 [INFO] [stderr] Compiling num-rational v0.1.36 [INFO] [stderr] Compiling rayon v0.7.1 [INFO] [stderr] Compiling png v0.7.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.12 [INFO] [stderr] Compiling image v0.13.0 [INFO] [stderr] Compiling rust_machine_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/matrix.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | (index as usize) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 42 - (index as usize) [INFO] [stdout] 42 + index as usize [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix.rs:248:83 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn matrix_on_matrix_operation(&self, other_matrix:&Matrix, combine_function:&Fn(f32,f32)->f32)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 248 | pub fn matrix_on_matrix_operation(&self, other_matrix:&Matrix, combine_function:&dyn Fn(f32,f32)->f32)->Matrix [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix.rs:261:37 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn map(&self, function_to_map:&Fn(f32)->f32)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 261 | pub fn map(&self, function_to_map:&dyn Fn(f32)->f32)->Matrix [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sum`, `max`, and `divn` are never used [INFO] [stdout] --> src/matrix.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl Matrix [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn sum(&self)->f32 [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn max(&self)->f32 [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn divn(&self, number:f32)->Matrix [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax` is never used [INFO] [stdout] --> src/activations.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn softmax(x:&Matrix)->Matrix [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax_stable` is never used [INFO] [stdout] --> src/activations.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn softmax_stable(x:&Matrix)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/activations.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn relu(x:&Matrix, derivative:bool)->Matrix [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.00s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "deebbdcff5afdf29a0915a3ace320ffbf16d5c038d0a320fb6a4bf1fe0ca8856", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "deebbdcff5afdf29a0915a3ace320ffbf16d5c038d0a320fb6a4bf1fe0ca8856", kill_on_drop: false }` [INFO] [stdout] deebbdcff5afdf29a0915a3ace320ffbf16d5c038d0a320fb6a4bf1fe0ca8856 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 280a1940c5ad6f1b63edf2fdf01c552b78916e602d11498871c50ee7acbdc763 [INFO] running `Command { std: "docker" "start" "-a" "280a1940c5ad6f1b63edf2fdf01c552b78916e602d11498871c50ee7acbdc763", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rust_machine_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/matrix.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | (index as usize) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 42 - (index as usize) [INFO] [stdout] 42 + index as usize [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix.rs:248:83 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn matrix_on_matrix_operation(&self, other_matrix:&Matrix, combine_function:&Fn(f32,f32)->f32)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 248 | pub fn matrix_on_matrix_operation(&self, other_matrix:&Matrix, combine_function:&dyn Fn(f32,f32)->f32)->Matrix [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix.rs:261:37 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn map(&self, function_to_map:&Fn(f32)->f32)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 261 | pub fn map(&self, function_to_map:&dyn Fn(f32)->f32)->Matrix [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sum`, `max`, and `divn` are never used [INFO] [stdout] --> src/matrix.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl Matrix [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn sum(&self)->f32 [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn max(&self)->f32 [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn divn(&self, number:f32)->Matrix [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax` is never used [INFO] [stdout] --> src/activations.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn softmax(x:&Matrix)->Matrix [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax_stable` is never used [INFO] [stdout] --> src/activations.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn softmax_stable(x:&Matrix)->Matrix [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/activations.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn relu(x:&Matrix, derivative:bool)->Matrix [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "280a1940c5ad6f1b63edf2fdf01c552b78916e602d11498871c50ee7acbdc763", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "280a1940c5ad6f1b63edf2fdf01c552b78916e602d11498871c50ee7acbdc763", kill_on_drop: false }` [INFO] [stdout] 280a1940c5ad6f1b63edf2fdf01c552b78916e602d11498871c50ee7acbdc763