[INFO] cloning repository https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsermet-ankasoft%2FRust-Tic-Tac-Toe-Game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsermet-ankasoft%2FRust-Tic-Tac-Toe-Game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7f3fcb3ee88e5ad231829e3b99bb8b2ab0c458e [INFO] checking csermet-ankasoft/Rust-Tic-Tac-Toe-Game against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsermet-ankasoft%2FRust-Tic-Tac-Toe-Game" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game [INFO] finished tweaking git repo https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game [INFO] tweaked toml for git repo https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/csermet-ankasoft/Rust-Tic-Tac-Toe-Game 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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7015aa6f9e23a69505c4da9618214d3f80a23e838df1a31b651fc3954c5779f2 [INFO] running `Command { std: "docker" "start" "-a" "7015aa6f9e23a69505c4da9618214d3f80a23e838df1a31b651fc3954c5779f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7015aa6f9e23a69505c4da9618214d3f80a23e838df1a31b651fc3954c5779f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7015aa6f9e23a69505c4da9618214d3f80a23e838df1a31b651fc3954c5779f2", kill_on_drop: false }` [INFO] [stdout] 7015aa6f9e23a69505c4da9618214d3f80a23e838df1a31b651fc3954c5779f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b5a1ca2980dc41258c6da5294087c348bdd0e152ab51f3e7e90d74131ab41dc [INFO] running `Command { std: "docker" "start" "-a" "1b5a1ca2980dc41258c6da5294087c348bdd0e152ab51f3e7e90d74131ab41dc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking which v4.2.5 [INFO] [stderr] Checking nix v0.24.2 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling terminfo v0.7.3 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking clearscreen v1.0.10 [INFO] [stderr] Checking LeetcodeTests v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `game_move_result` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum game_move_result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GameMoveResult` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `game_move_result` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum game_move_result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GameMoveResult` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wrong_input` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Wrong_input, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `WrongInput` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mismatched_area` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | Mismatched_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MismatchedArea` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wrong_input` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Wrong_input, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `WrongInput` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/tic_tac_toe.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(n) => (n), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - Ok(n) => (n), [INFO] [stdout] 84 + Ok(n) => n, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mismatched_area` should have an upper camel case name [INFO] [stdout] --> src/tic_tac_toe.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | Mismatched_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MismatchedArea` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/tic_tac_toe.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 85 | Err(..) => (-1) , [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - Err(..) => (-1) , [INFO] [stdout] 85 + Err(..) => -1 , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/tic_tac_toe.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(n) => (n), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - Ok(n) => (n), [INFO] [stdout] 84 + Ok(n) => n, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/tic_tac_toe.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 85 | Err(..) => (-1) , [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - Err(..) => (-1) , [INFO] [stdout] 85 + Err(..) => -1 , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_board_shapes` [INFO] [stdout] --> src/tic_tac_toe.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn computer_turn(game_board_shapes: &mut Vec<&str>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_board_shapes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_board_shapes` [INFO] [stdout] --> src/tic_tac_toe.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn computer_turn(game_board_shapes: &mut Vec<&str>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_board_shapes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `error` is never read [INFO] [stdout] --> src/main.rs:32:47 [INFO] [stdout] | [INFO] [stdout] 32 | game_move_result::Wrong_input => {error = String::from("Please Write Number"); continue;}, [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: value assigned to `error` is never read [INFO] [stdout] --> src/main.rs:32:47 [INFO] [stdout] | [INFO] [stdout] 32 | game_move_result::Wrong_input => {error = String::from("Please Write Number"); continue;}, [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: value assigned to `error` is never read [INFO] [stdout] --> src/main.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | game_move_result::Wrong_input => {error = String::from("Please Write Number"); continue;}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `error` is never read [INFO] [stdout] --> src/main.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | game_move_result::Wrong_input => {error = String::from("Please Write Number"); continue;}, [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:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut player_shape = "X"; [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:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut player_shape = "X"; [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: function `game_loop_2player` is never used [INFO] [stdout] --> src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn game_loop_2player(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `LeetcodeTests` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `leetcode_tests` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_loop_playerVScomputer` should have a snake case name [INFO] [stdout] --> src/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn game_loop_playerVScomputer(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `game_loop_player_vscomputer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_loop_2player` is never used [INFO] [stdout] --> src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn game_loop_2player(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `LeetcodeTests` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `leetcode_tests` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_loop_playerVScomputer` should have a snake case name [INFO] [stdout] --> src/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn game_loop_playerVScomputer(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `game_loop_player_vscomputer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tic_tac_toe.rs:20:60 [INFO] [stdout] | [INFO] [stdout] 20 | line[i] = line[i].clone() + "|" + shapes[count].clone() + "| "; [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tic_tac_toe.rs:20:60 [INFO] [stdout] | [INFO] [stdout] 20 | line[i] = line[i].clone() + "|" + shapes[count].clone() + "| "; [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `LeetcodeTests` (bin "LeetcodeTests") due to 2 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `LeetcodeTests` (bin "LeetcodeTests" test) due to 2 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1b5a1ca2980dc41258c6da5294087c348bdd0e152ab51f3e7e90d74131ab41dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b5a1ca2980dc41258c6da5294087c348bdd0e152ab51f3e7e90d74131ab41dc", kill_on_drop: false }` [INFO] [stdout] 1b5a1ca2980dc41258c6da5294087c348bdd0e152ab51f3e7e90d74131ab41dc