[INFO] cloning repository https://github.com/ishehadeh/blokus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ishehadeh/blokus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishehadeh%2Fblokus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishehadeh%2Fblokus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5ca6f3c63b4132b399468aa204f1c7b7b34bb3f [INFO] testing ishehadeh/blokus against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fishehadeh%2Fblokus" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ishehadeh/blokus [INFO] finished tweaking git repo https://github.com/ishehadeh/blokus [INFO] tweaked toml for git repo https://github.com/ishehadeh/blokus written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ishehadeh/blokus on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ishehadeh/blokus 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e823c82344f310c8691556e9a586814b70f7596026baf22526ad393d3da5777 [INFO] running `Command { std: "docker" "start" "-a" "4e823c82344f310c8691556e9a586814b70f7596026baf22526ad393d3da5777", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e823c82344f310c8691556e9a586814b70f7596026baf22526ad393d3da5777", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e823c82344f310c8691556e9a586814b70f7596026baf22526ad393d3da5777", kill_on_drop: false }` [INFO] [stdout] 4e823c82344f310c8691556e9a586814b70f7596026baf22526ad393d3da5777 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 95ffc8845d931ec70f374d8d31ea82baa49cc8eaac4266909d47bde4a7ffb500 [INFO] running `Command { std: "docker" "start" "-a" "95ffc8845d931ec70f374d8d31ea82baa49cc8eaac4266909d47bde4a7ffb500", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling enumflags2_derive v0.7.11 [INFO] [stderr] Compiling enumflags2 v0.7.11 [INFO] [stderr] Compiling blokus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> src/bitboard/traits.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_trait` in this scope [INFO] [stdout] --> src/bitboard/traits.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 28 | #[const_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_items` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(generic_const_items)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #113521 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitArray` which is not `const` [INFO] [stdout] --> src/bitboard/bitarray_impl.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $crate::bitboard::BitArray for $typ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 29 | impl_bit_array_for_primitive_int!(u8); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `impl_bit_array_for_primitive_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitArray` which is not `const` [INFO] [stdout] --> src/bitboard/bitarray_impl.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $crate::bitboard::BitArray for $typ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 30 | impl_bit_array_for_primitive_int!(u16); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `impl_bit_array_for_primitive_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitArray` which is not `const` [INFO] [stdout] --> src/bitboard/bitarray_impl.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $crate::bitboard::BitArray for $typ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 31 | impl_bit_array_for_primitive_int!(u32); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `impl_bit_array_for_primitive_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitArray` which is not `const` [INFO] [stdout] --> src/bitboard/bitarray_impl.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $crate::bitboard::BitArray for $typ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 32 | impl_bit_array_for_primitive_int!(u64); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `impl_bit_array_for_primitive_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BitArray` which is not `const` [INFO] [stdout] --> src/bitboard/bitarray_impl.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | impl const $crate::bitboard::BitArray for $typ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] ... [INFO] [stdout] 33 | impl_bit_array_for_primitive_int!(u128); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] = note: this error originates in the macro `impl_bit_array_for_primitive_int` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: mark `BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `const` can only be applied to `const` traits [INFO] [stdout] --> src/bitboard/mod.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct BitBoard { [INFO] [stdout] | ^^^^^ can't be applied to `traits::BoardGeometry` [INFO] [stdout] | [INFO] [stdout] help: mark `traits::BoardGeometry` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `const` can only be applied to `const` traits [INFO] [stdout] --> src/bitboard/mod.rs:18:56 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct BitBoard { [INFO] [stdout] | ^^^^^ can't be applied to `traits::BitArray` [INFO] [stdout] | [INFO] [stdout] help: mark `traits::BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BoardGeometry` which is not `const` [INFO] [stdout] --> src/bitboard/geometry_impl.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | impl const BoardGeometry for StaticGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] help: mark `BoardGeometry` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: const `impl` for trait `BoardGeometry` which is not `const` [INFO] [stdout] --> src/bitboard/geometry_impl.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl const BoardGeometry for DynGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^ this trait is not `const` [INFO] [stdout] | [INFO] [stdout] = note: marking a trait with `const` ensures all default method bodies are `const` [INFO] [stdout] = note: adding a non-const method body in the future would be a breaking change [INFO] [stdout] help: mark `BoardGeometry` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `const` can only be applied to `const` traits [INFO] [stdout] --> src/bitboard/mod.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | impl BitBoard { [INFO] [stdout] | ^^^^^ can't be applied to `traits::BoardGeometry` [INFO] [stdout] | [INFO] [stdout] help: mark `traits::BoardGeometry` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `const` can only be applied to `const` traits [INFO] [stdout] --> src/bitboard/mod.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 23 | impl BitBoard { [INFO] [stdout] | ^^^^^ can't be applied to `traits::BitArray` [INFO] [stdout] | [INFO] [stdout] help: mark `traits::BitArray` as `const` to allow it to have `const` implementations [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::width` in constant functions [INFO] [stdout] --> src/bitboard/mod.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 38 | && coord.x < self.geometry().width() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `width` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] | ----------------------- this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::height` in constant functions [INFO] [stdout] --> src/bitboard/mod.rs:39:42 [INFO] [stdout] | [INFO] [stdout] 39 | && coord.y < self.geometry().height() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `height` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] 31 | fn height(&self) -> i16; [INFO] [stdout] | ------------------------ this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::width` in constant functions [INFO] [stdout] --> src/bitboard/mod.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | self.geometry().width() as usize * coord.y as usize + coord.x as usize [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `width` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] | ----------------------- this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::bit_get` in constant functions [INFO] [stdout] --> src/bitboard/mod.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | self.data().bit_get(self.coordinate_to_index(coord)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `bit_get` is not const because trait `BitArray` is not const [INFO] [stdout] --> src/bitboard/traits.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub trait BitArray: [INFO] [stdout] 6 | | ShlAssign [INFO] [stdout] 7 | | + ShrAssign [INFO] [stdout] 8 | | + BitAndAssign [INFO] [stdout] ... | [INFO] [stdout] 15 | | + BitXor [INFO] [stdout] 16 | | + Sized [INFO] [stdout] | |___________^ this trait is not const [INFO] [stdout] ... [INFO] [stdout] 21 | fn bit_get(&self, index: usize) -> bool; [INFO] [stdout] | ---------------------------------------- this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BitArray` const [INFO] [stdout] --> src/bitboard/traits.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub const trait BitArray: [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::width` in constant functions [INFO] [stdout] --> src/ruleset.rs:144:47 [INFO] [stdout] | [INFO] [stdout] 144 | while coord.x < self.shape.geometry().width() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `width` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] | ----------------------- this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::height` in constant functions [INFO] [stdout] --> src/ruleset.rs:145:51 [INFO] [stdout] | [INFO] [stdout] 145 | while coord.y < self.shape.geometry().height() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `height` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] 31 | fn height(&self) -> i16; [INFO] [stdout] | ------------------------ this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::width` in constant functions [INFO] [stdout] --> src/ruleset.rs:178:47 [INFO] [stdout] | [INFO] [stdout] 178 | while coord.x < self.shape.geometry().width() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `width` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] | ----------------------- this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::height` in constant functions [INFO] [stdout] --> src/ruleset.rs:179:51 [INFO] [stdout] | [INFO] [stdout] 179 | while coord.y < self.shape.geometry().height() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `height` is not const because trait `BoardGeometry` is not const [INFO] [stdout] --> src/bitboard/traits.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait BoardGeometry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this trait is not const [INFO] [stdout] 30 | fn width(&self) -> i16; [INFO] [stdout] 31 | fn height(&self) -> i16; [INFO] [stdout] | ------------------------ this method is not const [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: consider making trait `BoardGeometry` const [INFO] [stdout] --> src/bitboard/traits.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub const trait BoardGeometry { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blokus` (lib) due to 21 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "95ffc8845d931ec70f374d8d31ea82baa49cc8eaac4266909d47bde4a7ffb500", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95ffc8845d931ec70f374d8d31ea82baa49cc8eaac4266909d47bde4a7ffb500", kill_on_drop: false }` [INFO] [stdout] 95ffc8845d931ec70f374d8d31ea82baa49cc8eaac4266909d47bde4a7ffb500