[INFO] cloning repository https://github.com/crypticC0der/rust-minesweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crypticC0der/rust-minesweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcrypticC0der%2Frust-minesweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcrypticC0der%2Frust-minesweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f9de2c72ae46504e68ecfc4e26648c14a6c8919 [INFO] building crypticC0der/rust-minesweeper against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcrypticC0der%2Frust-minesweeper" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crypticC0der/rust-minesweeper on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/crypticC0der/rust-minesweeper [INFO] finished tweaking git repo https://github.com/crypticC0der/rust-minesweeper [INFO] tweaked toml for git repo https://github.com/crypticC0der/rust-minesweeper written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/crypticC0der/rust-minesweeper 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78ca3d10982810c1556c8b92b0620e1416e04f81ac6c999d51eb385a1ad0eb9e [INFO] running `Command { std: "docker" "start" "-a" "78ca3d10982810c1556c8b92b0620e1416e04f81ac6c999d51eb385a1ad0eb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78ca3d10982810c1556c8b92b0620e1416e04f81ac6c999d51eb385a1ad0eb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78ca3d10982810c1556c8b92b0620e1416e04f81ac6c999d51eb385a1ad0eb9e", kill_on_drop: false }` [INFO] [stdout] 78ca3d10982810c1556c8b92b0620e1416e04f81ac6c999d51eb385a1ad0eb9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] efcbc737a63a9cb388ee0e25bf77e569d84183f0ce22136a0fdbf860b218d969 [INFO] running `Command { std: "docker" "start" "-a" "efcbc737a63a9cb388ee0e25bf77e569d84183f0ce22136a0fdbf860b218d969", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling getrandom v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling termion v1.5.5 [INFO] [stderr] Compiling rand_core v0.6.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.1 [INFO] [stderr] Compiling minesweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | notspawn = (di > 1 || di < -1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - notspawn = (di > 1 || di < -1); [INFO] [stdout] 28 + notspawn = di > 1 || di < -1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | notspawn |= (dj >1 || dj < -1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - notspawn |= (dj >1 || dj < -1); [INFO] [stdout] 29 + notspawn |= dj >1 || dj < -1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | if (board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1]){revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - if (board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1]){revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] 61 + if board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1] {revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | if (c>5){c=5;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - if (c>5){c=5;} [INFO] [stdout] 84 + if c>5 {c=5;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if (*ii!=1 || *jj!=1){space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if (*ii!=1 || *jj!=1){space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] 143 + if *ii!=1 || *jj!=1 {space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:238:39 [INFO] [stdout] | [INFO] [stdout] 238 | ... if((*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1]){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - if((*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1]){continue;} [INFO] [stdout] 238 + if (*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1] {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | None => {;}, [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:388:24 [INFO] [stdout] | [INFO] [stdout] 388 | if (i > IBORDR && j> JBORDR){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 388 - if (i > IBORDR && j> JBORDR){ [INFO] [stdout] 388 + if i > IBORDR && j> JBORDR { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:391:28 [INFO] [stdout] | [INFO] [stdout] 391 | if (i < HEIGHT && j < LENGTH){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 391 - if (i < HEIGHT && j < LENGTH){ [INFO] [stdout] 391 + if i < HEIGHT && j < LENGTH { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `notspawn` is never read [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut notspawn = false; [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: `j` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | for j in 0..LENGTH{s.push('█');} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | for j in 0..LENGTH{s.push('█');} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:100:113 [INFO] [stdout] | [INFO] [stdout] 100 | fn gameOver(flags:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],s:&str)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let stdin = io::stdin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | let stdin = io::stdin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdout` [INFO] [stdout] --> src/main.rs:223:21 [INFO] [stdout] | [INFO] [stdout] 223 | let mut stdout = io::stdout().into_raw_mode().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `correct` is never read [INFO] [stdout] --> src/main.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | correct=0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | let mut stdout = io::stdout().into_raw_mode().unwrap(); [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: value assigned to `correct` is never read [INFO] [stdout] --> src/main.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | let mut correct=0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:390:33 [INFO] [stdout] | [INFO] [stdout] 390 | let mut c:char; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn genBoard(spawn:(usize,usize),brd:&mut [[u8;LENGTH];HEIGHT]){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `gen_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revealTile` should have a snake case name [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn revealTile(board:&mut [[u8;LENGTH];HEIGHT], known:&mut [[bool;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reveal_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn gameOver(flags:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],s:&str)->bool{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:115:109 [INFO] [stdout] | [INFO] [stdout] 115 | ...IGHT],board:&mut [[u8;LENGTH];HEIGHT],fTurn:&mut bool, cords:(usize,usize)) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn placeFlag(flgs:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT], i:usize,j:usize,corr:&mu... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `place_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | write!(io::stdout(),"{}{}{}{}{}",s,color::Fg(color::AnsiValue::rgb(5,0,0)),c,color::Fg(color::Reset),termion::cursor::Left(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filledSpace` should have a snake case name [INFO] [stdout] --> src/main.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn filledSpace(space:&mut [[u8;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `filled_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bombFound` should have a snake case name [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn bombFound(spaces:&mut [[u8;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `bomb_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currPat` should have a snake case name [INFO] [stdout] --> src/main.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | fn ptrn(currPat:Vec<(usize,usize)>,cont:usize,blocks:&mut Vec<(usize,usize)>) -> Vec>{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runBot` should have a snake case name [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn runBot(){ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `run_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `failRow` should have a snake case name [INFO] [stdout] --> src/main.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | let mut failRow=0.0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fail_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | let mut fTurn=true; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corrPats` should have a snake case name [INFO] [stdout] --> src/main.rs:257:41 [INFO] [stdout] | [INFO] [stdout] 257 | ... let mut corrPats:Vec<(usize,usize)>=Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `corr_pats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `posFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:263:41 [INFO] [stdout] | [INFO] [stdout] 263 | ... for posFlag in o.iter(){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pos_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | tx.send(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 351 | let _ = tx.send(true); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | t.join(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 352 | let _ = t.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:354:13 [INFO] [stdout] | [INFO] [stdout] 354 | write!(stdout,"{}{}",termion::clear::All,termion::cursor::Goto(1,1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | stdout.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 355 | let _ = stdout.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut fTurn=true; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:385:36 [INFO] [stdout] | [INFO] [stdout] 385 | Key::Char('q') => {write!(stdout,"{}{}",termion::clear::All,termion::cursor::Goto(1,1));playing=false;break;}, //quits game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:396:29 [INFO] [stdout] | [INFO] [stdout] 396 | Key::Up => {write!(stdout,"{}",termion::cursor::Up(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:397:32 [INFO] [stdout] | [INFO] [stdout] 397 | Key::Right => {write!(stdout,"{}",termion::cursor::Right(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:398:31 [INFO] [stdout] | [INFO] [stdout] 398 | Key::Down => {write!(stdout,"{}",termion::cursor::Down(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:399:31 [INFO] [stdout] | [INFO] [stdout] 399 | Key::Left => {write!(stdout,"{}",termion::cursor::Left(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] running `Command { std: "docker" "inspect" "efcbc737a63a9cb388ee0e25bf77e569d84183f0ce22136a0fdbf860b218d969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efcbc737a63a9cb388ee0e25bf77e569d84183f0ce22136a0fdbf860b218d969", kill_on_drop: false }` [INFO] [stdout] efcbc737a63a9cb388ee0e25bf77e569d84183f0ce22136a0fdbf860b218d969 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1922b0d3a17c8fcc5d4dea7d890186fdb3e7d5dd50be823dd9cf6e5adb3d810 [INFO] running `Command { std: "docker" "start" "-a" "d1922b0d3a17c8fcc5d4dea7d890186fdb3e7d5dd50be823dd9cf6e5adb3d810", kill_on_drop: false }` [INFO] [stderr] Compiling minesweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | notspawn = (di > 1 || di < -1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - notspawn = (di > 1 || di < -1); [INFO] [stdout] 28 + notspawn = di > 1 || di < -1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | notspawn |= (dj >1 || dj < -1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - notspawn |= (dj >1 || dj < -1); [INFO] [stdout] 29 + notspawn |= dj >1 || dj < -1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | if (board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1]){revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - if (board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1]){revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] 61 + if board[i+ii-1][j+jj-1]<9 && !known[i+ii-1][j+jj-1] {revealTile(board,known,i+ii-1,j+jj-1);} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | if (c>5){c=5;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - if (c>5){c=5;} [INFO] [stdout] 84 + if c>5 {c=5;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if (*ii!=1 || *jj!=1){space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if (*ii!=1 || *jj!=1){space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] 143 + if *ii!=1 || *jj!=1 {space[ii+i-1][j+jj-1]-=1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:238:39 [INFO] [stdout] | [INFO] [stdout] 238 | ... if((*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1]){continue;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - if((*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1]){continue;} [INFO] [stdout] 238 + if (*ii == 1 && *jj == 1) || known[i+ii-1][j+jj-1] {continue;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 358 | None => {;}, [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:388:24 [INFO] [stdout] | [INFO] [stdout] 388 | if (i > IBORDR && j> JBORDR){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 388 - if (i > IBORDR && j> JBORDR){ [INFO] [stdout] 388 + if i > IBORDR && j> JBORDR { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:391:28 [INFO] [stdout] | [INFO] [stdout] 391 | if (i < HEIGHT && j < LENGTH){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 391 - if (i < HEIGHT && j < LENGTH){ [INFO] [stdout] 391 + if i < HEIGHT && j < LENGTH { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `notspawn` is never read [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let mut notspawn = false; [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: `j` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | for j in 0..LENGTH{s.push('█');} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | for j in 0..LENGTH{s.push('█');} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:100:113 [INFO] [stdout] | [INFO] [stdout] 100 | fn gameOver(flags:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],s:&str)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let stdin = io::stdin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | let stdin = io::stdin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdout` [INFO] [stdout] --> src/main.rs:223:21 [INFO] [stdout] | [INFO] [stdout] 223 | let mut stdout = io::stdout().into_raw_mode().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value captured by `correct` is never read [INFO] [stdout] --> src/main.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | correct=0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | let mut stdout = io::stdout().into_raw_mode().unwrap(); [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: value assigned to `correct` is never read [INFO] [stdout] --> src/main.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | let mut correct=0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:390:33 [INFO] [stdout] | [INFO] [stdout] 390 | let mut c:char; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn genBoard(spawn:(usize,usize),brd:&mut [[u8;LENGTH];HEIGHT]){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `gen_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revealTile` should have a snake case name [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn revealTile(board:&mut [[u8;LENGTH];HEIGHT], known:&mut [[bool;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reveal_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn gameOver(flags:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],s:&str)->bool{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:115:109 [INFO] [stdout] | [INFO] [stdout] 115 | ...IGHT],board:&mut [[u8;LENGTH];HEIGHT],fTurn:&mut bool, cords:(usize,usize)) -> bool{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn placeFlag(flgs:&mut [[bool;LENGTH];HEIGHT],known:&mut [[bool;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT], i:usize,j:usize,corr:&mu... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `place_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | write!(io::stdout(),"{}{}{}{}{}",s,color::Fg(color::AnsiValue::rgb(5,0,0)),c,color::Fg(color::Reset),termion::cursor::Left(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filledSpace` should have a snake case name [INFO] [stdout] --> src/main.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn filledSpace(space:&mut [[u8;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `filled_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bombFound` should have a snake case name [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn bombFound(spaces:&mut [[u8;LENGTH];HEIGHT],board:&mut [[u8;LENGTH];HEIGHT],i:usize,j:usize){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `bomb_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currPat` should have a snake case name [INFO] [stdout] --> src/main.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | fn ptrn(currPat:Vec<(usize,usize)>,cont:usize,blocks:&mut Vec<(usize,usize)>) -> Vec>{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runBot` should have a snake case name [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn runBot(){ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `run_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `failRow` should have a snake case name [INFO] [stdout] --> src/main.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | let mut failRow=0.0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `fail_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | let mut fTurn=true; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corrPats` should have a snake case name [INFO] [stdout] --> src/main.rs:257:41 [INFO] [stdout] | [INFO] [stdout] 257 | ... let mut corrPats:Vec<(usize,usize)>=Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `corr_pats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `posFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:263:41 [INFO] [stdout] | [INFO] [stdout] 263 | ... for posFlag in o.iter(){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pos_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | tx.send(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 351 | let _ = tx.send(true); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | t.join(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 352 | let _ = t.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:354:13 [INFO] [stdout] | [INFO] [stdout] 354 | write!(stdout,"{}{}",termion::clear::All,termion::cursor::Goto(1,1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | stdout.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 355 | let _ = stdout.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fTurn` should have a snake case name [INFO] [stdout] --> src/main.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let mut fTurn=true; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `f_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:385:36 [INFO] [stdout] | [INFO] [stdout] 385 | Key::Char('q') => {write!(stdout,"{}{}",termion::clear::All,termion::cursor::Goto(1,1));playing=false;break;}, //quits game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:396:29 [INFO] [stdout] | [INFO] [stdout] 396 | Key::Up => {write!(stdout,"{}",termion::cursor::Up(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:397:32 [INFO] [stdout] | [INFO] [stdout] 397 | Key::Right => {write!(stdout,"{}",termion::cursor::Right(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:398:31 [INFO] [stdout] | [INFO] [stdout] 398 | Key::Down => {write!(stdout,"{}",termion::cursor::Down(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:399:31 [INFO] [stdout] | [INFO] [stdout] 399 | Key::Left => {write!(stdout,"{}",termion::cursor::Left(1));} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "d1922b0d3a17c8fcc5d4dea7d890186fdb3e7d5dd50be823dd9cf6e5adb3d810", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1922b0d3a17c8fcc5d4dea7d890186fdb3e7d5dd50be823dd9cf6e5adb3d810", kill_on_drop: false }` [INFO] [stdout] d1922b0d3a17c8fcc5d4dea7d890186fdb3e7d5dd50be823dd9cf6e5adb3d810