[INFO] cloning repository https://github.com/Zielony20/Ship_Game_in_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zielony20/Ship_Game_in_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49d913df23a4cca5cdafd01290e1c149b007cf7c [INFO] testing Zielony20/Ship_Game_in_Rust/49d913df23a4cca5cdafd01290e1c149b007cf7c against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 55% (1583/2852) Updating files: 56% (1598/2852) Updating files: 57% (1626/2852) Updating files: 58% (1655/2852) Updating files: 58% (1681/2852) Updating files: 59% (1683/2852) Updating files: 60% (1712/2852) Updating files: 61% (1740/2852) Updating files: 62% (1769/2852) Updating files: 62% (1778/2852) Updating files: 63% (1797/2852) Updating files: 64% (1826/2852) Updating files: 65% (1854/2852) Updating files: 66% (1883/2852) Updating files: 67% (1911/2852) Updating files: 68% (1940/2852) Updating files: 69% (1968/2852) Updating files: 70% (1997/2852) Updating files: 71% (2025/2852) Updating files: 72% (2054/2852) Updating files: 73% (2082/2852) Updating files: 74% (2111/2852) Updating files: 74% (2114/2852) Updating files: 74% (2132/2852) Updating files: 75% (2139/2852) Updating files: 75% (2142/2852) Updating files: 75% (2167/2852) Updating files: 76% (2168/2852) Updating files: 77% (2197/2852) Updating files: 78% (2225/2852) Updating files: 79% (2254/2852) Updating files: 79% (2263/2852) Updating files: 80% (2282/2852) Updating files: 80% (2296/2852) Updating files: 81% (2311/2852) Updating files: 81% (2334/2852) Updating files: 81% (2335/2852) Updating files: 82% (2339/2852) Updating files: 82% (2363/2852) Updating files: 83% (2368/2852) Updating files: 84% (2396/2852) error: unable to write file target/debug/deps/libvecmath-d3e42615202e4423.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libvecmath-ef7526ee1f69367b.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libviewport-25b5c0c808694ede.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_protocols-55d44e47f75572b7.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_protocols-7d2420557dc57740.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_protocols-7d2420557dc57740.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_protocols-c367ed10fe78d6ce.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_scanner-552df7a952c0b8a8.rlib [INFO] [stderr] Updating files: 85% (2425/2852) error: unable to write file target/debug/deps/libwayland_scanner-552df7a952c0b8a8.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_scanner-e60a145680969989.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_scanner-e60a145680969989.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_sys-47405de0048e52ab.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_sys-47405de0048e52ab.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_sys-aabc40b0e0eb6b3e.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_sys-aabc40b0e0eb6b3e.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_sys-f83656698747ca41.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_window-00555db6e6425cbe.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_window-00555db6e6425cbe.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_window-ca8d97c32ec3cfdc.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_window-ca8d97c32ec3cfdc.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwayland_window-ee98d37a892adecf.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwindow-03a8333df17bc93f.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwindow-03a8333df17bc93f.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwindow-4c3f2f541569283a.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwindow-4c3f2f541569283a.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwindow-d3c5f2ddc7a51219.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwinit-65a2fa9cb01a5362.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwinit-e4f805b05566f80e.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwinit-e4f805b05566f80e.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libwinit-e85a29d912059ef8.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libwinit-e85a29d912059ef8.rmeta [INFO] [stderr] Updating files: 85% (2448/2852) error: unable to write file target/debug/deps/libx11_dl-1cb54803f73af10c.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libx11_dl-1cb54803f73af10c.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libx11_dl-530f73eacc5604fc.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libx11_dl-530f73eacc5604fc.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libx11_dl-cdf9725e7b2c96cd.rmeta [INFO] [stderr] Updating files: 86% (2453/2852) error: unable to write file target/debug/deps/libxml-20ae2b379939fe87.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libxml-20ae2b379939fe87.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/libxml-cd4af21900355bb7.rlib [INFO] [stderr] error: unable to write file target/debug/deps/libxml-cd4af21900355bb7.rmeta [INFO] [stderr] error: unable to write file target/debug/deps/log-0ea110af4382ed6b.d [INFO] [stderr] error: unable to write file target/debug/deps/log-26c888b188008774.d [INFO] [stderr] error: unable to write file target/debug/deps/log-30e5d5828b8530ef.d [INFO] [stderr] error: unable to write file target/debug/deps/log-f2cde9d636e0a9e8.d [INFO] [stderr] error: unable to write file target/debug/deps/lzw-14388a67a3749191.d [INFO] [stderr] error: unable to write file target/debug/deps/lzw-44c824218040a206.d [INFO] [stderr] error: unable to write file target/debug/deps/lzw-9b007bcaa84dc98c.d [INFO] [stderr] error: unable to write file target/debug/deps/memmap-1361bdb4dc8473ed.d [INFO] [stderr] error: unable to write file target/debug/deps/memmap-25af1852d452c1fe.d [INFO] [stderr] error: unable to write file target/debug/deps/memmap-a1fbb5c74c1cb102.d [INFO] [stderr] error: unable to write file target/debug/deps/memoffset-7b263f5aa3384984.d [INFO] [stderr] error: unable to write file target/debug/deps/memoffset-8ea48f8618159a8d.d [INFO] [stderr] error: unable to write file target/debug/deps/memoffset-e1961445aa5c2bdb.d [INFO] [stderr] error: unable to write file target/debug/deps/nodrop-350aed32ce5e9f0d.d [INFO] [stderr] error: unable to write file target/debug/deps/nodrop-6ce706413df6a78a.d [INFO] [stderr] error: unable to write file target/debug/deps/nodrop-fcb760a23108cdda.d [INFO] [stderr] error: unable to write file target/debug/deps/num_cpus-2c72b03a44ae023d.d [INFO] [stderr] error: unable to write file target/debug/deps/num_cpus-38d6bb736ba63488.d [INFO] [stderr] error: unable to write file target/debug/deps/num_cpus-eb2dfa501f566022.d [INFO] [stderr] error: unable to write file target/debug/deps/num_integer-033305bebc7a1dad.d [INFO] [stderr] error: unable to write file target/debug/deps/num_integer-434a696c49b4caa1.d [INFO] [stderr] error: unable to write file target/debug/deps/num_integer-88dc2903b4729f02.d [INFO] [stderr] error: unable to write file target/debug/deps/num_iter-4508722a8229dca5.d [INFO] [stderr] error: unable to write file target/debug/deps/num_iter-a6aa7c6d44db7291.d [INFO] [stderr] error: unable to write file target/debug/deps/num_iter-b29643e75efb031f.d [INFO] [stderr] Updating files: 87% (2482/2852) error: unable to write file target/debug/deps/num_rational-16373cb74c5d02fa.d [INFO] [stderr] error: unable to write file target/debug/deps/num_rational-35704d5adb0ed476.d [INFO] [stderr] error: unable to write file target/debug/deps/num_rational-a23dd06feed981b9.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-43dc5a305b491c07.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-a36b10e08b30278c.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-c79c6e231cb9aa81.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-e3df0b59afdb56bd.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-e51135ed5ff0d003.d [INFO] [stderr] error: unable to write file target/debug/deps/num_traits-f33d58dca2c959c7.d [INFO] [stderr] error: unable to write file target/debug/deps/opengl_graphics-3f29e2e1d0e17877.d [INFO] [stderr] error: unable to write file target/debug/deps/opengl_graphics-4f3cc6061af437be.d [INFO] [stderr] error: unable to write file target/debug/deps/opengl_graphics-7e6caa7d5c31ebd0.d [INFO] [stderr] error: unable to write file target/debug/deps/ordered_float-70cf942916e03403.d [INFO] [stderr] error: unable to write file target/debug/deps/ordered_float-8e6a4d06f09f2e65.d [INFO] [stderr] error: unable to write file target/debug/deps/ordered_float-924d75ebb13b83ac.d [INFO] [stderr] error: unable to write file target/debug/deps/osmesa_sys-351d8a94e15bd2db.d [INFO] [stderr] error: unable to write file target/debug/deps/osmesa_sys-620fc132b7106a85.d [INFO] [stderr] error: unable to write file target/debug/deps/osmesa_sys-83ea7385d2333834.d [INFO] [stderr] error: unable to write file target/debug/deps/percent_encoding-5e3f5214ecab38d8.d [INFO] [stderr] error: unable to write file target/debug/deps/percent_encoding-772e81d891a2a739.d [INFO] [stderr] error: unable to create file target/debug/deps/percent_encoding-7f7cc066be186ecf.d: No space left on device [INFO] [stderr] error: unable to create file target/debug/deps/piston-00f61f39eeb9fd68.d: No space left on device [INFO] [stderr] error: unable to create file target/debug/deps/piston-2ce1a2bb7051aea2.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/piston-883c1ae21260c099.d [INFO] [stderr] error: unable to write file target/debug/deps/pkg_config-925bafb68b35360c.d [INFO] [stderr] error: unable to write file target/debug/deps/pkg_config-b60f2bdab018aacc.d [INFO] [stderr] error: unable to write file target/debug/deps/png-17e0b91a8657f21d.d [INFO] [stderr] error: unable to write file target/debug/deps/png-6ee70ed0159008ee.d [INFO] [stderr] Updating files: 88% (2510/2852) error: unable to write file target/debug/deps/png-fd65f17ba6a41031.d [INFO] [stderr] error: unable to write file target/debug/deps/proc_macro2-94c52fc6d4d4510c.d [INFO] [stderr] error: unable to write file target/debug/deps/proc_macro2-d36e90eb8c08b7be.d [INFO] [stderr] error: unable to write file target/debug/deps/proc_macro2-d7754c5e7a0cc6b4.d [INFO] [stderr] error: unable to write file target/debug/deps/quote-22dc3a80b57b016c.d [INFO] [stderr] error: unable to write file target/debug/deps/quote-92c0c4d52835b1a3.d [INFO] [stderr] error: unable to create file target/debug/deps/quote-a7339484905abb0f.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/rand-0d6e35ac3b31c989.d [INFO] [stderr] error: unable to write file target/debug/deps/rand-40fb3a6a60e9aef2.d [INFO] [stderr] error: unable to create file target/debug/deps/rand-e8b1e09b3dd37976.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/rayon-471ae987dd999ddc.d [INFO] [stderr] error: unable to write file target/debug/deps/rayon-7f2cc02549e16690.d [INFO] [stderr] error: unable to create file target/debug/deps/rayon-98478a7d4a2e145d.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/rayon_core-19f255150db533be.d [INFO] [stderr] error: unable to write file target/debug/deps/rayon_core-710a9231908938ee.d [INFO] [stderr] error: unable to write file target/debug/deps/rayon_core-a4c0ab20fabadd78.d [INFO] [stderr] error: unable to write file target/debug/deps/read_color-36ac218fad7ff6c2.d [INFO] [stderr] error: unable to write file target/debug/deps/read_color-4ff4ac645a534c38.d [INFO] [stderr] error: unable to create file target/debug/deps/read_color-9feeafbb04fb6787.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/remove_dir_all-7ecc05b7b74acc14.d [INFO] [stderr] error: unable to write file target/debug/deps/remove_dir_all-85d137184e6635a8.d [INFO] [stderr] error: unable to write file target/debug/deps/remove_dir_all-a9ca7987739548a0.d [INFO] [stderr] error: unable to create file target/debug/deps/rusttype-198c1b6746bad6e3.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/rusttype-a308987f055d3b9c.d [INFO] [stderr] error: unable to write file target/debug/deps/rusttype-cd6b307dd35ddfe7.d [INFO] [stderr] error: unable to write file target/debug/deps/scoped_threadpool-9673e4d9695443ad.d [INFO] [stderr] error: unable to write file target/debug/deps/scoped_threadpool-bb7188258dbbb8b7.d [INFO] [stderr] error: unable to write file target/debug/deps/scoped_threadpool-fb9cafee533bc83b.d [INFO] [stderr] error: unable to write file target/debug/deps/scopeguard-8395ea94af0ab556.d [INFO] [stderr] Updating files: 89% (2539/2852) error: unable to write file target/debug/deps/scopeguard-fa73d1baf2e4f27a.d [INFO] [stderr] error: unable to write file target/debug/deps/scopeguard-ff4fa04a2e38e67a.d [INFO] [stderr] error: unable to write file target/debug/deps/serde-3b9e217c0e037640.d [INFO] [stderr] error: unable to write file target/debug/deps/serde-ba26f21c80a24060.d [INFO] [stderr] error: unable to create file target/debug/deps/serde-e975c7c27cef5203.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/serde_derive-44b78d1bee87089c.d [INFO] [stderr] error: unable to write file target/debug/deps/serde_derive-bdaf3bd761dc81df.d [INFO] [stderr] error: unable to write file target/debug/deps/shader_version-053351f54d6b8cda.d [INFO] [stderr] error: unable to write file target/debug/deps/shader_version-65fcf83af11de62b.d [INFO] [stderr] error: unable to write file target/debug/deps/shader_version-773af5f611843178.d [INFO] [stderr] error: unable to create file target/debug/deps/shaders_graphics2d-6920e0999e580cf6.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/shaders_graphics2d-7e947b3827d8483a.d [INFO] [stderr] error: unable to write file target/debug/deps/shaders_graphics2d-f545a00f21ad877a.d [INFO] [stderr] error: unable to create file target/debug/deps/shared_library-0ffc927a3fa21b64.d: No space left on device [INFO] [stderr] error: unable to write file target/debug/deps/shared_library-298d0200e49a750c.d [INFO] [stderr] error: unable to create file target/debug/deps/shared_library-e19d014827decd66.d: No space left on device [INFO] [stderr] Updating files: 89% (2560/2852) Updating files: 90% (2567/2852) Updating files: 91% (2596/2852) Updating files: 92% (2624/2852) Updating files: 93% (2653/2852) Updating files: 94% (2681/2852) Updating files: 95% (2710/2852) Updating files: 96% (2738/2852) Updating files: 97% (2767/2852) Updating files: 98% (2795/2852) Updating files: 99% (2824/2852) error: unable to write file target/debug/ship_game [INFO] [stderr] Updating files: 100% (2852/2852) error: unable to write file target/debug/ship_game.d [INFO] [stderr] Updating files: 100% (2852/2852), done. [INFO] [stderr] fatal: unable to checkout working tree [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] testing Zielony20/Ship_Game_in_Rust/49d913df23a4cca5cdafd01290e1c149b007cf7c against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 54% (1549/2852) Updating files: 55% (1569/2852) Updating files: 56% (1598/2852) Updating files: 57% (1626/2852) Updating files: 58% (1655/2852) Updating files: 58% (1665/2852) Updating files: 59% (1683/2852) Updating files: 60% (1712/2852) Updating files: 61% (1740/2852) Updating files: 61% (1764/2852) Updating files: 62% (1769/2852) Updating files: 63% (1797/2852) Updating files: 64% (1826/2852) Updating files: 65% (1854/2852) Updating files: 66% (1883/2852) Updating files: 67% (1911/2852) Updating files: 68% (1940/2852) Updating files: 69% (1968/2852) Updating files: 70% (1997/2852) Updating files: 71% (2025/2852) Updating files: 72% (2054/2852) Updating files: 73% (2082/2852) Updating files: 73% (2109/2852) Updating files: 74% (2111/2852) Updating files: 74% (2130/2852) Updating files: 75% (2139/2852) Updating files: 75% (2142/2852) Updating files: 75% (2167/2852) Updating files: 76% (2168/2852) Updating files: 77% (2197/2852) Updating files: 78% (2225/2852) Updating files: 78% (2230/2852) Updating files: 79% (2254/2852) Updating files: 80% (2282/2852) Updating files: 80% (2289/2852) Updating files: 81% (2311/2852) Updating files: 81% (2330/2852) Updating files: 81% (2335/2852) Updating files: 82% (2339/2852) Updating files: 82% (2361/2852) Updating files: 83% (2368/2852) Updating files: 84% (2396/2852) Updating files: 84% (2415/2852) Updating files: 85% (2425/2852) Updating files: 85% (2445/2852) Updating files: 86% (2453/2852) Updating files: 87% (2482/2852) Updating files: 88% (2510/2852) Updating files: 89% (2539/2852) Updating files: 89% (2556/2852) Updating files: 90% (2567/2852) Updating files: 91% (2596/2852) Updating files: 92% (2624/2852) Updating files: 93% (2653/2852) Updating files: 94% (2681/2852) Updating files: 95% (2710/2852) Updating files: 96% (2738/2852) Updating files: 97% (2767/2852) Updating files: 98% (2795/2852) Updating files: 99% (2824/2852) Updating files: 100% (2852/2852) Updating files: 100% (2852/2852), done. [INFO] validating manifest of git repo https://github.com/Zielony20/Ship_Game_in_Rust on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Zielony20/Ship_Game_in_Rust [INFO] finished tweaking git repo https://github.com/Zielony20/Ship_Game_in_Rust [INFO] tweaked toml for git repo https://github.com/Zielony20/Ship_Game_in_Rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Zielony20/Ship_Game_in_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48bf8a06d836f16bee1ffbafd7dd67dde78fa2b8fa1fd65ef51dee7023946fc5 [INFO] running `Command { std: "docker" "start" "-a" "48bf8a06d836f16bee1ffbafd7dd67dde78fa2b8fa1fd65ef51dee7023946fc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48bf8a06d836f16bee1ffbafd7dd67dde78fa2b8fa1fd65ef51dee7023946fc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48bf8a06d836f16bee1ffbafd7dd67dde78fa2b8fa1fd65ef51dee7023946fc5", kill_on_drop: false }` [INFO] [stdout] 48bf8a06d836f16bee1ffbafd7dd67dde78fa2b8fa1fd65ef51dee7023946fc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e35329c605d718a5a12d07a56860bc2da1759f062bb49e382ea72db99c49c240 [INFO] running `Command { std: "docker" "start" "-a" "e35329c605d718a5a12d07a56860bc2da1759f062bb49e382ea72db99c49c240", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling piston-float v0.3.0 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-sys v0.12.5 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling piston-viewport v0.3.0 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling token_store v0.1.2 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.4 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling shader_version v0.3.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling stb_truetype v0.2.8 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Compiling ordered-float v0.5.2 [INFO] [stderr] Compiling wayland-window v0.13.3 [INFO] [stderr] Compiling wayland-kbd v0.13.1 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling inflate v0.3.4 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling gif v0.9.2 [INFO] [stderr] Compiling winit v0.10.0 [INFO] [stderr] Compiling png v0.11.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rusttype v0.4.3 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling vecmath v0.3.1 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling interpolation v0.1.0 [INFO] [stderr] Compiling piston-texture v0.6.0 [INFO] [stderr] Compiling image v0.18.0 [INFO] [stderr] Compiling piston2d-graphics v0.26.0 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling text_io v0.1.10 [INFO] [stderr] Compiling pistoncore-input v0.20.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.52.1 [INFO] [stderr] Compiling pistoncore-window v0.31.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.36.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.45.3 [INFO] [stderr] Compiling piston v0.36.0 [INFO] [stderr] Compiling ship_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:174:51 [INFO] [stdout] | [INFO] [stdout] 174 | let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stdout] 174 + let pointer = graphics::rectangle::square(p1 + (s*12) as f64, p2 as f64, (s as f64)*0.8); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/main.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | self.gl.draw(args.viewport(), |context, graphics| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | fn update(&mut self, args: &UpdateArgs) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut x = r.gen_range(0, 9); [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/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut y = r.gen_range(0, 9); [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/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut square = graphics::rectangle::square((20) as f64, (20) as f64, s as f64); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `squares` [INFO] [stdout] --> src/main.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut squares: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_squares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:158:37 [INFO] [stdout] | [INFO] [stdout] 158 | ... let mut square = graphics::rectangle::square((x*s+3*x+s) as f64, (y*s+3*y+s) as f64, s as f64); [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/main.rs:180:33 [INFO] [stdout] | [INFO] [stdout] 180 | ... let mut square = graphics::rectangle::square((x*s+3*x+s*13) as f64, (y*s+3*y+s) as f64, s as f64); [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/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut squares: Vec = Vec::new(); [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/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut board = self.fields_p1.clone(); [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/main.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut board = self.fields_c1.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | _=> {return false;}, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 200 | Player::Computer => { return self.ships_c1.iter().any(|v| v.alive == true) }, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 201 | Player::Player1 => { return self.ships_p1.iter().any(|v| v.alive == true) }, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 202 | _=> {return false;}, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let s = self.size as f64*0.8; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | for s in 0..n{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | let mut new_x:i8 = r.gen_range(0, 9); [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/main.rs:258:21 [INFO] [stdout] | [INFO] [stdout] 258 | let mut new_y:i8 = r.gen_range(0, 9); [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/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | let mut orient:i8 = r.gen_range(1, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `counter` is never read [INFO] [stdout] --> src/main.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | let mut counter : u8 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut board:[[Area;10];10]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | _=>Area::NOTHING [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 405 | Area::NOTHING =>Area::MISS, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 406 | Area::UNKNOWN =>Area::MISS, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 407 | Area::SHIP =>Area::DESTROYEDSHIP, [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 408 | Area::DESTROYEDSHIP =>Area::DESTROYEDSHIP, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 411 | _=>Area::NOTHING [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ships` [INFO] [stdout] --> src/main.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | let mut ships:&[Ship;10]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ships` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows`, `cols`, and `square_width` are never read [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | gl: GlGraphics, [INFO] [stdout] 33 | rows: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | cols: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | board: Board, [INFO] [stdout] 36 | square_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fields` is never read [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 99 | gl: GlGraphics, [INFO] [stdout] 100 | fields: i8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fun` is never used [INFO] [stdout] --> src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn fun(context : graphics::context::Context, gl : &mut GlGraphics){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_ship` is never used [INFO] [stdout] --> src/main.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | fn push_ship(mut self,ship:Ship,player:Player){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `computerTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn computerTurn(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `computer_turn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `playerTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn playerTurn(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `player_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `playerAlive` should have a snake case name [INFO] [stdout] --> src/main.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn playerAlive(&self, player : Player) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `player_alive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getPointerSquare` should have a snake case name [INFO] [stdout] --> src/main.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn getPointerSquare(&mut self, x : u32, y : u32) -> (f64,f64) { //-> graphics::types::Rectangle [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_pointer_square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updatePointer` should have a snake case name [INFO] [stdout] --> src/main.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn updatePointer(&mut self, x : i8, y : i8){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:319:19 [INFO] [stdout] | [INFO] [stdout] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:319:33 [INFO] [stdout] | [INFO] [stdout] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.97s [INFO] running `Command { std: "docker" "inspect" "e35329c605d718a5a12d07a56860bc2da1759f062bb49e382ea72db99c49c240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e35329c605d718a5a12d07a56860bc2da1759f062bb49e382ea72db99c49c240", kill_on_drop: false }` [INFO] [stdout] e35329c605d718a5a12d07a56860bc2da1759f062bb49e382ea72db99c49c240 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f37a0584d27c3c99759757a7b32489d1370819ac60ede610e046f58848d5d893 [INFO] running `Command { std: "docker" "start" "-a" "f37a0584d27c3c99759757a7b32489d1370819ac60ede610e046f58848d5d893", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling ship_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:174:51 [INFO] [stdout] | [INFO] [stdout] 174 | let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stdout] 174 + let pointer = graphics::rectangle::square(p1 + (s*12) as f64, p2 as f64, (s as f64)*0.8); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/main.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | self.gl.draw(args.viewport(), |context, graphics| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 54 | fn update(&mut self, args: &UpdateArgs) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut x = r.gen_range(0, 9); [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/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut y = r.gen_range(0, 9); [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/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut square = graphics::rectangle::square((20) as f64, (20) as f64, s as f64); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `squares` [INFO] [stdout] --> src/main.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let mut squares: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_squares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:158:37 [INFO] [stdout] | [INFO] [stdout] 158 | ... let mut square = graphics::rectangle::square((x*s+3*x+s) as f64, (y*s+3*y+s) as f64, s as f64); [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/main.rs:180:33 [INFO] [stdout] | [INFO] [stdout] 180 | ... let mut square = graphics::rectangle::square((x*s+3*x+s*13) as f64, (y*s+3*y+s) as f64, s as f64); [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/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut squares: Vec = Vec::new(); [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/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut board = self.fields_p1.clone(); [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/main.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut board = self.fields_c1.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | _=> {return false;}, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 200 | Player::Computer => { return self.ships_c1.iter().any(|v| v.alive == true) }, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 201 | Player::Player1 => { return self.ships_p1.iter().any(|v| v.alive == true) }, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 202 | _=> {return false;}, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let s = self.size as f64*0.8; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | for s in 0..n{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | let mut new_x:i8 = r.gen_range(0, 9); [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/main.rs:258:21 [INFO] [stdout] | [INFO] [stdout] 258 | let mut new_y:i8 = r.gen_range(0, 9); [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/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | let mut orient:i8 = r.gen_range(1, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `counter` is never read [INFO] [stdout] --> src/main.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | let mut counter : u8 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut board:[[Area;10];10]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | _=>Area::NOTHING [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 405 | Area::NOTHING =>Area::MISS, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 406 | Area::UNKNOWN =>Area::MISS, [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 407 | Area::SHIP =>Area::DESTROYEDSHIP, [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] 408 | Area::DESTROYEDSHIP =>Area::DESTROYEDSHIP, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 411 | _=>Area::NOTHING [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ships` [INFO] [stdout] --> src/main.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | let mut ships:&[Ship;10]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ships` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows`, `cols`, and `square_width` are never read [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | gl: GlGraphics, [INFO] [stdout] 33 | rows: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | cols: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | board: Board, [INFO] [stdout] 36 | square_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fields` is never read [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 99 | gl: GlGraphics, [INFO] [stdout] 100 | fields: i8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fun` is never used [INFO] [stdout] --> src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn fun(context : graphics::context::Context, gl : &mut GlGraphics){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_ship` is never used [INFO] [stdout] --> src/main.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | fn push_ship(mut self,ship:Ship,player:Player){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `computerTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn computerTurn(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `computer_turn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `playerTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn playerTurn(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `player_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `playerAlive` should have a snake case name [INFO] [stdout] --> src/main.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn playerAlive(&self, player : Player) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `player_alive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getPointerSquare` should have a snake case name [INFO] [stdout] --> src/main.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn getPointerSquare(&mut self, x : u32, y : u32) -> (f64,f64) { //-> graphics::types::Rectangle [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_pointer_square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updatePointer` should have a snake case name [INFO] [stdout] --> src/main.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn updatePointer(&mut self, x : i8, y : i8){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:319:19 [INFO] [stdout] | [INFO] [stdout] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:319:33 [INFO] [stdout] | [INFO] [stdout] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "f37a0584d27c3c99759757a7b32489d1370819ac60ede610e046f58848d5d893", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f37a0584d27c3c99759757a7b32489d1370819ac60ede610e046f58848d5d893", kill_on_drop: false }` [INFO] [stdout] f37a0584d27c3c99759757a7b32489d1370819ac60ede610e046f58848d5d893 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c5caa9005a4fdd7dfef17e4c9d026b11c23a10164cd1a22c545c81a2fea7d909 [INFO] running `Command { std: "docker" "start" "-a" "c5caa9005a4fdd7dfef17e4c9d026b11c23a10164cd1a22c545c81a2fea7d909", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/main.rs:174:51 [INFO] [stderr] | [INFO] [stderr] 174 | let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stderr] | ^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 174 - let pointer = graphics::rectangle::square((p1 + (s*12) as f64 ), p2 as f64, (s as f64)*0.8); [INFO] [stderr] 174 + let pointer = graphics::rectangle::square(p1 + (s*12) as f64, p2 as f64, (s as f64)*0.8); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `context` [INFO] [stderr] --> src/main.rs:45:40 [INFO] [stderr] | [INFO] [stderr] 45 | self.gl.draw(args.viewport(), |context, graphics| { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/main.rs:54:26 [INFO] [stderr] | [INFO] [stderr] 54 | fn update(&mut self, args: &UpdateArgs) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:71:13 [INFO] [stderr] | [INFO] [stderr] 71 | let mut x = r.gen_range(0, 9); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:72:13 [INFO] [stderr] | [INFO] [stderr] 72 | let mut y = r.gen_range(0, 9); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | let mut square = graphics::rectangle::square((20) as f64, (20) as f64, s as f64); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `squares` [INFO] [stderr] --> src/main.rs:136:17 [INFO] [stderr] | [INFO] [stderr] 136 | let mut squares: Vec = Vec::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_squares` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:158:37 [INFO] [stderr] | [INFO] [stderr] 158 | ... let mut square = graphics::rectangle::square((x*s+3*x+s) as f64, (y*s+3*y+s) as f64, s as f64); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:180:33 [INFO] [stderr] | [INFO] [stderr] 180 | ... let mut square = graphics::rectangle::square((x*s+3*x+s*13) as f64, (y*s+3*y+s) as f64, s as f64); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:136:13 [INFO] [stderr] | [INFO] [stderr] 136 | let mut squares: Vec = Vec::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | let mut board = self.fields_p1.clone(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:172:13 [INFO] [stderr] | [INFO] [stderr] 172 | let mut board = self.fields_c1.clone(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/main.rs:202:13 [INFO] [stderr] | [INFO] [stderr] 202 | _=> {return false;}, [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/main.rs:202:13 [INFO] [stderr] | [INFO] [stderr] 200 | Player::Computer => { return self.ships_c1.iter().any(|v| v.alive == true) }, [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] 201 | Player::Player1 => { return self.ships_p1.iter().any(|v| v.alive == true) }, [INFO] [stderr] | --------------- matches some of the same values [INFO] [stderr] 202 | _=> {return false;}, [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:207:13 [INFO] [stderr] | [INFO] [stderr] 207 | let s = self.size as f64*0.8; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:243:13 [INFO] [stderr] | [INFO] [stderr] 243 | for s in 0..n{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:257:21 [INFO] [stderr] | [INFO] [stderr] 257 | let mut new_x:i8 = r.gen_range(0, 9); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:258:21 [INFO] [stderr] | [INFO] [stderr] 258 | let mut new_y:i8 = r.gen_range(0, 9); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:259:21 [INFO] [stderr] | [INFO] [stderr] 259 | let mut orient:i8 = r.gen_range(1, 4); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `counter` is never read [INFO] [stderr] --> src/main.rs:317:17 [INFO] [stderr] | [INFO] [stderr] 317 | let mut counter : u8 = 0; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:322:13 [INFO] [stderr] | [INFO] [stderr] 322 | let mut board:[[Area;10];10]; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/main.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | _=>Area::NOTHING [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/main.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 405 | Area::NOTHING =>Area::MISS, [INFO] [stderr] | ------------- matches some of the same values [INFO] [stderr] 406 | Area::UNKNOWN =>Area::MISS, [INFO] [stderr] | ------------- matches some of the same values [INFO] [stderr] 407 | Area::SHIP =>Area::DESTROYEDSHIP, [INFO] [stderr] | ---------- matches some of the same values [INFO] [stderr] 408 | Area::DESTROYEDSHIP =>Area::DESTROYEDSHIP, [INFO] [stderr] | ------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 411 | _=>Area::NOTHING [INFO] [stderr] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ships` [INFO] [stderr] --> src/main.rs:343:17 [INFO] [stderr] | [INFO] [stderr] 343 | let mut ships:&[Ship;10]; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ships` [INFO] [stderr] [INFO] [stderr] warning: fields `rows`, `cols`, and `square_width` are never read [INFO] [stderr] --> src/main.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct Game { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 32 | gl: GlGraphics, [INFO] [stderr] 33 | rows: u32, [INFO] [stderr] | ^^^^ [INFO] [stderr] 34 | cols: u32, [INFO] [stderr] | ^^^^ [INFO] [stderr] 35 | board: Board, [INFO] [stderr] 36 | square_width: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `fields` is never read [INFO] [stderr] --> src/main.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 98 | pub struct Board { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 99 | gl: GlGraphics, [INFO] [stderr] 100 | fields: i8, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fun` is never used [INFO] [stderr] --> src/main.rs:114:4 [INFO] [stderr] | [INFO] [stderr] 114 | fn fun(context : graphics::context::Context, gl : &mut GlGraphics){ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `push_ship` is never used [INFO] [stderr] --> src/main.rs:221:8 [INFO] [stderr] | [INFO] [stderr] 124 | impl Board { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 221 | fn push_ship(mut self,ship:Ship,player:Player){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `computerTurn` should have a snake case name [INFO] [stderr] --> src/main.rs:69:8 [INFO] [stderr] | [INFO] [stderr] 69 | fn computerTurn(&mut self) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `computer_turn` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `playerTurn` should have a snake case name [INFO] [stderr] --> src/main.rs:76:8 [INFO] [stderr] | [INFO] [stderr] 76 | fn playerTurn(&mut self) -> bool{ [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `player_turn` [INFO] [stderr] [INFO] [stderr] warning: method `playerAlive` should have a snake case name [INFO] [stderr] --> src/main.rs:198:12 [INFO] [stderr] | [INFO] [stderr] 198 | pub fn playerAlive(&self, player : Player) -> bool{ [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `player_alive` [INFO] [stderr] [INFO] [stderr] warning: method `getPointerSquare` should have a snake case name [INFO] [stderr] --> src/main.rs:206:12 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn getPointerSquare(&mut self, x : u32, y : u32) -> (f64,f64) { //-> graphics::types::Rectangle [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_pointer_square` [INFO] [stderr] [INFO] [stderr] warning: method `updatePointer` should have a snake case name [INFO] [stderr] --> src/main.rs:215:12 [INFO] [stderr] | [INFO] [stderr] 215 | pub fn updatePointer(&mut self, x : i8, y : i8){ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_pointer` [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:319:19 [INFO] [stderr] | [INFO] [stderr] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:319:33 [INFO] [stderr] | [INFO] [stderr] 319 | if x>9 || x<0 || y>9 || y<0{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `ship_game` (bin "ship_game" test) generated 33 warnings (run `cargo fix --bin "ship_game" --tests` to apply 13 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ship_game-1730db83bc98ea53) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c5caa9005a4fdd7dfef17e4c9d026b11c23a10164cd1a22c545c81a2fea7d909", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5caa9005a4fdd7dfef17e4c9d026b11c23a10164cd1a22c545c81a2fea7d909", kill_on_drop: false }` [INFO] [stdout] c5caa9005a4fdd7dfef17e4c9d026b11c23a10164cd1a22c545c81a2fea7d909