[INFO] updating cached repository mnaircckel/Rust-Console-Adventure [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mnaircckel/Rust-Console-Adventure [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mnaircckel/Rust-Console-Adventure" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/mnaircckel/Rust-Console-Adventure"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/mnaircckel/Rust-Console-Adventure'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mnaircckel/Rust-Console-Adventure" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/mnaircckel/Rust-Console-Adventure"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/mnaircckel/Rust-Console-Adventure'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c143a3de6cf1bc5929cb3ca4c8eb69c4b5da383b [INFO] sha for GitHub repo mnaircckel/Rust-Console-Adventure: c143a3de6cf1bc5929cb3ca4c8eb69c4b5da383b [INFO] validating manifest of mnaircckel/Rust-Console-Adventure on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mnaircckel/Rust-Console-Adventure on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mnaircckel/Rust-Console-Adventure [INFO] finished frobbing mnaircckel/Rust-Console-Adventure [INFO] frobbed toml for mnaircckel/Rust-Console-Adventure written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/mnaircckel/Rust-Console-Adventure/Cargo.toml [INFO] started frobbing mnaircckel/Rust-Console-Adventure [INFO] finished frobbing mnaircckel/Rust-Console-Adventure [INFO] frobbed toml for mnaircckel/Rust-Console-Adventure written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/mnaircckel/Rust-Console-Adventure/Cargo.toml [INFO] crate mnaircckel/Rust-Console-Adventure already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking mnaircckel/Rust-Console-Adventure against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-0/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/mnaircckel/Rust-Console-Adventure:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 5211c28fb42afea3b3e55397bc6471963b9dfda524f63f23d29d21c6e1763a41 [INFO] running `"docker" "start" "-a" "5211c28fb42afea3b3e55397bc6471963b9dfda524f63f23d29d21c6e1763a41"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking project v0.0.1 (/opt/crater/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] 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 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [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] 89 | let num = rand::random::() % 13; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [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[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error: Could not compile `project`. [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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters 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] | ^^^^^^^^^ expected 1 parameter [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] | ^^^^ [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" "5211c28fb42afea3b3e55397bc6471963b9dfda524f63f23d29d21c6e1763a41"` [INFO] running `"docker" "rm" "-f" "5211c28fb42afea3b3e55397bc6471963b9dfda524f63f23d29d21c6e1763a41"` [INFO] [stdout] 5211c28fb42afea3b3e55397bc6471963b9dfda524f63f23d29d21c6e1763a41