[INFO] cloning repository https://github.com/is8ac/bnn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/is8ac/bnn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fis8ac%2Fbnn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fis8ac%2Fbnn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77fbba2beefa37b5f4aec9c6a7d0fdc9722b7e88 [INFO] checking is8ac/bnn against try#b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8 for pr-78363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fis8ac%2Fbnn" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/is8ac/bnn on toolchain b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/is8ac/bnn [INFO] finished tweaking git repo https://github.com/is8ac/bnn [INFO] tweaked toml for git repo https://github.com/is8ac/bnn written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/is8ac/bnn already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 346d720ac93270d18cb14a7597965649b1d9f8cf4724797cc801a4c9d96a17e6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "346d720ac93270d18cb14a7597965649b1d9f8cf4724797cc801a4c9d96a17e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "346d720ac93270d18cb14a7597965649b1d9f8cf4724797cc801a4c9d96a17e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "346d720ac93270d18cb14a7597965649b1d9f8cf4724797cc801a4c9d96a17e6", kill_on_drop: false }` [INFO] [stdout] 346d720ac93270d18cb14a7597965649b1d9f8cf4724797cc801a4c9d96a17e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+b2c2190fa7bf856bb0ed5e8806266e3a2135c6f8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de8ef9f9500ee68b04fc16d31fbe9a31d4292e8ba1815a1870bf7c59e232c436 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "de8ef9f9500ee68b04fc16d31fbe9a31d4292e8ba1815a1870bf7c59e232c436", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.31 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling standback v0.2.9 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_hc v0.2.0 [INFO] [stderr] Checking rayon-core v1.7.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking bnn v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `IndexMap` [INFO] [stdout] --> src/bits.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::shape::{Element, IndexMap, LongDefault, Shape, Wrap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/bits.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::count::IncrementCounters` [INFO] [stdout] --> src/image2d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::count::IncrementCounters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Merge`, `ZipMap` [INFO] [stdout] --> src/image2d.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shape::{Element, Merge, Shape, ZipMap}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/image2d.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash`, `Hasher` [INFO] [stdout] --> src/image2d.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/bits.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IndexMap` [INFO] [stdout] --> src/bits.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::shape::{Element, IndexMap, LongDefault, Shape, Wrap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/bits.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shape::Shape` [INFO] [stdout] --> src/bits.rs:1564:9 [INFO] [stdout] | [INFO] [stdout] 1564 | use crate::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::count::IncrementCounters` [INFO] [stdout] --> src/image2d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::count::IncrementCounters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Merge`, `ZipMap` [INFO] [stdout] --> src/image2d.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::shape::{Element, Merge, Shape, ZipMap}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/image2d.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash`, `Hasher` [INFO] [stdout] --> src/image2d.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/bits.rs:745:5 [INFO] [stdout] | [INFO] [stdout] 745 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/bits.rs:1624:17 [INFO] [stdout] | [INFO] [stdout] 1624 | for val in ::states() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/bits.rs:1655:17 [INFO] [stdout] | [INFO] [stdout] 1655 | for val in >::states() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/bits.rs:1685:17 [INFO] [stdout] | [INFO] [stdout] 1685 | for val in >::states() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `PackedWord` in public interface (error E0445) [INFO] [stdout] --> src/bits.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | type Word; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `PackedWord` in public interface (error E0445) [INFO] [stdout] --> src/bits.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | type Word; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `PackedWord` in public interface (error E0445) [INFO] [stdout] --> src/bits.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | type Word; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `PackedWord` in public interface (error E0445) [INFO] [stdout] --> src/bits.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | type Word; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::layers` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use bnn::layers::{FClayer, FcAuxTrainParams}; [INFO] [stdout] | ^^^^^^ could not find `layers` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::bits::BitMap` [INFO] [stdout] --> src/bin/image_grad.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `BitMap` in `bits` [INFO] [stdout] | help: a similar name exists in the module: `BitMul` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::unary` [INFO] [stdout] --> src/bin/image_grad.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use bnn::unary::u8x3_to_b32; [INFO] [stdout] | ^^^^^ could not find `unary` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::layers` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use bnn::layers::{FClayer, FcAuxTrainParams}; [INFO] [stdout] | ^^^^^^ could not find `layers` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::bits::BitMap` [INFO] [stdout] --> src/bin/image_grad.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `BitMap` in `bits` [INFO] [stdout] | help: a similar name exists in the module: `BitMul` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::unary` [INFO] [stdout] --> src/bin/image_grad.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | use bnn::unary::u8x3_to_b32; [INFO] [stdout] | ^^^^^ could not find `unary` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::layers` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use bnn::layers::DescendFCaux; [INFO] [stdout] | ^^^^^^ could not find `layers` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnn::layers` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | use bnn::layers::DescendFCaux; [INFO] [stdout] | ^^^^^^ could not find `layers` in `bnn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | [::TritArrayType; 10], [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:75:60 [INFO] [stdout] | [INFO] [stdout] 75 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:102:66 [INFO] [stdout] | [INFO] [stdout] 102 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:106:60 [INFO] [stdout] | [INFO] [stdout] 106 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:117:60 [INFO] [stdout] | [INFO] [stdout] 117 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:144:66 [INFO] [stdout] | [INFO] [stdout] 144 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:148:60 [INFO] [stdout] | [INFO] [stdout] 148 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:159:60 [INFO] [stdout] | [INFO] [stdout] 159 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | let weights: [::TritArrayType; 10] = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 44 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:72:65 [INFO] [stdout] | [INFO] [stdout] 72 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `Shape` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use bnn::shape::{Element, Map, Shape}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | let weights: [::TritArrayType; 10] = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 44 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:72:65 [INFO] [stdout] | [INFO] [stdout] 72 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `Shape` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use bnn::shape::{Element, Map, Shape}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | [::TritArrayType; 10], [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:75:60 [INFO] [stdout] | [INFO] [stdout] 75 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:102:66 [INFO] [stdout] | [INFO] [stdout] 102 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:106:60 [INFO] [stdout] | [INFO] [stdout] 106 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:117:60 [INFO] [stdout] | [INFO] [stdout] 117 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:144:66 [INFO] [stdout] | [INFO] [stdout] 144 | ::TritArrayType>>::bit_map_pack( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:148:60 [INFO] [stdout] | [INFO] [stdout] 148 | ... > (<::BitShape as Shape>::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:159:60 [INFO] [stdout] | [INFO] [stdout] 159 | <[(); 10] as Map<::TritArrayType, u32>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | let weights: <::TritArrayType as Element<::BitShape>>::Array = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:42:87 [INFO] [stdout] | [INFO] [stdout] 42 | let weights: <::TritArrayType as Element<::BitShape>>::Array = rng.gen(); [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | let aux_weights: [::TritArrayType; 10] = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:47:70 [INFO] [stdout] | [INFO] [stdout] 47 | Hidden::bit_map_pack(&weights, |trits: &::TritArrayType| { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | trits.masked_distance(patch) < (::BitShape::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:58:61 [INFO] [stdout] | [INFO] [stdout] 58 | <[(); 10] as ZipMap::TritArrayType, u32>>::zip_map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:66:47 [INFO] [stdout] | [INFO] [stdout] 66 | let grads: Vec<_> = ::BitShape::indices() [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use bnn::bits::{b32, BitArray, BitMapPack, MaskedDistance}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 71 | let patch_grads: [[::TritArrayType; 32]; 32] = [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:73:58 [INFO] [stdout] | [INFO] [stdout] 73 | let threshold = ::BitShape::N as u32 / 4; [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | ::TritArrayType::default() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | ::TritArrayType::default() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:89:58 [INFO] [stdout] | [INFO] [stdout] 89 | let threshold = ::BitShape::N as u32 / 4; [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:111:44 [INFO] [stdout] | [INFO] [stdout] 111 | <::TritArrayType as Element>::Array, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0576. [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:114:65 [INFO] [stdout] | [INFO] [stdout] 114 | ::TritArrayType, t1>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found struct `t1` [INFO] [stdout] --> src/bin/image_grad.rs:116:33 [INFO] [stdout] | [INFO] [stdout] 116 | |pixel| t1(pixel.get_trit(hidden_index)), [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | constructor is not visible here due to private fields [INFO] [stdout] | help: a tuple struct with a similar name exists: `b1` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1529:1 [INFO] [stdout] | [INFO] [stdout] 1529 | pub struct b1(pub bool); [INFO] [stdout] | ------------------------ similarly named tuple struct `b1` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:128:78 [INFO] [stdout] | [INFO] [stdout] 128 | <>::Array as BitArray>::TritArrayType, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:140:54 [INFO] [stdout] | [INFO] [stdout] 140 | dbg!(n_dead_chans as f64 / ::BitShape::N as f64); [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/image_grad.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TritArray` [INFO] [stdout] --> src/bin/image_grad.rs:3:76 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shape` [INFO] [stdout] --> src/bin/image_grad.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use bnn::shape::{Element, IndexGet, Map, Shape, ZipMap}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | let weights: <::TritArrayType as Element<::BitShape>>::Array = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:42:87 [INFO] [stdout] | [INFO] [stdout] 42 | let weights: <::TritArrayType as Element<::BitShape>>::Array = rng.gen(); [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | let aux_weights: [::TritArrayType; 10] = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:47:70 [INFO] [stdout] | [INFO] [stdout] 47 | Hidden::bit_map_pack(&weights, |trits: &::TritArrayType| { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | trits.masked_distance(patch) < (::BitShape::N as u32 / 4) [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:58:61 [INFO] [stdout] | [INFO] [stdout] 58 | <[(); 10] as ZipMap::TritArrayType, u32>>::zip_map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:66:47 [INFO] [stdout] | [INFO] [stdout] 66 | let grads: Vec<_> = ::BitShape::indices() [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 71 | let patch_grads: [[::TritArrayType; 32]; 32] = [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:73:58 [INFO] [stdout] | [INFO] [stdout] 73 | let threshold = ::BitShape::N as u32 / 4; [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | ::TritArrayType::default() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | ::TritArrayType::default() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bnn` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:89:58 [INFO] [stdout] | [INFO] [stdout] 89 | let threshold = ::BitShape::N as u32 / 4; [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:111:44 [INFO] [stdout] | [INFO] [stdout] 111 | <::TritArrayType as Element>::Array, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:114:65 [INFO] [stdout] | [INFO] [stdout] 114 | ::TritArrayType, t1>>::map( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found struct `t1` [INFO] [stdout] --> src/bin/image_grad.rs:116:33 [INFO] [stdout] | [INFO] [stdout] 116 | |pixel| t1(pixel.get_trit(hidden_index)), [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | constructor is not visible here due to private fields [INFO] [stdout] | help: a tuple struct with a similar name exists: `b1` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1529:1 [INFO] [stdout] | [INFO] [stdout] 1529 | pub struct b1(pub bool); [INFO] [stdout] | ------------------------ similarly named tuple struct `b1` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `TritArrayType` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:128:78 [INFO] [stdout] | [INFO] [stdout] 128 | <>::Array as BitArray>::TritArrayType, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0576]: cannot find associated type `BitShape` in trait `BitArray` [INFO] [stdout] --> src/bin/image_grad.rs:140:54 [INFO] [stdout] | [INFO] [stdout] 140 | dbg!(n_dead_chans as f64 / ::BitShape::N as f64); [INFO] [stdout] | ^^^^^^^^ not found in `BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/image_grad.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] = help: consider using `min_const_generics` instead, which is more stable and complete [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TritArray` [INFO] [stdout] --> src/bin/image_grad.rs:3:76 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shape` [INFO] [stdout] --> src/bin/image_grad.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use bnn::shape::{Element, IndexGet, Map, Shape, ZipMap}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/mnist_two_layer_fc.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use bnn::bits::{b32, BitArray, BitMapPack, MaskedDistance}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0576. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `minibatch_train` found for unit type `()` in the current scope [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let weights = <()>::minibatch_train(weights, &images, &labels, 50, (3, 4), 5); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use bnn::bits::{b32, BitArray, MaskedDistance}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0576, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `minibatch_train` found for unit type `()` in the current scope [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let weights = <()>::minibatch_train(weights, &images, &labels, 50, (3, 4), 5); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use bnn::bits::{b32, BitArray, MaskedDistance}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/bin/mnist_one_layer_fc.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0576, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `bit_map_pack` found for array `[b32; 32]` in the current scope [INFO] [stdout] --> src/bin/image_grad.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | Hidden::bit_map_pack(&weights, |trits: &::TritArrayType| { [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `[b32; 32]` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1485:1 [INFO] [stdout] | [INFO] [stdout] 1485 | for_uints!(q32, t32, b32, u32, 32, "{:032b}"); [INFO] [stdout] | ---------------------------------------------- doesn't satisfy `b32: BitMapPack<_>` [INFO] [stdout] | [INFO] [stdout] = note: the method `bit_map_pack` exists but the following trait bounds were not satisfied: [INFO] [stdout] `b32: BitMapPack<_>` [INFO] [stdout] which is required by `[b32; 32]: BitMapPack<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `b1: LongDefault` is not satisfied [INFO] [stdout] --> src/bin/image_grad.rs:120:43 [INFO] [stdout] | [INFO] [stdout] 120 | let chan_l1: [[b1; 32]; 32] = <[[(); 32]; 32] as Map>::map(&l1, |pixel| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `LongDefault` is not implemented for `b1` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `LongDefault` for `[b1; 32]` [INFO] [stdout] = note: required because of the requirements on the impl of `bnn::shape::Map<[b32; 32], b1>` for `[(); 32]` [INFO] [stdout] = note: required because of the requirements on the impl of `bnn::shape::Map<[b32; 32], b1>` for `[[(); 32]; 32]` [INFO] [stdout] = note: required by `bnn::shape::Map::map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_bit` found for reference `&[b32; 32]` in the current scope [INFO] [stdout] --> src/bin/image_grad.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | b1(pixel.get_bit(hidden_index)) [INFO] [stdout] | ^^^^^^^ help: there is an associated function with a similar name: `get_mut` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1485:1 [INFO] [stdout] | [INFO] [stdout] 1485 | for_uints!(q32, t32, b32, u32, 32, "{:032b}"); [INFO] [stdout] | ---------------------------------------------- doesn't satisfy `b32: BitArray` [INFO] [stdout] | [INFO] [stdout] = note: the method `get_bit` exists but the following trait bounds were not satisfied: [INFO] [stdout] `b32: BitArray` [INFO] [stdout] which is required by `[b32; 32]: BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `bit_map_pack` found for array `[b32; 32]` in the current scope [INFO] [stdout] --> src/bin/image_grad.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | Hidden::bit_map_pack(&weights, |trits: &::TritArrayType| { [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `[b32; 32]` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1485:1 [INFO] [stdout] | [INFO] [stdout] 1485 | for_uints!(q32, t32, b32, u32, 32, "{:032b}"); [INFO] [stdout] | ---------------------------------------------- doesn't satisfy `b32: BitMapPack<_>` [INFO] [stdout] | [INFO] [stdout] = note: the method `bit_map_pack` exists but the following trait bounds were not satisfied: [INFO] [stdout] `b32: BitMapPack<_>` [INFO] [stdout] which is required by `[b32; 32]: BitMapPack<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitMapPack` [INFO] [stdout] --> src/bin/image_grad.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/image_grad.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IndexGet` [INFO] [stdout] --> src/bin/image_grad.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use bnn::shape::{Element, IndexGet, Map, Shape, ZipMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0432, E0576, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `b1: LongDefault` is not satisfied [INFO] [stdout] --> src/bin/image_grad.rs:120:43 [INFO] [stdout] | [INFO] [stdout] 120 | let chan_l1: [[b1; 32]; 32] = <[[(); 32]; 32] as Map>::map(&l1, |pixel| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `LongDefault` is not implemented for `b1` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `LongDefault` for `[b1; 32]` [INFO] [stdout] = note: required because of the requirements on the impl of `bnn::shape::Map<[b32; 32], b1>` for `[(); 32]` [INFO] [stdout] = note: required because of the requirements on the impl of `bnn::shape::Map<[b32; 32], b1>` for `[[(); 32]; 32]` [INFO] [stdout] = note: required by `bnn::shape::Map::map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_bit` found for reference `&[b32; 32]` in the current scope [INFO] [stdout] --> src/bin/image_grad.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | b1(pixel.get_bit(hidden_index)) [INFO] [stdout] | ^^^^^^^ help: there is an associated function with a similar name: `get_mut` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/bits.rs:1485:1 [INFO] [stdout] | [INFO] [stdout] 1485 | for_uints!(q32, t32, b32, u32, 32, "{:032b}"); [INFO] [stdout] | ---------------------------------------------- doesn't satisfy `b32: BitArray` [INFO] [stdout] | [INFO] [stdout] = note: the method `get_bit` exists but the following trait bounds were not satisfied: [INFO] [stdout] `b32: BitArray` [INFO] [stdout] which is required by `[b32; 32]: BitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitMapPack` [INFO] [stdout] --> src/bin/image_grad.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaskedDistance` [INFO] [stdout] --> src/bin/image_grad.rs:3:60 [INFO] [stdout] | [INFO] [stdout] 3 | use bnn::bits::{b1, b32, t1, BitArray, BitMap, BitMapPack, MaskedDistance, TritArray}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IndexGet` [INFO] [stdout] --> src/bin/image_grad.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use bnn::shape::{Element, IndexGet, Map, Shape, ZipMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0432, E0576, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "de8ef9f9500ee68b04fc16d31fbe9a31d4292e8ba1815a1870bf7c59e232c436", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de8ef9f9500ee68b04fc16d31fbe9a31d4292e8ba1815a1870bf7c59e232c436", kill_on_drop: false }` [INFO] [stdout] de8ef9f9500ee68b04fc16d31fbe9a31d4292e8ba1815a1870bf7c59e232c436