[INFO] updating cached repository https://github.com/mauricioabreu/hangman [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 5176fccbe663d35c2f65cc2fc9472714643accd9 [INFO] checking mauricioabreu/hangman against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmauricioabreu%2Fhangman" "/workspace/builds/worker-7/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mauricioabreu/hangman on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [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-7/source/Cargo.toml [INFO] crate git repo https://github.com/mauricioabreu/hangman already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 367e2657e771136ebb2f3b28f7a86aaebd02ddd1692a089ecfbf1c09c20b46ba [INFO] running `"docker" "start" "-a" "367e2657e771136ebb2f3b28f7a86aaebd02ddd1692a089ecfbf1c09c20b46ba"` [INFO] [stderr] Checking hangman v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:5:22 [INFO] [stderr] | [INFO] [stderr] 5 | let total_miss = 5u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:27:26 [INFO] [stderr] | [INFO] [stderr] 27 | count += 1u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:5:22 [INFO] [stderr] | [INFO] [stderr] 5 | let total_miss = 5u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:27:26 [INFO] [stderr] | [INFO] [stderr] 27 | count += 1u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:48:64 [INFO] [stderr] | [INFO] [stderr] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:52:34 [INFO] [stderr] | [INFO] [stderr] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_char` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:12:37 [INFO] [stderr] | [INFO] [stderr] 12 | let mut guessing_word = String::from_char(secret_word.len(), '_'); [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/main.rs:20:33 [INFO] [stderr] | [INFO] [stderr] 20 | let input = io::stdin().read_line().ok().expect("Failed to read line"); [INFO] [stderr] | ^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `usize` in the current scope [INFO] [stderr] --> src/main.rs:21:38 [INFO] [stderr] | [INFO] [stderr] 21 | let input_char: char = input.char_at(0); [INFO] [stderr] | ^^^^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:37:26 [INFO] [stderr] | [INFO] [stderr] 37 | if guessing_word.as_slice() == secret_word { println!("You win!"); return; } [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0412, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `hangman`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:48:64 [INFO] [stderr] | [INFO] [stderr] 48 | fn get_letter_indexes(letter: char, secret_word: &str) -> Vec<(uint, char)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:52:34 [INFO] [stderr] | [INFO] [stderr] 52 | fn replace_letters(indexes: Vec<(uint, char)>, secret_word: &mut String) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `hangman`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "367e2657e771136ebb2f3b28f7a86aaebd02ddd1692a089ecfbf1c09c20b46ba"` [INFO] running `"docker" "rm" "-f" "367e2657e771136ebb2f3b28f7a86aaebd02ddd1692a089ecfbf1c09c20b46ba"` [INFO] [stdout] 367e2657e771136ebb2f3b28f7a86aaebd02ddd1692a089ecfbf1c09c20b46ba