[INFO] cloning repository https://github.com/CreativeWolfies/sharmat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CreativeWolfies/sharmat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativeWolfies%2Fsharmat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativeWolfies%2Fsharmat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 193284a753f55a900019907a3386b28aad851f84 [INFO] checking CreativeWolfies/sharmat against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativeWolfies%2Fsharmat" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CreativeWolfies/sharmat on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CreativeWolfies/sharmat [INFO] finished tweaking git repo https://github.com/CreativeWolfies/sharmat [INFO] tweaked toml for git repo https://github.com/CreativeWolfies/sharmat written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/CreativeWolfies/sharmat already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 166c266131dfe0dfad2355a334c9f93a69fa06a5a7d46958c48e08ac26b5577d [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" "166c266131dfe0dfad2355a334c9f93a69fa06a5a7d46958c48e08ac26b5577d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "166c266131dfe0dfad2355a334c9f93a69fa06a5a7d46958c48e08ac26b5577d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "166c266131dfe0dfad2355a334c9f93a69fa06a5a7d46958c48e08ac26b5577d", kill_on_drop: false }` [INFO] [stdout] 166c266131dfe0dfad2355a334c9f93a69fa06a5a7d46958c48e08ac26b5577d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3e2a1acbcc55b163490d55d998d480609a8f1b043f20670dc7fc52c80833cb70 [INFO] running `Command { std: "docker" "start" "-a" "3e2a1acbcc55b163490d55d998d480609a8f1b043f20670dc7fc52c80833cb70", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling proc-macro2 v1.0.23 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling pin-project-internal v0.4.24 [INFO] [stderr] Checking colorful v0.2.1 [INFO] [stderr] Checking xmlparser v0.10.0 [INFO] [stderr] Checking iced_core v0.2.1 [INFO] [stderr] Checking sw-composite v0.5.10 [INFO] [stderr] Compiling glam v0.8.7 [INFO] [stderr] Checking ttf-parser v0.2.2 [INFO] [stderr] Checking unicode-script v0.3.0 [INFO] [stderr] Checking svg_fmt v0.2.1 [INFO] [stderr] Compiling wayland-sys v0.27.0 [INFO] [stderr] Compiling x11 v2.18.2 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.9 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling harfbuzz-sys v0.3.4 [INFO] [stderr] Checking hibitset v0.6.3 [INFO] [stderr] Checking iced_style v0.1.0 [INFO] [stderr] Checking relevant v0.4.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking kurbo v0.2.3 [INFO] [stderr] Checking nom v5.1.2 [INFO] [stderr] Checking libflate v0.1.27 [INFO] [stderr] Checking euclid v0.20.14 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking sid v0.6.1 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking roxmltree v0.7.3 [INFO] [stderr] Checking wayland-sys v0.23.6 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling servo-freetype-sys v4.0.5 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling zerocopy-derive v0.1.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking lyon_geom v0.14.1 [INFO] [stderr] Checking lyon_geom v0.15.3 [INFO] [stderr] Compiling wayland-scanner v0.27.0 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking raqote v0.6.4 [INFO] [stderr] Checking lyon_path v0.14.0 [INFO] [stderr] Checking lyon_path v0.15.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking nix v0.17.0 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking freetype v0.4.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking x11-dl v2.18.5 [INFO] [stderr] Checking servo-fontconfig v0.4.0 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking zerocopy v0.2.8 [INFO] [stderr] Checking gfx-hal v0.4.1 [INFO] [stderr] Checking xcursor v0.3.2 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking ash v0.29.0 [INFO] [stderr] Checking lyon_algorithms v0.15.1 [INFO] [stderr] Checking lyon_tessellation v0.15.9 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking font-kit v0.4.0 [INFO] [stderr] Checking guillotiere v0.4.4 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling xcb v0.9.0 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking glyph_brush_layout v0.1.9 [INFO] [stderr] Checking harfbuzz_rs v1.2.0 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking lyon v0.15.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Compiling wayland-client v0.27.0 [INFO] [stderr] Compiling wayland-protocols v0.27.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking usvg v0.8.0 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking glyph_brush v0.6.3 [INFO] [stderr] Checking resvg v0.8.0 [INFO] [stderr] Checking wayland-commons v0.27.0 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking wayland-commons v0.23.6 [INFO] [stderr] Checking gfx-backend-empty v0.4.0 [INFO] [stderr] Checking rendy-memory v0.5.2 [INFO] [stderr] Checking rendy-descriptor v0.5.1 [INFO] [stderr] Checking wayland-client v0.23.6 [INFO] [stderr] Checking wayland-cursor v0.27.0 [INFO] [stderr] Checking wayland-protocols v0.23.6 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Checking clipboard_x11 v0.1.0 [INFO] [stderr] Checking smithay-client-toolkit v0.6.6 [INFO] [stderr] Checking winit v0.22.2 [INFO] [stderr] Checking pin-project v0.4.24 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking gfx-backend-vulkan v0.4.3 [INFO] [stderr] Checking smithay-client-toolkit v0.11.0 [INFO] [stderr] Checking wgpu-native v0.4.3 [INFO] [stderr] Checking smithay-clipboard v0.5.2 [INFO] [stderr] Checking clipboard_wayland v0.1.1 [INFO] [stderr] Checking window_clipboard v0.1.2 [INFO] [stderr] Checking wgpu v0.4.0 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking wgpu_glyph v0.7.0 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking iced_futures v0.1.2 [INFO] [stderr] Checking iced_native v0.2.2 [INFO] [stderr] Checking iced_wgpu v0.2.3 [INFO] [stderr] Checking iced_winit v0.1.0 [INFO] [stderr] Checking iced v0.1.1 [INFO] [stderr] Checking sharmat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::piece::Piece` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::piece::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::piece::Piece` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::piece::Piece; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_check_pos` [INFO] [stdout] --> src/board.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let res_check_pos = self.check_pos(x, y)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_check_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/board.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_name<'a>(&'a mut self, name: &'a str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/movement.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:120:22 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn add(self, mv: MovementType) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn limited_range(self, _dir: DirectionAndRange, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn repeat_all(self, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:144:34 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn repeat_previous(self, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn action_before(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:152:50 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn action_before(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn action_after(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:156:49 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn action_after(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn action_before_previous(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn action_after_previous(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:168:36 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn action_before_all(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn action_after_all(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_check_pos` [INFO] [stdout] --> src/board.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let res_check_pos = self.check_pos(x, y)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_check_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/board.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_name<'a>(&'a mut self, name: &'a str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/movement.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:120:22 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn add(self, mv: MovementType) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn limited_range(self, _dir: DirectionAndRange, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn repeat_all(self, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/movement.rs:144:34 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn repeat_previous(self, n: usize) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn action_before(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:152:50 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn action_before(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mv` [INFO] [stdout] --> src/movement.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn action_after(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:156:49 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn action_after(self, mv: MovementType, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn action_before_previous(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn action_after_previous(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:168:36 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn action_before_all(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/movement.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn action_after_all(self, action: Box ()>) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | board.set(0, 0, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::NonZeroUsize` [INFO] [stdout] --> src/bin/client/gui.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::NonZeroUsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `board::*`, `piece::Piece` [INFO] [stdout] --> src/bin/client/gui.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | board::*, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | piece::Piece, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:47:38 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(board.set(20, 20, &piece).unwrap_err(), BoardError::OutOfBounds(20, 20)); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::NonZeroUsize` [INFO] [stdout] --> src/bin/client/gui.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::NonZeroUsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `board::*`, `piece::Piece` [INFO] [stdout] --> src/bin/client/gui.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | board::*, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | piece::Piece, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | board.set(x, y, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!(board.get(x, y).unwrap().map(|z| z.clone()), Some(piece)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found struct `sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | board.set(0, 0, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawn` [INFO] [stdout] --> src/bin/client/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let pawn = PieceBuilder::new().id("standard.w_pawn").build(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pawn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(board.get(3, 3).unwrap().map(|x| x.clone()), Some(piece)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found struct `sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | board.set(0, 0, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | board.set(0, 0, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | board.set(0, 3, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawn` [INFO] [stdout] --> src/bin/client/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let pawn = PieceBuilder::new().id("standard.w_pawn").build(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pawn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | board.set(3, 0, &piece); [INFO] [stdout] | ^^^^^^ expected enum `Option`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&sharmat::piece::Piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:660:20 [INFO] [stdout] | [INFO] [stdout] 660 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:669:20 [INFO] [stdout] | [INFO] [stdout] 669 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:670:20 [INFO] [stdout] | [INFO] [stdout] 670 | .board(&board2) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:679:26 [INFO] [stdout] | [INFO] [stdout] 679 | .boards(vec![&board, &board2]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:689:20 [INFO] [stdout] | [INFO] [stdout] 689 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:690:26 [INFO] [stdout] | [INFO] [stdout] 690 | .boards(vec![&board2, &board3]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:698:20 [INFO] [stdout] | [INFO] [stdout] 698 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::board::Board` with `&sharmat::board::Board` [INFO] [stdout] --> tests/test.rs:700:9 [INFO] [stdout] | [INFO] [stdout] 700 | assert_eq!(game.boards(), &vec![&board]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::board::Board == &sharmat::board::Board` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::board::Board>` is not implemented for `sharmat::board::Board` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq<&Vec<&sharmat::board::Board>>` for `&Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:708:20 [INFO] [stdout] | [INFO] [stdout] 708 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:709:20 [INFO] [stdout] | [INFO] [stdout] 709 | .board(&board2) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::board::Board` with `&sharmat::board::Board` [INFO] [stdout] --> tests/test.rs:711:9 [INFO] [stdout] | [INFO] [stdout] 711 | assert_eq!(*game.boards(), vec![&board, &board2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::board::Board == &sharmat::board::Board` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::board::Board>` is not implemented for `sharmat::board::Board` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:719:26 [INFO] [stdout] | [INFO] [stdout] 719 | .boards(vec![&board, &board2]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::board::Board` with `&sharmat::board::Board` [INFO] [stdout] --> tests/test.rs:721:9 [INFO] [stdout] | [INFO] [stdout] 721 | assert_eq!(*game.boards(), vec![&board, &board2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::board::Board == &sharmat::board::Board` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::board::Board>` is not implemented for `sharmat::board::Board` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:730:20 [INFO] [stdout] | [INFO] [stdout] 730 | .board(&board) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:731:26 [INFO] [stdout] | [INFO] [stdout] 731 | .boards(vec![&board2, &board3]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::board::Board`, found `&sharmat::board::Board` [INFO] [stdout] | help: consider removing the borrow: `board2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::board::Board` with `&sharmat::board::Board` [INFO] [stdout] --> tests/test.rs:733:9 [INFO] [stdout] | [INFO] [stdout] 733 | assert_eq!(*game.boards(), vec![&board, &board2, &board3]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::board::Board == &sharmat::board::Board` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::board::Board>` is not implemented for `sharmat::board::Board` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:740:20 [INFO] [stdout] | [INFO] [stdout] 740 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:749:20 [INFO] [stdout] | [INFO] [stdout] 749 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:750:20 [INFO] [stdout] | [INFO] [stdout] 750 | .piece(&piece2) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:759:26 [INFO] [stdout] | [INFO] [stdout] 759 | .pieces(vec![&piece, &piece2]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:769:20 [INFO] [stdout] | [INFO] [stdout] 769 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:770:26 [INFO] [stdout] | [INFO] [stdout] 770 | .pieces(vec![&piece2, &piece3]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:778:20 [INFO] [stdout] | [INFO] [stdout] 778 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:780:9 [INFO] [stdout] | [INFO] [stdout] 780 | assert_eq!(*game.pieces(), vec![&piece]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:788:20 [INFO] [stdout] | [INFO] [stdout] 788 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:789:20 [INFO] [stdout] | [INFO] [stdout] 789 | .piece(&piece2) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:791:9 [INFO] [stdout] | [INFO] [stdout] 791 | assert_eq!(*game.pieces(), vec![&piece, &piece2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:799:26 [INFO] [stdout] | [INFO] [stdout] 799 | .pieces(vec![&piece, &piece2]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:801:9 [INFO] [stdout] | [INFO] [stdout] 801 | assert_eq!(*game.pieces(), vec![&piece, &piece2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:810:20 [INFO] [stdout] | [INFO] [stdout] 810 | .piece(&piece) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:811:26 [INFO] [stdout] | [INFO] [stdout] 811 | .pieces(vec![&piece2, &piece3]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:813:9 [INFO] [stdout] | [INFO] [stdout] 813 | assert_eq!(*game.pieces(), vec![&piece, &piece2, &piece3]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:822:26 [INFO] [stdout] | [INFO] [stdout] 822 | .pieces(vec![&piece, &piece2, &piece3]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:824:9 [INFO] [stdout] | [INFO] [stdout] 824 | assert_eq!(game.search_piece(piece.id()), Some(&&piece)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&sharmat::piece::Piece>` [INFO] [stdout] found enum `Option<&&sharmat::piece::Piece>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:833:26 [INFO] [stdout] | [INFO] [stdout] 833 | .pieces(vec![&piece, &piece2, &piece3]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:844:26 [INFO] [stdout] | [INFO] [stdout] 844 | .pieces(vec![&piece, &piece2, &piece3]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:846:9 [INFO] [stdout] | [INFO] [stdout] 846 | assert_eq!(game.search_piece_alias("test"), vec![&&piece, &&piece2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq<&&sharmat::piece::Piece>` for `&sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec<&sharmat::piece::Piece>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test.rs:855:26 [INFO] [stdout] | [INFO] [stdout] 855 | .pieces(vec![&piece, &piece2, &piece3]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `sharmat::piece::Piece`, found `&sharmat::piece::Piece` [INFO] [stdout] | help: consider removing the borrow: `piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `sharmat::piece::Piece` with `&sharmat::piece::Piece` [INFO] [stdout] --> tests/test.rs:857:9 [INFO] [stdout] | [INFO] [stdout] 857 | assert_eq!(game.search_piece_alias("hmm"), Vec::<&&Piece>::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `sharmat::piece::Piece == &sharmat::piece::Piece` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&sharmat::piece::Piece>` is not implemented for `sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq<&&sharmat::piece::Piece>` for `&sharmat::piece::Piece` [INFO] [stdout] = note: required because of the requirements on the impl of `PartialEq>` for `Vec<&sharmat::piece::Piece>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sharmat` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "3e2a1acbcc55b163490d55d998d480609a8f1b043f20670dc7fc52c80833cb70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e2a1acbcc55b163490d55d998d480609a8f1b043f20670dc7fc52c80833cb70", kill_on_drop: false }` [INFO] [stdout] 3e2a1acbcc55b163490d55d998d480609a8f1b043f20670dc7fc52c80833cb70