[INFO] cloning repository https://github.com/zoomeraction/backgammon [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zoomeraction/backgammon" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzoomeraction%2Fbackgammon", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzoomeraction%2Fbackgammon'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 33af9d3e4c660dcc48c9b491f2bf20173e28390d [INFO] building zoomeraction/backgammon 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%2Fzoomeraction%2Fbackgammon" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zoomeraction/backgammon 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/zoomeraction/backgammon [INFO] finished tweaking git repo https://github.com/zoomeraction/backgammon [INFO] tweaked toml for git repo https://github.com/zoomeraction/backgammon written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zoomeraction/backgammon 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-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e01f0f81360886d0a7f1cfb6b1027950e32a990536cfad1f8da24712f83f9cf7 [INFO] running `Command { std: "docker" "start" "-a" "e01f0f81360886d0a7f1cfb6b1027950e32a990536cfad1f8da24712f83f9cf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e01f0f81360886d0a7f1cfb6b1027950e32a990536cfad1f8da24712f83f9cf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e01f0f81360886d0a7f1cfb6b1027950e32a990536cfad1f8da24712f83f9cf7", kill_on_drop: false }` [INFO] [stdout] e01f0f81360886d0a7f1cfb6b1027950e32a990536cfad1f8da24712f83f9cf7 [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 -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] 24139f6177f49730b1d0ed049f06a136cafd5065379db93238e9f7c9d89b275f [INFO] running `Command { std: "docker" "start" "-a" "24139f6177f49730b1d0ed049f06a136cafd5065379db93238e9f7c9d89b275f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling backgammon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::read` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fs::read}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | if(board[game_move.1 as usize].0 == game_move.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if(board[game_move.1 as usize].0 == game_move.0){ [INFO] [stdout] 174 + if board[game_move.1 as usize].0 == game_move.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:255:10 [INFO] [stdout] | [INFO] [stdout] 255 | while(i < number_of_games){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - while(i < number_of_games){ [INFO] [stdout] 255 + while i < number_of_games { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:357:55 [INFO] [stdout] | [INFO] [stdout] 357 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - if(board[i].0 == 1){ [INFO] [stdout] 357 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:383:55 [INFO] [stdout] | [INFO] [stdout] 383 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 383 - if(board[i].0 == 1){ [INFO] [stdout] 383 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:386:64 [INFO] [stdout] | [INFO] [stdout] 386 | ... if (!(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 386 - if (!(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2)) { [INFO] [stdout] 386 + if !(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:412:51 [INFO] [stdout] | [INFO] [stdout] 412 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 412 - if(board[i].0 == 1){ [INFO] [stdout] 412 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:420:55 [INFO] [stdout] | [INFO] [stdout] 420 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 420 - if(board[i].0 == 1){ [INFO] [stdout] 420 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:445:55 [INFO] [stdout] | [INFO] [stdout] 445 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 445 - if(board[i].0 == 1){ [INFO] [stdout] 445 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:477:51 [INFO] [stdout] | [INFO] [stdout] 477 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 477 - if(board[i].0 == 1){ [INFO] [stdout] 477 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:484:55 [INFO] [stdout] | [INFO] [stdout] 484 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 484 - if(board[i].0 == 1){ [INFO] [stdout] 484 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:506:55 [INFO] [stdout] | [INFO] [stdout] 506 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 506 - if(board[i].0 == 1){ [INFO] [stdout] 506 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:535:51 [INFO] [stdout] | [INFO] [stdout] 535 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 535 - if(board[i].0 == 1){ [INFO] [stdout] 535 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:542:55 [INFO] [stdout] | [INFO] [stdout] 542 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 542 - if(board[i].0 == 1){ [INFO] [stdout] 542 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:564:55 [INFO] [stdout] | [INFO] [stdout] 564 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 564 - if(board[i].0 == 1){ [INFO] [stdout] 564 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:574:51 [INFO] [stdout] | [INFO] [stdout] 574 | ... if(possible_moves.len() > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 574 - if(possible_moves.len() > 0){ [INFO] [stdout] 574 + if possible_moves.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:641:47 [INFO] [stdout] | [INFO] [stdout] 641 | ... if(possible_moves[rand_num].1 + 1 == last_roll.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 641 - if(possible_moves[rand_num].1 + 1 == last_roll.0){ [INFO] [stdout] 641 + if possible_moves[rand_num].1 + 1 == last_roll.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:670:43 [INFO] [stdout] | [INFO] [stdout] 670 | ... if(rand_num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 670 - if(rand_num == 1){ [INFO] [stdout] 670 + if rand_num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:674:51 [INFO] [stdout] | [INFO] [stdout] 674 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 674 - if(board[i].0 == 2){ [INFO] [stdout] 674 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:681:55 [INFO] [stdout] | [INFO] [stdout] 681 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 681 - if(board[i].0 == 2){ [INFO] [stdout] 681 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:729:51 [INFO] [stdout] | [INFO] [stdout] 729 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 729 - if(board[i].0 == 2){ [INFO] [stdout] 729 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:736:55 [INFO] [stdout] | [INFO] [stdout] 736 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 736 - if(board[i].0 == 2){ [INFO] [stdout] 736 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:758:55 [INFO] [stdout] | [INFO] [stdout] 758 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 758 - if(board[i].0 == 2){ [INFO] [stdout] 758 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:788:51 [INFO] [stdout] | [INFO] [stdout] 788 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 788 - if(board[i].0 == 2){ [INFO] [stdout] 788 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:795:55 [INFO] [stdout] | [INFO] [stdout] 795 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 795 - if(board[i].0 == 2){ [INFO] [stdout] 795 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:817:55 [INFO] [stdout] | [INFO] [stdout] 817 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 817 - if(board[i].0 == 2){ [INFO] [stdout] 817 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:845:51 [INFO] [stdout] | [INFO] [stdout] 845 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 845 - if(board[i].0 == 1){ [INFO] [stdout] 845 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:852:55 [INFO] [stdout] | [INFO] [stdout] 852 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 852 - if(board[i].0 == 2){ [INFO] [stdout] 852 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:874:55 [INFO] [stdout] | [INFO] [stdout] 874 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 874 - if(board[i].0 == 2){ [INFO] [stdout] 874 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:936:47 [INFO] [stdout] | [INFO] [stdout] 936 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 936 - if(board[i].0 == 1){ [INFO] [stdout] 936 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:938:51 [INFO] [stdout] | [INFO] [stdout] 938 | ... if((i as i32) - last_roll.0 <= -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if((i as i32) - last_roll.0 <= -1){ [INFO] [stdout] 938 + if (i as i32) - last_roll.0 <= -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1006:51 [INFO] [stdout] | [INFO] [stdout] 1006 | ... if((i as i32) + last_roll.0 > 23){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1006 - if((i as i32) + last_roll.0 > 23){ [INFO] [stdout] 1006 + if (i as i32) + last_roll.0 > 23 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn display_board(board: &Vec<(i32, i32)>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_s... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_1` [INFO] [stdout] --> src/main.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn display_board(board: &Vec<(i32, i32)>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_s... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_2` [INFO] [stdout] --> src/main.rs:28:67 [INFO] [stdout] | [INFO] [stdout] 28 | ...>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_1_stones` [INFO] [stdout] --> src/main.rs:28:87 [INFO] [stdout] | [INFO] [stdout] 28 | ...nes_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_1_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_2_stones` [INFO] [stdout] --> src/main.rs:28:121 [INFO] [stdout] | [INFO] [stdout] 28 | ...s: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_2_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `number_of_steps` is assigned to, but never used [INFO] [stdout] --> src/main.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | let mut number_of_steps: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number_of_steps` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:305:45 [INFO] [stdout] | [INFO] [stdout] 305 | ... for i in 0..hit_stones_1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:613:25 [INFO] [stdout] | [INFO] [stdout] 613 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:635:45 [INFO] [stdout] | [INFO] [stdout] 635 | ... for i in 0..hit_stones_2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:915:25 [INFO] [stdout] | [INFO] [stdout] 915 | for i in 0..4{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:983:25 [INFO] [stdout] | [INFO] [stdout] 983 | for i in 0..4{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history_of_games` [INFO] [stdout] --> src/main.rs:248:35 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn play(number_of_games: i32, history_of_games: &mut Vec<( Vec<(i32, i32, i32)>, Vec<(i32, i32)>)>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history_of_games` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history_of_a_game` [INFO] [stdout] --> src/main.rs:1089:13 [INFO] [stdout] | [INFO] [stdout] 1089 | let mut history_of_a_game: Vec<(i32, i32, i32)> = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history_of_a_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:1121:13 [INFO] [stdout] | [INFO] [stdout] 1121 | let mut board: Vec<(i32, i32)> = vec![(2,2), (0,0), (0,0), (0,0), (0,0), (1,5), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_1` [INFO] [stdout] --> src/main.rs:1126:13 [INFO] [stdout] | [INFO] [stdout] 1126 | let mut hit_stones_1 : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_2` [INFO] [stdout] --> src/main.rs:1127:13 [INFO] [stdout] | [INFO] [stdout] 1127 | let mut hit_stones_2 : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_1_stones` [INFO] [stdout] --> src/main.rs:1128:13 [INFO] [stdout] | [INFO] [stdout] 1128 | let mut keep_count_of_1_stones: i32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_1_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_2_stones` [INFO] [stdout] --> src/main.rs:1129:13 [INFO] [stdout] | [INFO] [stdout] 1129 | let mut keep_count_of_2_stones: i32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_2_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | let mut history_of_a_game: Vec<(i32, i32, i32)> = vec![]; [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:1121:9 [INFO] [stdout] | [INFO] [stdout] 1121 | let mut board: Vec<(i32, i32)> = vec![(2,2), (0,0), (0,0), (0,0), (0,0), (1,5), [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:1126:9 [INFO] [stdout] | [INFO] [stdout] 1126 | let mut hit_stones_1 : i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | let mut hit_stones_2 : i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1128:9 [INFO] [stdout] | [INFO] [stdout] 1128 | let mut keep_count_of_1_stones: i32 = 15; [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:1129:9 [INFO] [stdout] | [INFO] [stdout] 1129 | let mut keep_count_of_2_stones: i32 = 15; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.72s [INFO] running `Command { std: "docker" "inspect" "24139f6177f49730b1d0ed049f06a136cafd5065379db93238e9f7c9d89b275f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24139f6177f49730b1d0ed049f06a136cafd5065379db93238e9f7c9d89b275f", kill_on_drop: false }` [INFO] [stdout] 24139f6177f49730b1d0ed049f06a136cafd5065379db93238e9f7c9d89b275f [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 -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] 33b1bc3c9cd6eb28628bcbb0a0a26be53a39af9b5c8d9eafd3c164cdeeda3149 [INFO] running `Command { std: "docker" "start" "-a" "33b1bc3c9cd6eb28628bcbb0a0a26be53a39af9b5c8d9eafd3c164cdeeda3149", kill_on_drop: false }` [INFO] [stderr] Compiling backgammon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::read` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fs::read}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | if(board[game_move.1 as usize].0 == game_move.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - if(board[game_move.1 as usize].0 == game_move.0){ [INFO] [stdout] 174 + if board[game_move.1 as usize].0 == game_move.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:255:10 [INFO] [stdout] | [INFO] [stdout] 255 | while(i < number_of_games){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - while(i < number_of_games){ [INFO] [stdout] 255 + while i < number_of_games { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:357:55 [INFO] [stdout] | [INFO] [stdout] 357 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - if(board[i].0 == 1){ [INFO] [stdout] 357 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:383:55 [INFO] [stdout] | [INFO] [stdout] 383 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 383 - if(board[i].0 == 1){ [INFO] [stdout] 383 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:386:64 [INFO] [stdout] | [INFO] [stdout] 386 | ... if (!(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 386 - if (!(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2)) { [INFO] [stdout] 386 + if !(board[((i as i32) - (last_roll.0 )) as usize].0 == 2 && board[((i as i32) - (last_roll.0 )) as usize].1 >= 2) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:412:51 [INFO] [stdout] | [INFO] [stdout] 412 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 412 - if(board[i].0 == 1){ [INFO] [stdout] 412 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:420:55 [INFO] [stdout] | [INFO] [stdout] 420 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 420 - if(board[i].0 == 1){ [INFO] [stdout] 420 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:445:55 [INFO] [stdout] | [INFO] [stdout] 445 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 445 - if(board[i].0 == 1){ [INFO] [stdout] 445 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:477:51 [INFO] [stdout] | [INFO] [stdout] 477 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 477 - if(board[i].0 == 1){ [INFO] [stdout] 477 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:484:55 [INFO] [stdout] | [INFO] [stdout] 484 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 484 - if(board[i].0 == 1){ [INFO] [stdout] 484 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:506:55 [INFO] [stdout] | [INFO] [stdout] 506 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 506 - if(board[i].0 == 1){ [INFO] [stdout] 506 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:535:51 [INFO] [stdout] | [INFO] [stdout] 535 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 535 - if(board[i].0 == 1){ [INFO] [stdout] 535 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:542:55 [INFO] [stdout] | [INFO] [stdout] 542 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 542 - if(board[i].0 == 1){ [INFO] [stdout] 542 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:564:55 [INFO] [stdout] | [INFO] [stdout] 564 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 564 - if(board[i].0 == 1){ [INFO] [stdout] 564 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:574:51 [INFO] [stdout] | [INFO] [stdout] 574 | ... if(possible_moves.len() > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 574 - if(possible_moves.len() > 0){ [INFO] [stdout] 574 + if possible_moves.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:641:47 [INFO] [stdout] | [INFO] [stdout] 641 | ... if(possible_moves[rand_num].1 + 1 == last_roll.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 641 - if(possible_moves[rand_num].1 + 1 == last_roll.0){ [INFO] [stdout] 641 + if possible_moves[rand_num].1 + 1 == last_roll.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:670:43 [INFO] [stdout] | [INFO] [stdout] 670 | ... if(rand_num == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 670 - if(rand_num == 1){ [INFO] [stdout] 670 + if rand_num == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:674:51 [INFO] [stdout] | [INFO] [stdout] 674 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 674 - if(board[i].0 == 2){ [INFO] [stdout] 674 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:681:55 [INFO] [stdout] | [INFO] [stdout] 681 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 681 - if(board[i].0 == 2){ [INFO] [stdout] 681 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:729:51 [INFO] [stdout] | [INFO] [stdout] 729 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 729 - if(board[i].0 == 2){ [INFO] [stdout] 729 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:736:55 [INFO] [stdout] | [INFO] [stdout] 736 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 736 - if(board[i].0 == 2){ [INFO] [stdout] 736 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:758:55 [INFO] [stdout] | [INFO] [stdout] 758 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 758 - if(board[i].0 == 2){ [INFO] [stdout] 758 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:788:51 [INFO] [stdout] | [INFO] [stdout] 788 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 788 - if(board[i].0 == 2){ [INFO] [stdout] 788 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:795:55 [INFO] [stdout] | [INFO] [stdout] 795 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 795 - if(board[i].0 == 2){ [INFO] [stdout] 795 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:817:55 [INFO] [stdout] | [INFO] [stdout] 817 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 817 - if(board[i].0 == 2){ [INFO] [stdout] 817 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:845:51 [INFO] [stdout] | [INFO] [stdout] 845 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 845 - if(board[i].0 == 1){ [INFO] [stdout] 845 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:852:55 [INFO] [stdout] | [INFO] [stdout] 852 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 852 - if(board[i].0 == 2){ [INFO] [stdout] 852 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:874:55 [INFO] [stdout] | [INFO] [stdout] 874 | ... if(board[i].0 == 2){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 874 - if(board[i].0 == 2){ [INFO] [stdout] 874 + if board[i].0 == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:936:47 [INFO] [stdout] | [INFO] [stdout] 936 | ... if(board[i].0 == 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 936 - if(board[i].0 == 1){ [INFO] [stdout] 936 + if board[i].0 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:938:51 [INFO] [stdout] | [INFO] [stdout] 938 | ... if((i as i32) - last_roll.0 <= -1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if((i as i32) - last_roll.0 <= -1){ [INFO] [stdout] 938 + if (i as i32) - last_roll.0 <= -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1006:51 [INFO] [stdout] | [INFO] [stdout] 1006 | ... if((i as i32) + last_roll.0 > 23){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1006 - if((i as i32) + last_roll.0 > 23){ [INFO] [stdout] 1006 + if (i as i32) + last_roll.0 > 23 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn display_board(board: &Vec<(i32, i32)>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_s... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_1` [INFO] [stdout] --> src/main.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn display_board(board: &Vec<(i32, i32)>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_s... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_2` [INFO] [stdout] --> src/main.rs:28:67 [INFO] [stdout] | [INFO] [stdout] 28 | ...>, hit_stones_1: &i32, hit_stones_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_1_stones` [INFO] [stdout] --> src/main.rs:28:87 [INFO] [stdout] | [INFO] [stdout] 28 | ...nes_2: &i32, keep_count_of_1_stones: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_1_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_2_stones` [INFO] [stdout] --> src/main.rs:28:121 [INFO] [stdout] | [INFO] [stdout] 28 | ...s: &mut i32, keep_count_of_2_stones: &mut i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_2_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `number_of_steps` is assigned to, but never used [INFO] [stdout] --> src/main.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | let mut number_of_steps: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number_of_steps` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:305:45 [INFO] [stdout] | [INFO] [stdout] 305 | ... for i in 0..hit_stones_1{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:613:25 [INFO] [stdout] | [INFO] [stdout] 613 | for i in 0..2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:635:45 [INFO] [stdout] | [INFO] [stdout] 635 | ... for i in 0..hit_stones_2{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:915:25 [INFO] [stdout] | [INFO] [stdout] 915 | for i in 0..4{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:983:25 [INFO] [stdout] | [INFO] [stdout] 983 | for i in 0..4{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history_of_games` [INFO] [stdout] --> src/main.rs:248:35 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn play(number_of_games: i32, history_of_games: &mut Vec<( Vec<(i32, i32, i32)>, Vec<(i32, i32)>)>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history_of_games` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history_of_a_game` [INFO] [stdout] --> src/main.rs:1089:13 [INFO] [stdout] | [INFO] [stdout] 1089 | let mut history_of_a_game: Vec<(i32, i32, i32)> = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history_of_a_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:1121:13 [INFO] [stdout] | [INFO] [stdout] 1121 | let mut board: Vec<(i32, i32)> = vec![(2,2), (0,0), (0,0), (0,0), (0,0), (1,5), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_1` [INFO] [stdout] --> src/main.rs:1126:13 [INFO] [stdout] | [INFO] [stdout] 1126 | let mut hit_stones_1 : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_stones_2` [INFO] [stdout] --> src/main.rs:1127:13 [INFO] [stdout] | [INFO] [stdout] 1127 | let mut hit_stones_2 : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_stones_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_1_stones` [INFO] [stdout] --> src/main.rs:1128:13 [INFO] [stdout] | [INFO] [stdout] 1128 | let mut keep_count_of_1_stones: i32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_1_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keep_count_of_2_stones` [INFO] [stdout] --> src/main.rs:1129:13 [INFO] [stdout] | [INFO] [stdout] 1129 | let mut keep_count_of_2_stones: i32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keep_count_of_2_stones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | let mut history_of_a_game: Vec<(i32, i32, i32)> = vec![]; [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:1121:9 [INFO] [stdout] | [INFO] [stdout] 1121 | let mut board: Vec<(i32, i32)> = vec![(2,2), (0,0), (0,0), (0,0), (0,0), (1,5), [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:1126:9 [INFO] [stdout] | [INFO] [stdout] 1126 | let mut hit_stones_1 : i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | let mut hit_stones_2 : i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1128:9 [INFO] [stdout] | [INFO] [stdout] 1128 | let mut keep_count_of_1_stones: i32 = 15; [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:1129:9 [INFO] [stdout] | [INFO] [stdout] 1129 | let mut keep_count_of_2_stones: i32 = 15; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "33b1bc3c9cd6eb28628bcbb0a0a26be53a39af9b5c8d9eafd3c164cdeeda3149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33b1bc3c9cd6eb28628bcbb0a0a26be53a39af9b5c8d9eafd3c164cdeeda3149", kill_on_drop: false }` [INFO] [stdout] 33b1bc3c9cd6eb28628bcbb0a0a26be53a39af9b5c8d9eafd3c164cdeeda3149