cargo rustc --manifest-path ./engine/Cargo.toml --bin engine --release --no-default-features --features release -- -C target-cpu=native --emit link=Tcheran-E2D16106-B1CA130B
Compiling find-msvc-tools v0.1.4
Compiling shlex v1.3.0
Compiling cc v1.2.41
Compiling engine v9.0.0 (/tmp/tmppieskbqu/Tcheran/Tcheran-tmp/engine)
error[E0425]: cannot find function `king_attacks` in this scope
--> engine/src/chess/game.rs:290:20
|
290 | threats |= king_attacks(self.board.king_square(them));
| ^^^^^^^^^^^^
|
::: engine/src/chess/movegen/tables/knights.rs:6:1
|
6 | pub fn knight_attacks(s: Square) -> Bitboard {
| -------------------------------------------- similarly named function `knight_attacks` defined here
|
help: a function with a similar name exists
|
290 - threats |= king_attacks(self.board.king_square(them));
290 + threats |= knight_attacks(self.board.king_square(them));
|
help: consider importing this function through its public re-export
|
1 + use crate::chess::movegen::tables::king_attacks;
|
For more information about this error, try `rustc --explain E0425`.
error: could not compile `engine` (lib) due to 1 previous error
make: *** [Makefile:10: openbench] Error 101