[INFO] cloning repository https://github.com/Thomas2511/Gomoku [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Thomas2511/Gomoku" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomas2511%2FGomoku", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomas2511%2FGomoku'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d9c73b2a3b137b3d22be1a0e9d84349e2dc81a7 [INFO] checking Thomas2511/Gomoku against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomas2511%2FGomoku" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Thomas2511/Gomoku on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Thomas2511/Gomoku [INFO] finished tweaking git repo https://github.com/Thomas2511/Gomoku [INFO] tweaked toml for git repo https://github.com/Thomas2511/Gomoku written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Thomas2511/Gomoku already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f916e6dc60f772f70289e3077537d8adfb4785d8567816d2807c6ed35dc5a9b8 [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" "f916e6dc60f772f70289e3077537d8adfb4785d8567816d2807c6ed35dc5a9b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f916e6dc60f772f70289e3077537d8adfb4785d8567816d2807c6ed35dc5a9b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f916e6dc60f772f70289e3077537d8adfb4785d8567816d2807c6ed35dc5a9b8", kill_on_drop: false }` [INFO] [stdout] f916e6dc60f772f70289e3077537d8adfb4785d8567816d2807c6ed35dc5a9b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c07540227c8abb983ae79c8f271ec670814afd6e37bb4ebffa4e954168a4b6ff [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" "c07540227c8abb983ae79c8f271ec670814afd6e37bb4ebffa4e954168a4b6ff", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.19 [INFO] [stderr] Compiling phf_shared v0.7.20 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Checking lazy_static v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.8 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling gcc v0.3.41 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking num-traits v0.1.36 [INFO] [stderr] Compiling backtrace v0.2.3 [INFO] [stderr] Checking cfg-if v0.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.3 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking smallvec v0.1.8 [INFO] [stderr] Checking inflate v0.1.1 [INFO] [stderr] Checking vec_map v0.6.0 [INFO] [stderr] Checking strsim v0.5.2 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking unicode-segmentation v0.1.3 [INFO] [stderr] Checking find_folder v0.3.0 [INFO] [stderr] Checking itertools v0.4.19 [INFO] [stderr] Compiling serde_json v0.8.4 [INFO] [stderr] Compiling xml-rs v0.3.5 [INFO] [stderr] Compiling phf v0.7.20 [INFO] [stderr] Checking gif v0.9.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling dbghelp-sys v0.2.0 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking shared_library v0.1.5 [INFO] [stderr] Checking num_cpus v1.2.1 [INFO] [stderr] Checking term_size v0.2.1 [INFO] [stderr] Checking time v0.1.36 [INFO] [stderr] Checking num-integer v0.1.32 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking clap v2.19.3 [INFO] [stderr] Checking fs2 v0.2.5 [INFO] [stderr] Checking num-iter v0.1.32 [INFO] [stderr] Compiling x11-dl v2.12.0 [INFO] [stderr] Compiling freetype-sys v0.4.0 [INFO] [stderr] Checking memmap v0.4.0 [INFO] [stderr] Compiling tempfile v2.1.4 [INFO] [stderr] Compiling backtrace-sys v0.1.5 [INFO] [stderr] Compiling libz-sys v1.0.10 [INFO] [stderr] Checking deque v0.3.1 [INFO] [stderr] Checking num-bigint v0.1.35 [INFO] [stderr] Checking cgmath v0.12.0 [INFO] [stderr] Compiling wayland-scanner v0.7.6 [INFO] [stderr] Compiling gl_generator v0.5.2 [INFO] [stderr] Checking rayon v0.6.0 [INFO] [stderr] Checking png v0.6.2 [INFO] [stderr] Compiling phf_generator v0.7.20 [INFO] [stderr] Compiling phf_codegen v0.7.20 [INFO] [stderr] Checking num-rational v0.1.35 [INFO] [stderr] Compiling target_build_utils v0.1.2 [INFO] [stderr] Checking jpeg-decoder v0.1.11 [INFO] [stderr] Compiling wayland-client v0.7.6 [INFO] [stderr] Compiling glutin v0.7.2 [INFO] [stderr] Compiling glium v0.16.0 [INFO] [stderr] Checking image v0.12.1 [INFO] [stderr] Compiling libloading v0.3.1 [INFO] [stderr] Checking dlib v0.3.1 [INFO] [stderr] Checking wayland-sys v0.7.6 [INFO] [stderr] Checking wayland-window v0.4.3 [INFO] [stderr] Checking wayland-kbd v0.6.2 [INFO] [stderr] Checking winit v0.5.7 [INFO] [stderr] Checking glium_text v0.11.0 [INFO] [stderr] Checking gomoku v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board/board.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | pub fun: Box (usize, usize)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize) -> (usize, usize)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/board/board.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | pub fun: Box (usize, usize)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(usize) -> (usize, usize)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | if !(0..19).contains(x) || !(0..19).contains(y) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `usize` [INFO] [stdout] | help: consider borrowing here: `&x` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:215:62 [INFO] [stdout] | [INFO] [stdout] 215 | if !(0..19).contains(x) || !(0..19).contains(y) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `usize` [INFO] [stdout] | help: consider borrowing here: `&y` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:280:29 [INFO] [stdout] | [INFO] [stdout] 280 | if (0..19).contains(x + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:284:29 [INFO] [stdout] | [INFO] [stdout] 284 | if (0..19).contains(x + 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:284:56 [INFO] [stdout] | [INFO] [stdout] 284 | if (0..19).contains(x + 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | if (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | if (0..19).contains(x - 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:292:56 [INFO] [stdout] | [INFO] [stdout] 292 | if (0..19).contains(x - 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | if (0..19).contains(x - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:300:29 [INFO] [stdout] | [INFO] [stdout] 300 | if (0..19).contains(x - 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:300:56 [INFO] [stdout] | [INFO] [stdout] 300 | if (0..19).contains(x - 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:304:29 [INFO] [stdout] | [INFO] [stdout] 304 | if (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 308 | if (0..19).contains(x + 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:308:56 [INFO] [stdout] | [INFO] [stdout] 308 | if (0..19).contains(x + 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gomoku` [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[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | if !(0..19).contains(x) || !(0..19).contains(y) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `usize` [INFO] [stdout] | help: consider borrowing here: `&x` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:215:62 [INFO] [stdout] | [INFO] [stdout] 215 | if !(0..19).contains(x) || !(0..19).contains(y) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `usize` [INFO] [stdout] | help: consider borrowing here: `&y` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:280:29 [INFO] [stdout] | [INFO] [stdout] 280 | if (0..19).contains(x + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:284:29 [INFO] [stdout] | [INFO] [stdout] 284 | if (0..19).contains(x + 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:284:56 [INFO] [stdout] | [INFO] [stdout] 284 | if (0..19).contains(x + 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:288:29 [INFO] [stdout] | [INFO] [stdout] 288 | if (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | if (0..19).contains(x - 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:292:56 [INFO] [stdout] | [INFO] [stdout] 292 | if (0..19).contains(x - 1) && (0..19).contains(y + 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | if (0..19).contains(x - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:300:29 [INFO] [stdout] | [INFO] [stdout] 300 | if (0..19).contains(x - 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:300:56 [INFO] [stdout] | [INFO] [stdout] 300 | if (0..19).contains(x - 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:304:29 [INFO] [stdout] | [INFO] [stdout] 304 | if (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 308 | if (0..19).contains(x + 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(x + 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/board/board.rs:308:56 [INFO] [stdout] | [INFO] [stdout] 308 | if (0..19).contains(x + 1) && (0..19).contains(y - 1) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found `i32` [INFO] [stdout] | help: consider borrowing here: `&(y - 1)` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c07540227c8abb983ae79c8f271ec670814afd6e37bb4ebffa4e954168a4b6ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c07540227c8abb983ae79c8f271ec670814afd6e37bb4ebffa4e954168a4b6ff", kill_on_drop: false }` [INFO] [stdout] c07540227c8abb983ae79c8f271ec670814afd6e37bb4ebffa4e954168a4b6ff