[INFO] updating cached repository https://github.com/mnaircckel/Rust-Console-Adventure [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] c143a3de6cf1bc5929cb3ca4c8eb69c4b5da383b [INFO] checking mnaircckel/Rust-Console-Adventure against master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnaircckel%2FRust-Console-Adventure" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mnaircckel/Rust-Console-Adventure on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/mnaircckel/Rust-Console-Adventure [INFO] finished tweaking git repo https://github.com/mnaircckel/Rust-Console-Adventure [INFO] tweaked toml for git repo https://github.com/mnaircckel/Rust-Console-Adventure written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/mnaircckel/Rust-Console-Adventure already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+45d050cde277b22a755847338f2acc2c7b834141" "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] 7d244c3f3c451179348087ec6419cf08f7b4753d056cb011339a003cb5b6f0c8 [INFO] running `"docker" "start" "-a" "7d244c3f3c451179348087ec6419cf08f7b4753d056cb011339a003cb5b6f0c8"` [INFO] [stderr] Checking project v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/game.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::rand; [INFO] [stderr] | ^^^^^^^^^ no `rand` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stderr] --> src/game.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::BufferedReader; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/game.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | pub level: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:16:72 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(running: bool, player: Character, enemy: Character, level: int, monsters: Vec) -> GameState { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | level: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 33 | health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | level : int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 40 | max_health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:41:18 [INFO] [stderr] | [INFO] [stderr] 41 | current_health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:34 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:51 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:72 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:60:22 [INFO] [stderr] | [INFO] [stderr] 60 | fn attack(&self) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:61:52 [INFO] [stderr] | [INFO] [stderr] 61 | self.level * ( (rand::random::() * 4f64) as int) [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:64:31 [INFO] [stderr] | [INFO] [stderr] 64 | fn defend(&mut self, damage: int){ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:65:36 [INFO] [stderr] | [INFO] [stderr] 65 | self.current_health -= damage as int; [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/game.rs:89:27 [INFO] [stderr] | [INFO] [stderr] 88 | fn new_enemy(actionHandler: &mut GameState) -> Character { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 89 | let num = rand::random::() % 13; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/game.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::rand; [INFO] [stderr] | ^^^^^^^^^ no `rand` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stderr] --> src/game.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::BufferedReader; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/game.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:84:25 [INFO] [stderr] | [INFO] [stderr] 84 | let name = io::stdin().read_line().ok().expect("Failed to read name."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | pub level: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:16:72 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(running: bool, player: Character, enemy: Character, level: int, monsters: Vec) -> GameState { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | level: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 33 | health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | level : int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 40 | max_health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:41:18 [INFO] [stderr] | [INFO] [stderr] 41 | current_health: int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:34 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:51 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:46:72 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:60:22 [INFO] [stderr] | [INFO] [stderr] 60 | fn attack(&self) -> int{ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:61:52 [INFO] [stderr] | [INFO] [stderr] 61 | self.level * ( (rand::random::() * 4f64) as int) [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:64:31 [INFO] [stderr] | [INFO] [stderr] 64 | fn defend(&mut self, damage: int){ [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/game.rs:65:36 [INFO] [stderr] | [INFO] [stderr] 65 | self.current_health -= damage as int; [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/game.rs:89:27 [INFO] [stderr] | [INFO] [stderr] 88 | fn new_enemy(actionHandler: &mut GameState) -> Character { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 89 | let num = rand::random::() % 13; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:84:25 [INFO] [stderr] | [INFO] [stderr] 84 | let name = io::stdin().read_line().ok().expect("Failed to read name."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:85:22 [INFO] [stderr] | [INFO] [stderr] 85 | Character::new(name.as_slice().trim().to_string(),1,100,100,true) [INFO] [stderr] | ^^^^^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:109:27 [INFO] [stderr] | [INFO] [stderr] 109 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:110:15 [INFO] [stderr] | [INFO] [stderr] 110 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:135:26 [INFO] [stderr] | [INFO] [stderr] 135 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:136:14 [INFO] [stderr] | [INFO] [stderr] 136 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:157:27 [INFO] [stderr] | [INFO] [stderr] 157 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:158:15 [INFO] [stderr] | [INFO] [stderr] 158 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error: aborting due to 26 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0412, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `project`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:85:22 [INFO] [stderr] | [INFO] [stderr] 85 | Character::new(name.as_slice().trim().to_string(),1,100,100,true) [INFO] [stderr] | ^^^^^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:109:27 [INFO] [stderr] | [INFO] [stderr] 109 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:110:15 [INFO] [stderr] | [INFO] [stderr] 110 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:135:26 [INFO] [stderr] | [INFO] [stderr] 135 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:136:14 [INFO] [stderr] | [INFO] [stderr] 136 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stderr] --> src/game.rs:157:27 [INFO] [stderr] | [INFO] [stderr] 157 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stderr] | ^^^^^^^^^- supplied 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected 1 argument [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stderr] --> src/game.rs:158:15 [INFO] [stderr] | [INFO] [stderr] 158 | match input.trim().as_slice() { [INFO] [stderr] | ^^^^ method not found in `usize` [INFO] [stderr] [INFO] [stderr] error: aborting due to 26 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0412, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `project`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "7d244c3f3c451179348087ec6419cf08f7b4753d056cb011339a003cb5b6f0c8"` [INFO] running `"docker" "rm" "-f" "7d244c3f3c451179348087ec6419cf08f7b4753d056cb011339a003cb5b6f0c8"` [INFO] [stdout] 7d244c3f3c451179348087ec6419cf08f7b4753d056cb011339a003cb5b6f0c8