[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] checking Zielony20/Ship_Game_in_Rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 53% (1512/2852) Updating files: 54% (1541/2852) Updating files: 55% (1569/2852) Updating files: 56% (1598/2852) Updating files: 57% (1626/2852) Updating files: 57% (1627/2852) Updating files: 58% (1655/2852) Updating files: 59% (1683/2852) Updating files: 59% (1698/2852) Updating files: 60% (1712/2852) Updating files: 61% (1740/2852) Updating files: 62% (1769/2852) Updating files: 62% (1794/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% (2125/2852) Updating files: 75% (2139/2852) Updating files: 76% (2168/2852) Updating files: 76% (2174/2852) Updating files: 77% (2197/2852) Updating files: 78% (2225/2852) Updating files: 79% (2254/2852) Updating files: 80% (2282/2852) Updating files: 81% (2311/2852) Updating files: 81% (2334/2852) Updating files: 82% (2339/2852) Updating files: 83% (2368/2852) Updating files: 84% (2396/2852) Updating files: 85% (2425/2852) Updating files: 85% (2428/2852) Updating files: 86% (2453/2852) Updating files: 87% (2482/2852) Updating files: 88% (2510/2852) Updating files: 89% (2539/2852) Updating files: 89% (2558/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 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-1-tc1/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e85d2f4e2d347221bfe2cea465245e9e82c3567a8605eda937f62013ba5aa678 [INFO] running `Command { std: "docker" "start" "-a" "e85d2f4e2d347221bfe2cea465245e9e82c3567a8605eda937f62013ba5aa678", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e85d2f4e2d347221bfe2cea465245e9e82c3567a8605eda937f62013ba5aa678", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e85d2f4e2d347221bfe2cea465245e9e82c3567a8605eda937f62013ba5aa678", kill_on_drop: false }` [INFO] [stdout] e85d2f4e2d347221bfe2cea465245e9e82c3567a8605eda937f62013ba5aa678 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7e62e31bbbf672274b3556d84186d03b422ea034b44694f9363a8de9111fb41 [INFO] running `Command { std: "docker" "start" "-a" "b7e62e31bbbf672274b3556d84186d03b422ea034b44694f9363a8de9111fb41", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking piston-float v0.3.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking piston-viewport v0.3.0 [INFO] [stderr] Checking token_store v0.1.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking wayland-sys v0.12.5 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking shader_version v0.3.0 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking rayon-core v1.9.3 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Checking stb_truetype v0.2.8 [INFO] [stderr] Checking rayon v1.5.3 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking ordered-float v0.5.2 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking wayland-kbd v0.13.1 [INFO] [stderr] Checking rusttype v0.4.3 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking vecmath v0.3.1 [INFO] [stderr] Checking piston-texture v0.6.0 [INFO] [stderr] Checking interpolation v0.1.0 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking text_io v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking piston2d-graphics v0.26.0 [INFO] [stderr] Checking wayland-window v0.13.3 [INFO] [stderr] Checking winit v0.10.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.52.1 [INFO] [stderr] Checking pistoncore-input v0.20.0 [INFO] [stderr] Checking pistoncore-window v0.31.0 [INFO] [stderr] Checking pistoncore-event_loop v0.36.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.45.3 [INFO] [stderr] Checking piston v0.36.0 [INFO] [stderr] Checking 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: 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] | ^ [INFO] [stdout] | [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] | ^ [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] [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] | ^ [INFO] [stdout] | [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] | ^ [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 27.74s [INFO] running `Command { std: "docker" "inspect" "b7e62e31bbbf672274b3556d84186d03b422ea034b44694f9363a8de9111fb41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7e62e31bbbf672274b3556d84186d03b422ea034b44694f9363a8de9111fb41", kill_on_drop: false }` [INFO] [stdout] b7e62e31bbbf672274b3556d84186d03b422ea034b44694f9363a8de9111fb41 [INFO] checking Zielony20/Ship_Game_in_Rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZielony20%2FShip_Game_in_Rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 52% (1499/2852) Updating files: 53% (1512/2852) Updating files: 53% (1525/2852) Updating files: 54% (1541/2852) Updating files: 55% (1569/2852) Updating files: 56% (1598/2852) Updating files: 56% (1603/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: 61% (1767/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: 72% (2060/2852) Updating files: 73% (2082/2852) Updating files: 74% (2111/2852) Updating files: 75% (2139/2852) Updating files: 76% (2168/2852) Updating files: 76% (2174/2852) Updating files: 77% (2197/2852) Updating files: 78% (2225/2852) Updating files: 79% (2254/2852) Updating files: 80% (2282/2852) Updating files: 81% (2311/2852) Updating files: 81% (2334/2852) Updating files: 82% (2339/2852) Updating files: 83% (2368/2852) Updating files: 84% (2396/2852) Updating files: 85% (2425/2852) Updating files: 85% (2450/2852) Updating files: 86% (2453/2852) Updating files: 87% (2482/2852) Updating files: 88% (2510/2852) Updating files: 89% (2539/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: 98% (2798/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 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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-1-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf5be949ce2f5e422971f83dc9bfa2d44eeed3ce16ed1e126f659c7c4a7c15ea [INFO] running `Command { std: "docker" "start" "-a" "cf5be949ce2f5e422971f83dc9bfa2d44eeed3ce16ed1e126f659c7c4a7c15ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf5be949ce2f5e422971f83dc9bfa2d44eeed3ce16ed1e126f659c7c4a7c15ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf5be949ce2f5e422971f83dc9bfa2d44eeed3ce16ed1e126f659c7c4a7c15ea", kill_on_drop: false }` [INFO] [stdout] cf5be949ce2f5e422971f83dc9bfa2d44eeed3ce16ed1e126f659c7c4a7c15ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=forbid" "-e" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b991698aabf0d0d85592202fab5be30cbce44fdeaac22bc2b6b926dbca2e7d9 [INFO] running `Command { std: "docker" "start" "-a" "6b991698aabf0d0d85592202fab5be30cbce44fdeaac22bc2b6b926dbca2e7d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking piston-float v0.3.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking piston-viewport v0.3.0 [INFO] [stderr] Checking token_store v0.1.2 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking wayland-sys v0.12.5 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking shader_version v0.3.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking stb_truetype v0.2.8 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking rayon-core v1.9.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking ordered-float v0.5.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking rayon v1.5.3 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking rusttype v0.4.3 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking wayland-kbd v0.13.1 [INFO] [stderr] Checking vecmath v0.3.1 [INFO] [stderr] Checking interpolation v0.1.0 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking piston-texture v0.6.0 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking piston2d-graphics v0.26.0 [INFO] [stderr] Checking text_io v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking wayland-window v0.13.3 [INFO] [stderr] Checking winit v0.10.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.52.1 [INFO] [stderr] Checking pistoncore-input v0.20.0 [INFO] [stderr] Checking pistoncore-window v0.31.0 [INFO] [stderr] Checking pistoncore-event_loop v0.36.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.45.3 [INFO] [stderr] Checking piston v0.36.0 [INFO] [stderr] Checking 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: 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] | ^ [INFO] [stdout] | [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: 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: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] | ^ [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: 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: 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] | ^ [INFO] [stdout] | [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: 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: 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: 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: 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] | ^ [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: 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] [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 29.85s [INFO] running `Command { std: "docker" "inspect" "6b991698aabf0d0d85592202fab5be30cbce44fdeaac22bc2b6b926dbca2e7d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b991698aabf0d0d85592202fab5be30cbce44fdeaac22bc2b6b926dbca2e7d9", kill_on_drop: false }` [INFO] [stdout] 6b991698aabf0d0d85592202fab5be30cbce44fdeaac22bc2b6b926dbca2e7d9