[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 master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frk463345%2FRust_Projects_RPS" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rk463345/Rust_Projects_RPS on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc1/source/Cargo.toml [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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02844c2179b0b65a3f191518e4e7f09da718b5262e64bfe6a842738f94f7a76a [INFO] running `Command { std: "docker" "start" "-a" "02844c2179b0b65a3f191518e4e7f09da718b5262e64bfe6a842738f94f7a76a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02844c2179b0b65a3f191518e4e7f09da718b5262e64bfe6a842738f94f7a76a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02844c2179b0b65a3f191518e4e7f09da718b5262e64bfe6a842738f94f7a76a", kill_on_drop: false }` [INFO] [stdout] 02844c2179b0b65a3f191518e4e7f09da718b5262e64bfe6a842738f94f7a76a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea0501f5eae406ed93b9a055a4d9e05ea41f4f59d1be8c8c959f8f7b7571d017 [INFO] running `Command { std: "docker" "start" "-a" "ea0501f5eae406ed93b9a055a4d9e05ea41f4f59d1be8c8c959f8f7b7571d017", 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] | ^ help: use a double colon instead: `::` [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [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] | ^ help: use a double colon instead: `::` [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [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] | ^ help: use a double colon instead: `::` [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [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] | ^ help: use a double colon instead: `::` [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [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 undeclared crate or module `rand` [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 undeclared crate or module `rand` [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 undeclared crate or module `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 undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `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 undeclared crate or module `rand` [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] = help: unsized locals are gated as an unstable feature [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] error: aborting due to 10 previous errors [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] error: aborting due to 10 previous errors [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] [stderr] error: could not compile `RPS` (bin "RPS") due to 11 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 11 previous errors [INFO] running `Command { std: "docker" "inspect" "ea0501f5eae406ed93b9a055a4d9e05ea41f4f59d1be8c8c959f8f7b7571d017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea0501f5eae406ed93b9a055a4d9e05ea41f4f59d1be8c8c959f8f7b7571d017", kill_on_drop: false }` [INFO] [stdout] ea0501f5eae406ed93b9a055a4d9e05ea41f4f59d1be8c8c959f8f7b7571d017