[INFO] cloning repository https://github.com/mauricioabreu/hangman [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mauricioabreu/hangman" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmauricioabreu%2Fhangman", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmauricioabreu%2Fhangman'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5176fccbe663d35c2f65cc2fc9472714643accd9 [INFO] checking mauricioabreu/hangman/5176fccbe663d35c2f65cc2fc9472714643accd9 against master#733108b6d4acaa93fe26ae281ea305aacd6aac4e for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmauricioabreu%2Fhangman" "/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/mauricioabreu/hangman [INFO] finished tweaking git repo https://github.com/mauricioabreu/hangman [INFO] tweaked toml for git repo https://github.com/mauricioabreu/hangman written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mauricioabreu/hangman on toolchain 733108b6d4acaa93fe26ae281ea305aacd6aac4e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mauricioabreu/hangman 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" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a04daca8919247a76de8cce602db744dfff840e92a74a1770fe6b213024bace5 [INFO] running `Command { std: "docker" "start" "-a" "a04daca8919247a76de8cce602db744dfff840e92a74a1770fe6b213024bace5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a04daca8919247a76de8cce602db744dfff840e92a74a1770fe6b213024bace5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a04daca8919247a76de8cce602db744dfff840e92a74a1770fe6b213024bace5", kill_on_drop: false }` [INFO] [stdout] a04daca8919247a76de8cce602db744dfff840e92a74a1770fe6b213024bace5 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0143fd0c4b4fc1343171498c355c2911d269e5b6e415db55262dae3eab9eba92 [INFO] running `Command { std: "docker" "start" "-a" "0143fd0c4b4fc1343171498c355c2911d269e5b6e415db55262dae3eab9eba92", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking hangman v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:48:64 [INFO] [stdout] | [INFO] [stdout] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hangman` (bin "hangman" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:48:64 [INFO] [stdout] | [INFO] [stdout] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | let total_miss = 5u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/main.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | count += 1u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_char` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | let mut guessing_word = String::from_char(secret_word.len(), '_'); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/733108b6d4acaa93fe26ae281ea305aacd6aac4e/library/alloc/src/string.rs:444:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] --> /rustc/733108b6d4acaa93fe26ae281ea305aacd6aac4e/library/core/src/iter/traits/collect.rs:152:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | let input = io::stdin().read_line().ok().expect("Failed to read line"); [INFO] [stdout] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/733108b6d4acaa93fe26ae281ea305aacd6aac4e/library/std/src/io/stdio.rs:411:11 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 20 | let input = io::stdin().read_line(/* &mut String */).ok().expect("Failed to read line"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `char_at` found for type `usize` in the current scope [INFO] [stdout] --> src/main.rs:21:38 [INFO] [stdout] | [INFO] [stdout] 21 | let input_char: char = input.char_at(0); [INFO] [stdout] | ^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hangman` (bin "hangman") due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "0143fd0c4b4fc1343171498c355c2911d269e5b6e415db55262dae3eab9eba92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0143fd0c4b4fc1343171498c355c2911d269e5b6e415db55262dae3eab9eba92", kill_on_drop: false }` [INFO] [stdout] 0143fd0c4b4fc1343171498c355c2911d269e5b6e415db55262dae3eab9eba92