[INFO] cloning repository https://github.com/cgoffredo77/RustFInal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cgoffredo77/RustFInal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcgoffredo77%2FRustFInal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcgoffredo77%2FRustFInal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b72df39a1aa44a51f1805fa5a99777eb681035f6 [INFO] checking cgoffredo77/RustFInal/b72df39a1aa44a51f1805fa5a99777eb681035f6 against master#ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcgoffredo77%2FRustFInal" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cgoffredo77/RustFInal [INFO] finished tweaking git repo https://github.com/cgoffredo77/RustFInal [INFO] tweaked toml for git repo https://github.com/cgoffredo77/RustFInal written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cgoffredo77/RustFInal on toolchain ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cgoffredo77/RustFInal 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" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52ba9d243bee13a69eff07f70ad3180fd4f466cefcd5737356e02372ab91e1c1 [INFO] running `Command { std: "docker" "start" "-a" "52ba9d243bee13a69eff07f70ad3180fd4f466cefcd5737356e02372ab91e1c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52ba9d243bee13a69eff07f70ad3180fd4f466cefcd5737356e02372ab91e1c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52ba9d243bee13a69eff07f70ad3180fd4f466cefcd5737356e02372ab91e1c1", kill_on_drop: false }` [INFO] [stdout] 52ba9d243bee13a69eff07f70ad3180fd4f466cefcd5737356e02372ab91e1c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f1de1c7c87172c2f498281f4f2e32cdb17059eea9daf02b3691b848331a1912 [INFO] running `Command { std: "docker" "start" "-a" "0f1de1c7c87172c2f498281f4f2e32cdb17059eea9daf02b3691b848331a1912", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking tic-tac-toe v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/game.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ///Here we construct and return a new instance of Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 111 | / Self { [INFO] [stdout] ... | [INFO] [stdout] 123 | | winner: None, [INFO] [stdout] 124 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | /// Prints the current piece that is taking its turn. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | / /// Prompts the user for a valid move and returns the position on the board that the move [INFO] [stdout] 65 | | /// refers to. [INFO] [stdout] | |______________________^ [INFO] [stdout] 66 | let (row, col) = prompt_move(); [INFO] [stdout] | ------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 79 | | // occur. If it does, that means that we (the programmer) did something wrong, not the [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] ... [INFO] [stdout] 84 | / /// This case is unreachable because it should not be possible for the game to already be [INFO] [stdout] 85 | | /// over when this code is executed. This indicates that there is a bug in the program. [INFO] [stdout] | |___________________________________________________________________________________________________^ [INFO] [stdout] 86 | / Err(MoveError::GameAlreadyOver) => unreachable!("Game was already over when it should not have been"), [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | / /// This case is unreachable because `prompt_move()` should never return an invalid [INFO] [stdout] 92 | | /// position. This indicates that there is a bug in the program. [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] 93 | / Err(MoveError::InvalidPosition {row, col}) => { [INFO] [stdout] 94 | | unreachable!("Should not be able to enter an invalid move, but still got ({}, {})", row, col) [INFO] [stdout] 95 | | }, [INFO] [stdout] | |_____________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | /// This is another error this is displayed when trying to place a piece in a non-empty spot [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | / Err(MoveError::TileNotEmpty {other_piece, row, col}) => eprintln!( [INFO] [stdout] 107 | | // Each {} will be replaced with one of the arguments following this string [INFO] [stdout] 108 | | "The tile at position {}{} already has piece {} in it!", [INFO] [stdout] ... | [INFO] [stdout] 221 | | ///Function to get the move from user (row and column) [INFO] [stdout] 222 | | ///If not valid move, returns error [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | ///Prints the board [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | print_tiles(game.tiles()); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | ///Prints if X or O won the game, or a tie [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 139 | / match game.winner().expect("finished game should have winner") { [INFO] [stdout] 140 | | Winner::X => println!("x wins!"), [INFO] [stdout] 141 | | Winner::O => println!("o wins!"), [INFO] [stdout] 142 | | Winner::Tie => println!("Tie!"), [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | ///Use loop to prompt user until we get what we want from them. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 159 | / loop { [INFO] [stdout] ... | [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | ///Ask user to make a move [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | ///Take input using read_line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 177 | let line = read_line(); [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | ///Used to print error if needed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 200 | / Err(InvalidMove(invalid_str)) => eprintln!( [INFO] [stdout] ... | [INFO] [stdout] 221 | | ///Function to get the move from user (row and column) [INFO] [stdout] 222 | | ///If not valid move, returns error [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:235:5 [INFO] [stdout] | [INFO] [stdout] 235 | ///First gets the row number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 236 | / let row = match &input[0..1] { [INFO] [stdout] 237 | | "1" => 0, [INFO] [stdout] 238 | | "2" => 1, [INFO] [stdout] 239 | | "3" => 2, [INFO] [stdout] 240 | | _ => return Err(InvalidMove(input.to_string())), [INFO] [stdout] 241 | | }; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | ///Returns error from invalid input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 255 | invalid => return Err(InvalidMove(invalid.to_string())), [INFO] [stdout] | ------------------------------------------------------- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 260 | ///Returns the value of tuple (row,col) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 261 | Ok((row, col)) [INFO] [stdout] | -------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | ///Creates new string [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 279 | let mut input = String::new(); [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | ///We read the input, expect a result, if not it fails and returns an error [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 292 | io::stdin().read_line(&mut input).expect("Failed to read input"); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:309:5 [INFO] [stdout] | [INFO] [stdout] 309 | ///read_line leaves the trailing newline on the string, so we remove it using truncate [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 310 | let len_without_newline = input.trim_right().len(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 331 | ///Print the space before the column letters [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | ///Loop to print the row of column letters [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 339 | / for j in 0..tiles[0].len() as u8 { [INFO] [stdout] ... | [INFO] [stdout] 344 | | print!(" {}", (b'A' + j) as char); [INFO] [stdout] 345 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | ///Loop to print each row and row number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 354 | / for (i, row) in tiles.iter().enumerate() { [INFO] [stdout] 355 | | // We print the row number with a space in front of it [INFO] [stdout] 356 | | print!(" {}", i + 1); [INFO] [stdout] ... | [INFO] [stdout] 377 | | println!(); [INFO] [stdout] 378 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/game.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | ///Here we construct and return a new instance of Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 111 | / Self { [INFO] [stdout] ... | [INFO] [stdout] 123 | | winner: None, [INFO] [stdout] 124 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | /// Prints the current piece that is taking its turn. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | / /// Prompts the user for a valid move and returns the position on the board that the move [INFO] [stdout] 65 | | /// refers to. [INFO] [stdout] | |______________________^ [INFO] [stdout] 66 | let (row, col) = prompt_move(); [INFO] [stdout] | ------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 79 | | // occur. If it does, that means that we (the programmer) did something wrong, not the [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] ... [INFO] [stdout] 84 | / /// This case is unreachable because it should not be possible for the game to already be [INFO] [stdout] 85 | | /// over when this code is executed. This indicates that there is a bug in the program. [INFO] [stdout] | |___________________________________________________________________________________________________^ [INFO] [stdout] 86 | / Err(MoveError::GameAlreadyOver) => unreachable!("Game was already over when it should not have been"), [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | / /// This case is unreachable because `prompt_move()` should never return an invalid [INFO] [stdout] 92 | | /// position. This indicates that there is a bug in the program. [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] 93 | / Err(MoveError::InvalidPosition {row, col}) => { [INFO] [stdout] 94 | | unreachable!("Should not be able to enter an invalid move, but still got ({}, {})", row, col) [INFO] [stdout] 95 | | }, [INFO] [stdout] | |_____________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | /// This is another error this is displayed when trying to place a piece in a non-empty spot [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | / Err(MoveError::TileNotEmpty {other_piece, row, col}) => eprintln!( [INFO] [stdout] 107 | | // Each {} will be replaced with one of the arguments following this string [INFO] [stdout] 108 | | "The tile at position {}{} already has piece {} in it!", [INFO] [stdout] ... | [INFO] [stdout] 221 | | ///Function to get the move from user (row and column) [INFO] [stdout] 222 | | ///If not valid move, returns error [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | ///Prints the board [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | print_tiles(game.tiles()); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | ///Prints if X or O won the game, or a tie [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 139 | / match game.winner().expect("finished game should have winner") { [INFO] [stdout] 140 | | Winner::X => println!("x wins!"), [INFO] [stdout] 141 | | Winner::O => println!("o wins!"), [INFO] [stdout] 142 | | Winner::Tie => println!("Tie!"), [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | ///Use loop to prompt user until we get what we want from them. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 159 | / loop { [INFO] [stdout] ... | [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | ///Ask user to make a move [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | ///Take input using read_line [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 177 | let line = read_line(); [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | ///Used to print error if needed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 200 | / Err(InvalidMove(invalid_str)) => eprintln!( [INFO] [stdout] ... | [INFO] [stdout] 221 | | ///Function to get the move from user (row and column) [INFO] [stdout] 222 | | ///If not valid move, returns error [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:235:5 [INFO] [stdout] | [INFO] [stdout] 235 | ///First gets the row number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 236 | / let row = match &input[0..1] { [INFO] [stdout] 237 | | "1" => 0, [INFO] [stdout] 238 | | "2" => 1, [INFO] [stdout] 239 | | "3" => 2, [INFO] [stdout] 240 | | _ => return Err(InvalidMove(input.to_string())), [INFO] [stdout] 241 | | }; [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | ///Returns error from invalid input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 255 | invalid => return Err(InvalidMove(invalid.to_string())), [INFO] [stdout] | ------------------------------------------------------- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 260 | ///Returns the value of tuple (row,col) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 261 | Ok((row, col)) [INFO] [stdout] | -------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | ///Creates new string [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 279 | let mut input = String::new(); [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | ///We read the input, expect a result, if not it fails and returns an error [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 292 | io::stdin().read_line(&mut input).expect("Failed to read input"); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:309:5 [INFO] [stdout] | [INFO] [stdout] 309 | ///read_line leaves the trailing newline on the string, so we remove it using truncate [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 310 | let len_without_newline = input.trim_right().len(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 331 | ///Print the space before the column letters [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | ///Loop to print the row of column letters [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 339 | / for j in 0..tiles[0].len() as u8 { [INFO] [stdout] ... | [INFO] [stdout] 344 | | print!(" {}", (b'A' + j) as char); [INFO] [stdout] 345 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | ///Loop to print each row and row number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 354 | / for (i, row) in tiles.iter().enumerate() { [INFO] [stdout] 355 | | // We print the row number with a space in front of it [INFO] [stdout] 356 | | print!(" {}", i + 1); [INFO] [stdout] ... | [INFO] [stdout] 377 | | println!(); [INFO] [stdout] 378 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/main.rs:310:37 [INFO] [stdout] | [INFO] [stdout] 310 | let len_without_newline = input.trim_right().len(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 310 - let len_without_newline = input.trim_right().len(); [INFO] [stdout] 310 + let len_without_newline = input.trim_end().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/main.rs:310:37 [INFO] [stdout] | [INFO] [stdout] 310 | let len_without_newline = input.trim_right().len(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 310 - let len_without_newline = input.trim_right().len(); [INFO] [stdout] 310 + let len_without_newline = input.trim_end().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "0f1de1c7c87172c2f498281f4f2e32cdb17059eea9daf02b3691b848331a1912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f1de1c7c87172c2f498281f4f2e32cdb17059eea9daf02b3691b848331a1912", kill_on_drop: false }` [INFO] [stdout] 0f1de1c7c87172c2f498281f4f2e32cdb17059eea9daf02b3691b848331a1912