cargo rustc --release -- -C target-cpu=native --emit link=Reckless-D6CD8FED-CA025EEF
Compiling proc-macro2 v1.0.95
Compiling glob v0.3.2
Compiling unicode-ident v1.0.18
Compiling libc v0.2.175
Compiling prettyplease v0.2.32
Compiling regex-syntax v0.8.5
Compiling minimal-lexical v0.2.1
Compiling memchr v2.7.4
Compiling cfg-if v1.0.0
Compiling shlex v1.3.0
Compiling bindgen v0.71.1
Compiling either v1.15.0
Compiling bitflags v2.9.0
Compiling rustc-hash v2.1.1
Compiling log v0.4.27
Compiling libloading v0.8.6
Compiling cc v1.2.22
Compiling itertools v0.13.0
Compiling clang-sys v1.8.1
Compiling nom v7.1.3
Compiling quote v1.0.40
Compiling syn v2.0.101
Compiling regex-automata v0.4.9
Compiling cexpr v0.6.0
Compiling regex v1.11.1
Compiling reckless v0.10.0-dev (/tmp/tmp_x_vquvq/Reckless/Reckless-tmp)
error[E0308]: mismatched types
--> src/movepick.rs:242:32
|
242 | entry.score -= wall_pawns_malus;
| ^^^^^^^^^^^^^^^^ expected `i32`, found `usize`
error[E0277]: cannot subtract-assign `usize` from `i32`
--> src/movepick.rs:242:29
|
242 | entry.score -= wall_pawns_malus;
| ^^ no implementation for `i32 -= usize`
|
= help: the trait `SubAssign<usize>` is not implemented for `i32`
help: the following other types implement trait `SubAssign<Rhs>`
--> /rustc/01f6ddf7588f42ae2d7eb0a2f21d44e8e96674cf/library/core/src/ops/arith.rs:871:1
|
= note: `i32` implements `SubAssign<&i32>`
|
= note: `i32` implements `SubAssign`
= note: this error originates in the macro `sub_assign_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `reckless` (bin "reckless") due to 2 previous errors
make: *** [Makefile:24: rule] Error 101