[INFO] cloning repository https://github.com/rk463345/Rust_Projects_RPS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rk463345/Rust_Projects_RPS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frk463345%2FRust_Projects_RPS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frk463345%2FRust_Projects_RPS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cc9b6d481d2a2f67307db15a774acf3f8ef5b742 [INFO] checking rk463345/Rust_Projects_RPS against try#4949cf2f817beadb9a248d423b6d55d6d2398ffe for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frk463345%2FRust_Projects_RPS" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rk463345/Rust_Projects_RPS [INFO] finished tweaking git repo https://github.com/rk463345/Rust_Projects_RPS [INFO] tweaked toml for git repo https://github.com/rk463345/Rust_Projects_RPS written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rk463345/Rust_Projects_RPS on toolchain 4949cf2f817beadb9a248d423b6d55d6d2398ffe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rk463345/Rust_Projects_RPS 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" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking rk463345/Rust_Projects_RPS against try#4949cf2f817beadb9a248d423b6d55d6d2398ffe for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frk463345%2FRust_Projects_RPS" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rk463345/Rust_Projects_RPS [INFO] finished tweaking git repo https://github.com/rk463345/Rust_Projects_RPS [INFO] tweaked toml for git repo https://github.com/rk463345/Rust_Projects_RPS written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rk463345/Rust_Projects_RPS on toolchain 4949cf2f817beadb9a248d423b6d55d6d2398ffe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rk463345/Rust_Projects_RPS 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" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bf2885c9bda5a1b3a6c77fe2fdccd427614fbaa967e55aa7395c766e80df15d [INFO] running `Command { std: "docker" "start" "-a" "6bf2885c9bda5a1b3a6c77fe2fdccd427614fbaa967e55aa7395c766e80df15d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bf2885c9bda5a1b3a6c77fe2fdccd427614fbaa967e55aa7395c766e80df15d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bf2885c9bda5a1b3a6c77fe2fdccd427614fbaa967e55aa7395c766e80df15d", kill_on_drop: false }` [INFO] [stdout] 6bf2885c9bda5a1b3a6c77fe2fdccd427614fbaa967e55aa7395c766e80df15d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2560434a5cce1ae83bef4021c22b52173fe2fd0a501ae60a39e6f0b81820f42b [INFO] running `Command { std: "docker" "start" "-a" "2560434a5cce1ae83bef4021c22b52173fe2fd0a501ae60a39e6f0b81820f42b", kill_on_drop: false }` [INFO] [stderr] Checking RPS v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int:new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int::new(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int:new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int::new(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | let mut two_player = String:new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 14 | let mut two_player = String::new(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | let mut two_player = String:new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 14 | let mut two_player = String::new(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `play` is private [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | game::play(best_of, two_player); [INFO] [stdout] | ^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `play` is defined here [INFO] [stdout] --> src/game.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn play(rounds: u32, bot: String) -> (){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `play` is private [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | game::play(best_of, two_player); [INFO] [stdout] | ^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `play` is defined here [INFO] [stdout] --> src/game.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn play(rounds: u32, bot: String) -> (){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/game.rs:12:48 [INFO] [stdout] | [INFO] [stdout] 12 | let mut bot_choice = legal_choices[rand::thread_rng().gen_range(0..2)]; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/game.rs:12:48 [INFO] [stdout] | [INFO] [stdout] 12 | let mut bot_choice = legal_choices[rand::thread_rng().gen_range(0..2)]; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let round = player_choice + bot_choice; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let round = player_choice + bot_choice; [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | win_1 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | win_1 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | win_2 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | win_2 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | win_3 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/game.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | win_3 => {println!("Player 1 wins!");}, [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Int` [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int:new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Int` [INFO] [stdout] | help: a trait with a similar name exists: `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Int` [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut best_of = Int:new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Int` [INFO] [stdout] | help: a trait with a similar name exists: `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `RPS` (bin "RPS") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `RPS` (bin "RPS" test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "2560434a5cce1ae83bef4021c22b52173fe2fd0a501ae60a39e6f0b81820f42b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2560434a5cce1ae83bef4021c22b52173fe2fd0a501ae60a39e6f0b81820f42b", kill_on_drop: false }` [INFO] [stdout] 2560434a5cce1ae83bef4021c22b52173fe2fd0a501ae60a39e6f0b81820f42b