[INFO] cloning repository https://github.com/ianjvb/rusttictactoe [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ianjvb/rusttictactoe" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianjvb%2Frusttictactoe", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianjvb%2Frusttictactoe'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 089364690a601ba242a5d98eaefbc656db206804 [INFO] checking ianjvb/rusttictactoe against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianjvb%2Frusttictactoe" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ianjvb/rusttictactoe on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ianjvb/rusttictactoe [INFO] finished tweaking git repo https://github.com/ianjvb/rusttictactoe [INFO] tweaked toml for git repo https://github.com/ianjvb/rusttictactoe written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/ianjvb/rusttictactoe already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9371ff1540a21c25f6e4ab481501888f01e6197259ea86b1aff4f0c0d7177ea7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9371ff1540a21c25f6e4ab481501888f01e6197259ea86b1aff4f0c0d7177ea7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9371ff1540a21c25f6e4ab481501888f01e6197259ea86b1aff4f0c0d7177ea7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9371ff1540a21c25f6e4ab481501888f01e6197259ea86b1aff4f0c0d7177ea7", kill_on_drop: false }` [INFO] [stdout] 9371ff1540a21c25f6e4ab481501888f01e6197259ea86b1aff4f0c0d7177ea7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7681f596d6dc5aa65c46a508167eb1ae68f8aafd9aedd62876dae1ac6b2baf4a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7681f596d6dc5aa65c46a508167eb1ae68f8aafd9aedd62876dae1ac6b2baf4a", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking guessing_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | while(!gameOver) [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | if(userWon) [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | if(computerWon) [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | if(computerWon) [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | while(!done) [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | if(userMoveStr.trim() == "Y") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | else if(userMoveStr.trim() == "N") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | if(v[(userMove - 1) as usize] == computerChar || v[(userMove - 1) as usize] == userChar) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | while(!madeAMove) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | if(v[(rand) as usize] != computerChar && v[(rand) as usize] != userChar) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | return ((v[0] == v[1] && v[1] == v[2]) || [INFO] [stdout] | ____________^ [INFO] [stdout] 128 | | (v[0] == v[3] && v[3] == v[6]) || [INFO] [stdout] 129 | | (v[0] == v[4] && v[4] == v[8]) || [INFO] [stdout] 130 | | (v[1] == v[4] && v[4] == v[7]) || [INFO] [stdout] ... | [INFO] [stdout] 133 | | (v[2] == v[5] && v[5] == v[8]) || [INFO] [stdout] 134 | | (v[6] == v[7] && v[7] == v[8])) [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 | return (v[0] == v[1] && v[1] == v[2]) || [INFO] [stdout] 128 | (v[0] == v[3] && v[3] == v[6]) || [INFO] [stdout] 129 | (v[0] == v[4] && v[4] == v[8]) || [INFO] [stdout] 130 | (v[1] == v[4] && v[4] == v[7]) || [INFO] [stdout] 131 | (v[2] == v[4] && v[4] == v[6]) || [INFO] [stdout] 132 | (v[3] == v[4] && v[4] == v[5]) || [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | while(!gameOver) [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | if(userWon) [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | if(computerWon) [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | if(computerWon) [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | while(!done) [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | if(userMoveStr.trim() == "Y") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | else if(userMoveStr.trim() == "N") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | if(v[(userMove - 1) as usize] == computerChar || v[(userMove - 1) as usize] == userChar) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | while(!madeAMove) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | if(v[(rand) as usize] != computerChar && v[(rand) as usize] != userChar) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | return ((v[0] == v[1] && v[1] == v[2]) || [INFO] [stdout] | ____________^ [INFO] [stdout] 128 | | (v[0] == v[3] && v[3] == v[6]) || [INFO] [stdout] 129 | | (v[0] == v[4] && v[4] == v[8]) || [INFO] [stdout] 130 | | (v[1] == v[4] && v[4] == v[7]) || [INFO] [stdout] ... | [INFO] [stdout] 133 | | (v[2] == v[5] && v[5] == v[8]) || [INFO] [stdout] 134 | | (v[6] == v[7] && v[7] == v[8])) [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 | return (v[0] == v[1] && v[1] == v[2]) || [INFO] [stdout] 128 | (v[0] == v[3] && v[3] == v[6]) || [INFO] [stdout] 129 | (v[0] == v[4] && v[4] == v[8]) || [INFO] [stdout] 130 | (v[1] == v[4] && v[4] == v[7]) || [INFO] [stdout] 131 | (v[2] == v[4] && v[4] == v[6]) || [INFO] [stdout] 132 | (v[3] == v[4] && v[4] == v[5]) || [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userWon` is never read [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut userWon = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `gameOver` is never read [INFO] [stdout] --> src/main.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | gameOver = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `gameOver` is never read [INFO] [stdout] --> src/main.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | gameOver = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `done` is never read [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | done = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:114:11 [INFO] [stdout] | [INFO] [stdout] 114 | let mut rand = range.ind_sample(&mut rng); [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 `userWon` is never read [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut userWon = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `gameOver` is never read [INFO] [stdout] --> src/main.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | gameOver = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `gameOver` is never read [INFO] [stdout] --> src/main.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | gameOver = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `done` is never read [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | done = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `computerChar` should have an upper case name [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | static computerChar: char = 'O'; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COMPUTER_CHAR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `userChar` should have an upper case name [INFO] [stdout] --> src/main.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | static userChar: char = 'X'; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `USER_CHAR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `playGame` should have a snake case name [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn playGame() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `play_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut gameOver = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `computerWon` should have a snake case name [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut computerWon = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `computer_won` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userWon` should have a snake case name [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut userWon = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `user_won` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMoveStr` should have a snake case name [INFO] [stdout] --> src/main.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | let mut userMoveStr = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_move_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resetBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn resetBoard() -> [char; 9] [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reset_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getUserInput` should have a snake case name [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn getUserInput(v:&mut [char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMoveStr` should have a snake case name [INFO] [stdout] --> src/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut userMoveStr = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_move_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMove` should have a snake case name [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let userMove: i32 = userMoveStr.trim().parse() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printGameBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn printGameBoard(v: &[char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_game_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeComputerMove` should have a snake case name [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn makeComputerMove(v: &mut [char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `make_computer_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `madeAMove` should have a snake case name [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut madeAMove = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `made_amove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checkForWinner` should have a snake case name [INFO] [stdout] --> src/main.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn checkForWinner(v: &[char; 9]) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_for_winner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:114:11 [INFO] [stdout] | [INFO] [stdout] 114 | let mut rand = range.ind_sample(&mut rng); [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: static variable `computerChar` should have an upper case name [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | static computerChar: char = 'O'; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `COMPUTER_CHAR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `userChar` should have an upper case name [INFO] [stdout] --> src/main.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | static userChar: char = 'X'; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `USER_CHAR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `playGame` should have a snake case name [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn playGame() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `play_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut gameOver = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `computerWon` should have a snake case name [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut computerWon = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `computer_won` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userWon` should have a snake case name [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut userWon = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `user_won` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMoveStr` should have a snake case name [INFO] [stdout] --> src/main.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | let mut userMoveStr = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_move_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resetBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn resetBoard() -> [char; 9] [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reset_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getUserInput` should have a snake case name [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn getUserInput(v:&mut [char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMoveStr` should have a snake case name [INFO] [stdout] --> src/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut userMoveStr = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `user_move_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userMove` should have a snake case name [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let userMove: i32 = userMoveStr.trim().parse() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printGameBoard` should have a snake case name [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn printGameBoard(v: &[char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_game_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeComputerMove` should have a snake case name [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn makeComputerMove(v: &mut [char; 9]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `make_computer_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `madeAMove` should have a snake case name [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut madeAMove = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `made_amove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checkForWinner` should have a snake case name [INFO] [stdout] --> src/main.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn checkForWinner(v: &[char; 9]) -> bool [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_for_winner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "7681f596d6dc5aa65c46a508167eb1ae68f8aafd9aedd62876dae1ac6b2baf4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7681f596d6dc5aa65c46a508167eb1ae68f8aafd9aedd62876dae1ac6b2baf4a", kill_on_drop: false }` [INFO] [stdout] 7681f596d6dc5aa65c46a508167eb1ae68f8aafd9aedd62876dae1ac6b2baf4a