[INFO] cloning repository https://github.com/AndreSbro03/RustNN [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AndreSbro03/RustNN" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndreSbro03%2FRustNN", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndreSbro03%2FRustNN'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02c5ff581456beecad9174da834e2a2d6ee3eabc [INFO] building AndreSbro03/RustNN 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%2FAndreSbro03%2FRustNN" "/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/AndreSbro03/RustNN 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/AndreSbro03/RustNN [INFO] finished tweaking git repo https://github.com/AndreSbro03/RustNN [INFO] tweaked toml for git repo https://github.com/AndreSbro03/RustNN written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AndreSbro03/RustNN 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fs_extra v1.3.0 [INFO] [stderr] Downloaded raylib v3.7.0 [INFO] [stderr] Downloaded raylib-sys v3.7.0 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c5c5881421c5aaaf568e01e75d0bc2901d8024968a3c6319051a9d1bb81f8a7 [INFO] running `Command { std: "docker" "start" "-a" "2c5c5881421c5aaaf568e01e75d0bc2901d8024968a3c6319051a9d1bb81f8a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c5c5881421c5aaaf568e01e75d0bc2901d8024968a3c6319051a9d1bb81f8a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c5c5881421c5aaaf568e01e75d0bc2901d8024968a3c6319051a9d1bb81f8a7", kill_on_drop: false }` [INFO] [stdout] 2c5c5881421c5aaaf568e01e75d0bc2901d8024968a3c6319051a9d1bb81f8a7 [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 -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] 288ef604c15279e1abd3355bb23a715c8321c93c05bdd9853764571cb8efdd1e [INFO] running `Command { std: "docker" "start" "-a" "288ef604c15279e1abd3355bb23a715c8321c93c05bdd9853764571cb8efdd1e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling ieee754 v0.2.6 [INFO] [stderr] Compiling fast-math v0.1.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling raylib-sys v3.7.0 [INFO] [stderr] Compiling raylib v3.7.0 [INFO] [stderr] Compiling image_learner v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `VISUAL_NN_POS` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const VISUAL_NN_POS: IntVec2 = IntVec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISUAL_NN_DIM` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const VISUAL_NN_DIM: IntVec2 = IntVec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISUAL_NN_NEURONS_RADIUS` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const VISUAL_NN_NEURONS_RADIUS: f32 = 20.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMG_2_FPATH` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const IMG_2_FPATH: &str = "images/6.png"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/main.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn relu(x: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leaky_relu` is never used [INFO] [stdout] --> src/main.rs:207:4 [INFO] [stdout] | [INFO] [stdout] 207 | fn leaky_relu(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AND` is never used [INFO] [stdout] --> src/bin/logicGates.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const AND: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OR` is never used [INFO] [stdout] --> src/bin/logicGates.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const OR: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `XOR` is never used [INFO] [stdout] --> src/bin/logicGates.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const XOR: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `derivate_sigmuid` is never used [INFO] [stdout] --> src/bin/logicGates.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn derivate_sigmuid(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Neuron; 789]` does not permit being left uninitialized [INFO] [stdout] --> src/bin/ImageLearn.rs:95:51 [INFO] [stdout] | [INFO] [stdout] 95 | let mut nrs: [Neuron; NUM_NEURONS] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `alloc::raw_vec::RawVec` must be initialized inside its custom valid range (in this struct field) [INFO] [stdout] --> src/bin/ImageLearn.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | w: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: because `alloc::raw_vec::RawVecInner` must be initialized inside its custom valid range [INFO] [stdout] = note: `std::ptr::Unique` must be non-null [INFO] [stdout] = note: because `std::ptr::NonNull` must be non-null [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[f64; 784]` does not permit being left uninitialized [INFO] [stdout] --> src/bin/ImageLearn.rs:550:42 [INFO] [stdout] | [INFO] [stdout] 550 | let mut out: [f64; INPUT] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: floats must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.24s [INFO] running `Command { std: "docker" "inspect" "288ef604c15279e1abd3355bb23a715c8321c93c05bdd9853764571cb8efdd1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "288ef604c15279e1abd3355bb23a715c8321c93c05bdd9853764571cb8efdd1e", kill_on_drop: false }` [INFO] [stdout] 288ef604c15279e1abd3355bb23a715c8321c93c05bdd9853764571cb8efdd1e [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 -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] 83ca09bb634572b8d407e0b80a7b761f076cf405db9396c6af214c26cc2b0bf2 [INFO] running `Command { std: "docker" "start" "-a" "83ca09bb634572b8d407e0b80a7b761f076cf405db9396c6af214c26cc2b0bf2", kill_on_drop: false }` [INFO] [stderr] Compiling image_learner v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `VISUAL_NN_POS` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | const VISUAL_NN_POS: IntVec2 = IntVec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISUAL_NN_DIM` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const VISUAL_NN_DIM: IntVec2 = IntVec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISUAL_NN_NEURONS_RADIUS` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const VISUAL_NN_NEURONS_RADIUS: f32 = 20.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMG_2_FPATH` is never used [INFO] [stdout] --> src/bin/ImageLearn.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const IMG_2_FPATH: &str = "images/6.png"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AND` is never used [INFO] [stdout] --> src/bin/logicGates.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const AND: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OR` is never used [INFO] [stdout] --> src/bin/logicGates.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const OR: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `XOR` is never used [INFO] [stdout] --> src/bin/logicGates.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const XOR: [[f64; 3]; NUM_TRAIN_SAMPLE] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `derivate_sigmuid` is never used [INFO] [stdout] --> src/bin/logicGates.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn derivate_sigmuid(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Neuron; 789]` does not permit being left uninitialized [INFO] [stdout] --> src/bin/ImageLearn.rs:95:51 [INFO] [stdout] | [INFO] [stdout] 95 | let mut nrs: [Neuron; NUM_NEURONS] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `alloc::raw_vec::RawVec` must be initialized inside its custom valid range (in this struct field) [INFO] [stdout] --> src/bin/ImageLearn.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | w: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: because `alloc::raw_vec::RawVecInner` must be initialized inside its custom valid range [INFO] [stdout] = note: `std::ptr::Unique` must be non-null [INFO] [stdout] = note: because `std::ptr::NonNull` must be non-null [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[f64; 784]` does not permit being left uninitialized [INFO] [stdout] --> src/bin/ImageLearn.rs:550:42 [INFO] [stdout] | [INFO] [stdout] 550 | let mut out: [f64; INPUT] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: floats must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/main.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn relu(x: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leaky_relu` is never used [INFO] [stdout] --> src/main.rs:207:4 [INFO] [stdout] | [INFO] [stdout] 207 | fn leaky_relu(x: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "83ca09bb634572b8d407e0b80a7b761f076cf405db9396c6af214c26cc2b0bf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83ca09bb634572b8d407e0b80a7b761f076cf405db9396c6af214c26cc2b0bf2", kill_on_drop: false }` [INFO] [stdout] 83ca09bb634572b8d407e0b80a7b761f076cf405db9396c6af214c26cc2b0bf2