[INFO] cloning repository https://github.com/hamap000/othello [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hamap000/othello" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamap000%2Fothello", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamap000%2Fothello'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a358f562704983586e08e930ebdd9ff4a779c53 [INFO] checking hamap000/othello against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamap000%2Fothello" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hamap000/othello on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hamap000/othello [INFO] finished tweaking git repo https://github.com/hamap000/othello [INFO] tweaked toml for git repo https://github.com/hamap000/othello written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/hamap000/othello already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", 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] cbcbb2d8e37f89baca6296d3e1c452cc073d2da876649bb08859c2313738285b [INFO] running `Command { std: "docker" "start" "-a" "cbcbb2d8e37f89baca6296d3e1c452cc073d2da876649bb08859c2313738285b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbcbb2d8e37f89baca6296d3e1c452cc073d2da876649bb08859c2313738285b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbcbb2d8e37f89baca6296d3e1c452cc073d2da876649bb08859c2313738285b", kill_on_drop: false }` [INFO] [stdout] cbcbb2d8e37f89baca6296d3e1c452cc073d2da876649bb08859c2313738285b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fdcd308ce2b52ce0f38f9f80831c5cf7d50a7669b33b9854891b371284181a7 [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" "9fdcd308ce2b52ce0f38f9f80831c5cf7d50a7669b33b9854891b371284181a7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking ttf-parser v0.6.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling gimli v0.23.0 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling object v0.23.0 [INFO] [stderr] Checking ttf-parser v0.11.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking weezl v0.1.4 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling cpal v0.13.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking bytemuck v1.5.0 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Checking mint v0.5.6 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Compiling nom v6.1.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling wayland-sys v0.28.3 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling bzip2-sys v0.1.10+1.0.8 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking owned_ttf_parser v0.6.0 [INFO] [stderr] Checking glam v0.12.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking owned_ttf_parser v0.11.0 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking rusttype v0.9.2 [INFO] [stderr] Checking ab_glyph v0.2.9 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling wayland-scanner v0.28.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Compiling addr2line v0.14.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking euclid v0.22.1 [INFO] [stderr] Checking sid v0.6.1 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking ordered-float v2.1.1 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking glyph_brush_layout v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling backtrace v0.3.56 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking directories v3.0.1 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking lyon_geom v0.16.2 [INFO] [stderr] Compiling rand_core v0.6.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking image v0.23.13 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling wayland-client v0.28.3 [INFO] [stderr] Compiling wayland-protocols v0.28.3 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking lyon_path v0.16.2 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Checking twox-hash v1.6.0 [INFO] [stderr] Checking lyon_algorithms v0.16.0 [INFO] [stderr] Checking lyon_tessellation v0.16.2 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking lyon v0.16.2 [INFO] [stderr] Checking wayland-commons v0.28.3 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking gilrs-core v0.3.0 [INFO] [stderr] Checking alsa v0.4.3 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Checking gilrs v0.8.0 [INFO] [stderr] Checking glyph_brush v0.7.2 [INFO] [stderr] Checking wayland-cursor v0.28.3 [INFO] [stderr] Checking wayland-egl v0.28.3 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking minimp3 v0.5.1 [INFO] [stderr] Checking zip v0.5.9 [INFO] [stderr] Checking rodio v0.13.0 [INFO] [stderr] Checking smithay-client-toolkit v0.12.2 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking old_school_gfx_glutin_ext v0.26.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling cargo_metadata v0.10.0 [INFO] [stderr] Compiling skeptic v0.13.5 [INFO] [stderr] Compiling ggez v0.6.0-rc1 [INFO] [stderr] Checking othello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ContextBuilder`, `input` [INFO] [stdout] --> src/mygame.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{graphics, input, Context, ContextBuilder, GameResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `mouse_inf` should have an upper camel case name [INFO] [stdout] --> src/mygame/mouse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct mouse_inf { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `MouseInf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if (mn <= pos.x as u32 || mn <= pos.y as u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:219:20 [INFO] [stdout] | [INFO] [stdout] 219 | if (i == 1 && j == 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mygame.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | while (0 <= now_position.0 [INFO] [stdout] | ___________________^ [INFO] [stdout] 231 | | && now_position.0 < siz [INFO] [stdout] 232 | | && 0 <= now_position.1 [INFO] [stdout] 233 | | && now_position.1 < siz) [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 | while 0 <= now_position.0 [INFO] [stdout] 231 | && now_position.0 < siz [INFO] [stdout] 232 | && 0 <= now_position.1 [INFO] [stdout] 233 | && now_position.1 < siz [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | if (now_position.0 == pos.0 as i32 && now_position.1 == pos.1 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:327:20 [INFO] [stdout] | [INFO] [stdout] 327 | if (i == 1 && j == 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mygame.rs:339:19 [INFO] [stdout] | [INFO] [stdout] 339 | while (0 <= now_position.0 [INFO] [stdout] | ___________________^ [INFO] [stdout] 340 | | && now_position.0 < siz [INFO] [stdout] 341 | | && 0 <= now_position.1 [INFO] [stdout] 342 | | && now_position.1 < siz) [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 339 | while 0 <= now_position.0 [INFO] [stdout] 340 | && now_position.0 < siz [INFO] [stdout] 341 | && 0 <= now_position.1 [INFO] [stdout] 342 | && now_position.1 < siz [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:359:28 [INFO] [stdout] | [INFO] [stdout] 359 | if (now_position.0 == pos.0 as i32 && now_position.1 == pos.1 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if (self.mouse_inf.is_clicked(_ctx) [INFO] [stdout] | ____________^ [INFO] [stdout] 42 | | && self.ret_nowuser() as i32 == mygame::Stone::White as i32) [INFO] [stdout] | |________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 | if self.mouse_inf.is_clicked(_ctx) [INFO] [stdout] 42 | && self.ret_nowuser() as i32 == mygame::Stone::White as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | if (mygame::predict::can_cnt( [INFO] [stdout] | ________________________^ [INFO] [stdout] 47 | | &self.board.gamebord, [INFO] [stdout] 48 | | self.ret_nowuser(), [INFO] [stdout] 49 | | (t.0 as usize, t.1 as usize), [INFO] [stdout] 50 | | ) > 0 [INFO] [stdout] 51 | | && self.board.gamebord[t.0 as usize][t.1 as usize] as i32 [INFO] [stdout] 52 | | == mygame::Stone::Blank as i32) [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 | if mygame::predict::can_cnt( [INFO] [stdout] 47 | &self.board.gamebord, [INFO] [stdout] 48 | self.ret_nowuser(), [INFO] [stdout] 49 | (t.0 as usize, t.1 as usize), [INFO] [stdout] 50 | ) > 0 [INFO] [stdout] 51 | && self.board.gamebord[t.0 as usize][t.1 as usize] as i32 [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | if (ggez::input::keyboard::is_key_pressed(_ctx, ggez::input::keyboard::KeyCode::P) [INFO] [stdout] | ____________^ [INFO] [stdout] 71 | | && self.passed == false) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 | if ggez::input::keyboard::is_key_pressed(_ctx, ggez::input::keyboard::KeyCode::P) [INFO] [stdout] 71 | && self.passed == false [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContextBuilder`, `input` [INFO] [stdout] --> src/mygame.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::{graphics, input, Context, ContextBuilder, GameResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `mouse_inf` should have an upper camel case name [INFO] [stdout] --> src/mygame/mouse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct mouse_inf { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `MouseInf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | if (mn <= pos.x as u32 || mn <= pos.y as u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:219:20 [INFO] [stdout] | [INFO] [stdout] 219 | if (i == 1 && j == 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mygame.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | while (0 <= now_position.0 [INFO] [stdout] | ___________________^ [INFO] [stdout] 231 | | && now_position.0 < siz [INFO] [stdout] 232 | | && 0 <= now_position.1 [INFO] [stdout] 233 | | && now_position.1 < siz) [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 | while 0 <= now_position.0 [INFO] [stdout] 231 | && now_position.0 < siz [INFO] [stdout] 232 | && 0 <= now_position.1 [INFO] [stdout] 233 | && now_position.1 < siz [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | if (now_position.0 == pos.0 as i32 && now_position.1 == pos.1 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:327:20 [INFO] [stdout] | [INFO] [stdout] 327 | if (i == 1 && j == 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mygame.rs:339:19 [INFO] [stdout] | [INFO] [stdout] 339 | while (0 <= now_position.0 [INFO] [stdout] | ___________________^ [INFO] [stdout] 340 | | && now_position.0 < siz [INFO] [stdout] 341 | | && 0 <= now_position.1 [INFO] [stdout] 342 | | && now_position.1 < siz) [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 339 | while 0 <= now_position.0 [INFO] [stdout] 340 | && now_position.0 < siz [INFO] [stdout] 341 | && 0 <= now_position.1 [INFO] [stdout] 342 | && now_position.1 < siz [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mygame.rs:359:28 [INFO] [stdout] | [INFO] [stdout] 359 | if (now_position.0 == pos.0 as i32 && now_position.1 == pos.1 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | if (self.mouse_inf.is_clicked(_ctx) [INFO] [stdout] | ____________^ [INFO] [stdout] 42 | | && self.ret_nowuser() as i32 == mygame::Stone::White as i32) [INFO] [stdout] | |________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 | if self.mouse_inf.is_clicked(_ctx) [INFO] [stdout] 42 | && self.ret_nowuser() as i32 == mygame::Stone::White as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | if (mygame::predict::can_cnt( [INFO] [stdout] | ________________________^ [INFO] [stdout] 47 | | &self.board.gamebord, [INFO] [stdout] 48 | | self.ret_nowuser(), [INFO] [stdout] 49 | | (t.0 as usize, t.1 as usize), [INFO] [stdout] 50 | | ) > 0 [INFO] [stdout] 51 | | && self.board.gamebord[t.0 as usize][t.1 as usize] as i32 [INFO] [stdout] 52 | | == mygame::Stone::Blank as i32) [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 | if mygame::predict::can_cnt( [INFO] [stdout] 47 | &self.board.gamebord, [INFO] [stdout] 48 | self.ret_nowuser(), [INFO] [stdout] 49 | (t.0 as usize, t.1 as usize), [INFO] [stdout] 50 | ) > 0 [INFO] [stdout] 51 | && self.board.gamebord[t.0 as usize][t.1 as usize] as i32 [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | if (ggez::input::keyboard::is_key_pressed(_ctx, ggez::input::keyboard::KeyCode::P) [INFO] [stdout] | ____________^ [INFO] [stdout] 71 | | && self.passed == false) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 | if ggez::input::keyboard::is_key_pressed(_ctx, ggez::input::keyboard::KeyCode::P) [INFO] [stdout] 71 | && self.passed == false [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/main.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Default => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/mygame.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Default => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/mygame.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | Default => text += "CPU", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ret` is assigned to, but never used [INFO] [stdout] --> src/mygame.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let mut ret = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ret` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/mygame.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | default => eprintln!("cna_cntがおかしい"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/mygame.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/mygame.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | default => eprintln!("cna_cntがおかしい"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut my_game = MyGame::new(&mut ctx, WIDTH as u32, HEIGHT as u32); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mygame.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut text = graphics::Text::new((text, self.font, 48.0)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mygame.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let mut cnt = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | / self.board [INFO] [stdout] 63 | | .setstone(&(t.0 as usize, t.1 as usize), self.ret_nowuser()); [INFO] [stdout] | |_________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/main.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Default => {} [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | self.board.draw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/mygame.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Default => {} [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / graphics::draw( [INFO] [stdout] 44 | | ctx, [INFO] [stdout] 45 | | &text, [INFO] [stdout] 46 | | (Vec2::new(0., self.winodw_height as f32 - 48.0),), [INFO] [stdout] 47 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/mygame.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | Default => text += "CPU", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / graphics::draw( [INFO] [stdout] 60 | | ctx, [INFO] [stdout] 61 | | &text, [INFO] [stdout] 62 | | (Vec2::new( [INFO] [stdout] ... | [INFO] [stdout] 65 | | ),), [INFO] [stdout] 66 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V` should have a snake case name [INFO] [stdout] --> src/mygame.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let mut V = vec![vec![Stone::Blank; size]; size]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/main.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Default => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/mygame.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Default => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Default` [INFO] [stdout] --> src/mygame.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | Default => text += "CPU", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ret` is assigned to, but never used [INFO] [stdout] --> src/mygame.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let mut ret = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ret` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/mygame.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | default => eprintln!("cna_cntがおかしい"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/mygame.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let mut cnt = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/mygame.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | default => eprintln!("cna_cntがおかしい"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut my_game = MyGame::new(&mut ctx, WIDTH as u32, HEIGHT as u32); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mygame.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut text = graphics::Text::new((text, self.font, 48.0)); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mygame.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let mut cnt = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | / self.board [INFO] [stdout] 63 | | .setstone(&(t.0 as usize, t.1 as usize), self.ret_nowuser()); [INFO] [stdout] | |_________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/main.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Default => {} [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | self.board.draw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/mygame.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Default => {} [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / graphics::draw( [INFO] [stdout] 44 | | ctx, [INFO] [stdout] 45 | | &text, [INFO] [stdout] 46 | | (Vec2::new(0., self.winodw_height as f32 - 48.0),), [INFO] [stdout] 47 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Default` should have a snake case name [INFO] [stdout] --> src/mygame.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | Default => text += "CPU", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mygame.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / graphics::draw( [INFO] [stdout] 60 | | ctx, [INFO] [stdout] 61 | | &text, [INFO] [stdout] 62 | | (Vec2::new( [INFO] [stdout] ... | [INFO] [stdout] 65 | | ),), [INFO] [stdout] 66 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V` should have a snake case name [INFO] [stdout] --> src/mygame.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let mut V = vec![vec![Stone::Blank; size]; size]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 18s [INFO] running `Command { std: "docker" "inspect" "9fdcd308ce2b52ce0f38f9f80831c5cf7d50a7669b33b9854891b371284181a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fdcd308ce2b52ce0f38f9f80831c5cf7d50a7669b33b9854891b371284181a7", kill_on_drop: false }` [INFO] [stdout] 9fdcd308ce2b52ce0f38f9f80831c5cf7d50a7669b33b9854891b371284181a7