[INFO] cloning repository https://github.com/hailalexandre/FinalProject [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hailalexandre/FinalProject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhailalexandre%2FFinalProject", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhailalexandre%2FFinalProject'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ab93ba11e40a86833d0925cf7f5f22ba28d53a2 [INFO] checking hailalexandre/FinalProject against master#d93f678fa55842cccd2f091deccd93e9494b3764 for pr-138844 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhailalexandre%2FFinalProject" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hailalexandre/FinalProject on toolchain d93f678fa55842cccd2f091deccd93e9494b3764 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hailalexandre/FinalProject [INFO] finished tweaking git repo https://github.com/hailalexandre/FinalProject [INFO] tweaked toml for git repo https://github.com/hailalexandre/FinalProject written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hailalexandre/FinalProject 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" "+d93f678fa55842cccd2f091deccd93e9494b3764" "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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.3.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ff144622bffd9f687801bee1949bcc72a7d5b5c5ac2422aac405c61242cd188 [INFO] running `Command { std: "docker" "start" "-a" "5ff144622bffd9f687801bee1949bcc72a7d5b5c5ac2422aac405c61242cd188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ff144622bffd9f687801bee1949bcc72a7d5b5c5ac2422aac405c61242cd188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ff144622bffd9f687801bee1949bcc72a7d5b5c5ac2422aac405c61242cd188", kill_on_drop: false }` [INFO] [stdout] 5ff144622bffd9f687801bee1949bcc72a7d5b5c5ac2422aac405c61242cd188 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a270c1e90328d2cf67cf153562563fad079ae5da797eb4be135893363acf0a3f [INFO] running `Command { std: "docker" "start" "-a" "a270c1e90328d2cf67cf153562563fad079ae5da797eb4be135893363acf0a3f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.34 [INFO] [stderr] Checking rand v0.3.19 [INFO] [stderr] Checking hangman-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:97:59 [INFO] [stdout] | [INFO] [stdout] 97 | return String::from(available_words[random_index]); /// Returns The Selected Word From The File [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | return letters; /// Returns The Letter That Is Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | println!("{}", display_string); /// Updated String From Word Being Guesses [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | display_progress(&letters); /// Shows Word Updated With The Letters Correctly Guessed [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | /// Prompts User To Enter New Character To Guess [INFO] [stdout] | |_________-----------------------------------------------^ [INFO] [stdout] | | [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] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | println!("Welcome to Hangman!"); /// Intro Into The Game [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 37 | | [INFO] [stdout] 38 | | /// The Loop Repeats With Each Letter The User Inputs [INFO] [stdout] 39 | | /// The Turns Only Decrease If The Character Entered By The User Is Incorrect [INFO] [stdout] 40 | | /// The Loop Ends When There Are No Turns Left [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] 41 | / loop { [INFO] [stdout] 42 | | println!("\nYou have {} turns left.", turns_left); [INFO] [stdout] 43 | | display_progress(&letters); /// Shows Word Updated With The Letters Correctly Guessed [INFO] [stdout] ... | [INFO] [stdout] 80 | | } [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:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | /// Exit If User Enters An Asterisk ('*') - Allows User To Stop The Game Prematurely [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | / if user_char == '*' { [INFO] [stdout] 51 | | break; [INFO] [stdout] 52 | | } [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:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | /// Updates The 'Revealed' State Of Each Letter. If The User Has Guessed A Correct Letter, at_least_one_revealed Is Changed To True [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | let mut at_least_one_revealed = false; [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:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | /// The User Will Lose A Turn If You Make An Incorrect Guess [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | / if !at_least_one_revealed { [INFO] [stdout] 65 | | turns_left -= 1; [INFO] [stdout] 66 | | } [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:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | /// Check Game Progress [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | / match check_progress(turns_left, &letters) { [INFO] [stdout] 70 | | GameProgress::InProgress => continue, [INFO] [stdout] 71 | | GameProgress::Won => { [INFO] [stdout] 72 | | println!("\nCongrats! You won! ☺"); /// Prints With Smiley Face If Entire Word Is Correctly Guessed [INFO] [stdout] ... | [INFO] [stdout] 79 | | } [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:72:54 [INFO] [stdout] | [INFO] [stdout] 72 | println!("\nCongrats! You won! ☺"); /// Prints With Smiley Face If Entire Word Is Correctly Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | break; [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:76:46 [INFO] [stdout] | [INFO] [stdout] 76 | println!("\nYou lost! ☹"); /// Prints With Sad Face If Word Isn't Guessed Before The User Runs Out Of Turns [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | break; [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:87:78 [INFO] [stdout] | [INFO] [stdout] 87 | let mut file = File::open("words.txt").expect("Could not open file!"); /// Prints If File Cannot Be Opened [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | [INFO] [stdout] 89 | let mut file_contents = 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:90:99 [INFO] [stdout] | [INFO] [stdout] 90 | file.read_to_string(&mut file_contents).expect("An error occured while reading the file!"); /// Prints If Error Occurs In File When Executing Project [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | let available_words: Vec<&str> = file_contents.split(',').collect(); [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:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | /// Select A Word At Random From The Included File [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | let random_index = rand::thread_rng().gen_range(0, available_words.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:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | /// Doesn't Reveal Letters, Keeps The Letters Blank In Display Unless Character Is Correctly Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | / for c in word.chars() { [INFO] [stdout] 106 | | letters.push(Letter { [INFO] [stdout] 107 | | character: c, [INFO] [stdout] 108 | | revealed: false [INFO] [stdout] 109 | | }); [INFO] [stdout] 110 | | } [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:117:58 [INFO] [stdout] | [INFO] [stdout] 117 | let mut display_string = String::from("Progress:"); /// Updated Word With New Letters Revealed If User Correctly Guesses During Their Turn [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | [INFO] [stdout] 119 | / for letter in letters { [INFO] [stdout] 120 | | display_string.push(' '); [INFO] [stdout] 121 | | [INFO] [stdout] 122 | | /// Loops Through To Push Underscores For Letters In Word, Replacing With Its Letter If User Guesses It Correctly [INFO] [stdout] ... | [INFO] [stdout] 129 | | display_string.push(' '); [INFO] [stdout] 130 | | } [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:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | /// Loops Through To Push Underscores For Letters In Word, Replacing With Its Letter If User Guesses It Correctly [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | / if letter.revealed { [INFO] [stdout] 124 | | display_string.push(letter.character); [INFO] [stdout] 125 | | } else { [INFO] [stdout] 126 | | display_string.push('_'); [INFO] [stdout] 127 | | } [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:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | /// Determine If All Letters Have Been Revealed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | let mut all_revealed = true; [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:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | /// If All Of The Letters In The Word Are Correctly Guessed And Revealed, The User Won The Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 162 | / if all_revealed { [INFO] [stdout] 163 | | return GameProgress::Won; [INFO] [stdout] 164 | | } [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:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | /// If The User Still Has Turns Left And The Word Is Not Yet Revealed, The Game Is Still In Progress [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 167 | / if turns_left > 0 { [INFO] [stdout] 168 | | return GameProgress::InProgress; [INFO] [stdout] 169 | | } [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:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | /// If The Letters In The Word Are Not All Correctly Guessed And Revealed Before Their Turns Run Out, The User Lost The Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | return GameProgress::Lost; [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] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:97:59 [INFO] [stdout] | [INFO] [stdout] 97 | return String::from(available_words[random_index]); /// Returns The Selected Word From The File [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | return letters; /// Returns The Letter That Is Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/main.rs:132:39 [INFO] [stdout] | [INFO] [stdout] 132 | println!("{}", display_string); /// Updated String From Word Being Guesses [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, if a comment was intended use `//` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | display_progress(&letters); /// Shows Word Updated With The Letters Correctly Guessed [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | /// Prompts User To Enter New Character To Guess [INFO] [stdout] | |_________-----------------------------------------------^ [INFO] [stdout] | | [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] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | println!("Welcome to Hangman!"); /// Intro Into The Game [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 37 | | [INFO] [stdout] 38 | | /// The Loop Repeats With Each Letter The User Inputs [INFO] [stdout] 39 | | /// The Turns Only Decrease If The Character Entered By The User Is Incorrect [INFO] [stdout] 40 | | /// The Loop Ends When There Are No Turns Left [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] 41 | / loop { [INFO] [stdout] 42 | | println!("\nYou have {} turns left.", turns_left); [INFO] [stdout] 43 | | display_progress(&letters); /// Shows Word Updated With The Letters Correctly Guessed [INFO] [stdout] ... | [INFO] [stdout] 80 | | } [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:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | /// Exit If User Enters An Asterisk ('*') - Allows User To Stop The Game Prematurely [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | / if user_char == '*' { [INFO] [stdout] 51 | | break; [INFO] [stdout] 52 | | } [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:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | /// Updates The 'Revealed' State Of Each Letter. If The User Has Guessed A Correct Letter, at_least_one_revealed Is Changed To True [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | let mut at_least_one_revealed = false; [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:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | /// The User Will Lose A Turn If You Make An Incorrect Guess [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | / if !at_least_one_revealed { [INFO] [stdout] 65 | | turns_left -= 1; [INFO] [stdout] 66 | | } [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:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | /// Check Game Progress [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | / match check_progress(turns_left, &letters) { [INFO] [stdout] 70 | | GameProgress::InProgress => continue, [INFO] [stdout] 71 | | GameProgress::Won => { [INFO] [stdout] 72 | | println!("\nCongrats! You won! ☺"); /// Prints With Smiley Face If Entire Word Is Correctly Guessed [INFO] [stdout] ... | [INFO] [stdout] 79 | | } [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:72:54 [INFO] [stdout] | [INFO] [stdout] 72 | println!("\nCongrats! You won! ☺"); /// Prints With Smiley Face If Entire Word Is Correctly Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | break; [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:76:46 [INFO] [stdout] | [INFO] [stdout] 76 | println!("\nYou lost! ☹"); /// Prints With Sad Face If Word Isn't Guessed Before The User Runs Out Of Turns [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | break; [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:87:78 [INFO] [stdout] | [INFO] [stdout] 87 | let mut file = File::open("words.txt").expect("Could not open file!"); /// Prints If File Cannot Be Opened [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | [INFO] [stdout] 89 | let mut file_contents = 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:90:99 [INFO] [stdout] | [INFO] [stdout] 90 | file.read_to_string(&mut file_contents).expect("An error occured while reading the file!"); /// Prints If Error Occurs In File When Executing Project [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | [INFO] [stdout] 92 | let available_words: Vec<&str> = file_contents.split(',').collect(); [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:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | /// Select A Word At Random From The Included File [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | let random_index = rand::thread_rng().gen_range(0, available_words.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:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | /// Doesn't Reveal Letters, Keeps The Letters Blank In Display Unless Character Is Correctly Guessed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | / for c in word.chars() { [INFO] [stdout] 106 | | letters.push(Letter { [INFO] [stdout] 107 | | character: c, [INFO] [stdout] 108 | | revealed: false [INFO] [stdout] 109 | | }); [INFO] [stdout] 110 | | } [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:117:58 [INFO] [stdout] | [INFO] [stdout] 117 | let mut display_string = String::from("Progress:"); /// Updated Word With New Letters Revealed If User Correctly Guesses During Their Turn [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | [INFO] [stdout] 119 | / for letter in letters { [INFO] [stdout] 120 | | display_string.push(' '); [INFO] [stdout] 121 | | [INFO] [stdout] 122 | | /// Loops Through To Push Underscores For Letters In Word, Replacing With Its Letter If User Guesses It Correctly [INFO] [stdout] ... | [INFO] [stdout] 129 | | display_string.push(' '); [INFO] [stdout] 130 | | } [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:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | /// Loops Through To Push Underscores For Letters In Word, Replacing With Its Letter If User Guesses It Correctly [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | / if letter.revealed { [INFO] [stdout] 124 | | display_string.push(letter.character); [INFO] [stdout] 125 | | } else { [INFO] [stdout] 126 | | display_string.push('_'); [INFO] [stdout] 127 | | } [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:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | /// Determine If All Letters Have Been Revealed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | let mut all_revealed = true; [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:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | /// If All Of The Letters In The Word Are Correctly Guessed And Revealed, The User Won The Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 162 | / if all_revealed { [INFO] [stdout] 163 | | return GameProgress::Won; [INFO] [stdout] 164 | | } [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:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | /// If The User Still Has Turns Left And The Word Is Not Yet Revealed, The Game Is Still In Progress [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 167 | / if turns_left > 0 { [INFO] [stdout] 168 | | return GameProgress::InProgress; [INFO] [stdout] 169 | | } [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:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | /// If The Letters In The Word Are Not All Correctly Guessed And Revealed Before Their Turns Run Out, The User Lost The Game [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | return GameProgress::Lost; [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] For more information about this error, try `rustc --explain E0585`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0585`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hangman-demo` (bin "hangman-demo") due to 3 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hangman-demo` (bin "hangman-demo" test) due to 3 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a270c1e90328d2cf67cf153562563fad079ae5da797eb4be135893363acf0a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a270c1e90328d2cf67cf153562563fad079ae5da797eb4be135893363acf0a3f", kill_on_drop: false }` [INFO] [stdout] a270c1e90328d2cf67cf153562563fad079ae5da797eb4be135893363acf0a3f