[INFO] cloning repository https://github.com/Summer-of-Rust/SoR-Lab-4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Summer-of-Rust/SoR-Lab-4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSummer-of-Rust%2FSoR-Lab-4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSummer-of-Rust%2FSoR-Lab-4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56a409f11fbdfcf9b8f982a3734eee76d8e0c2af [INFO] testing Summer-of-Rust/SoR-Lab-4 against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSummer-of-Rust%2FSoR-Lab-4" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Summer-of-Rust/SoR-Lab-4 on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Summer-of-Rust/SoR-Lab-4 [INFO] finished tweaking git repo https://github.com/Summer-of-Rust/SoR-Lab-4 [INFO] tweaked toml for git repo https://github.com/Summer-of-Rust/SoR-Lab-4 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Summer-of-Rust/SoR-Lab-4 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2faa344d7bad75eec6dc99d02a11aba817675ebfb61296af5bb935f6b0f45030 [INFO] running `Command { std: "docker" "start" "-a" "2faa344d7bad75eec6dc99d02a11aba817675ebfb61296af5bb935f6b0f45030", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2faa344d7bad75eec6dc99d02a11aba817675ebfb61296af5bb935f6b0f45030", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2faa344d7bad75eec6dc99d02a11aba817675ebfb61296af5bb935f6b0f45030", kill_on_drop: false }` [INFO] [stdout] 2faa344d7bad75eec6dc99d02a11aba817675ebfb61296af5bb935f6b0f45030 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66c6eedbebb94ca4a6bf48c1aa381108a4a5eea86b2b9d0d35e84800c540c07d [INFO] running `Command { std: "docker" "start" "-a" "66c6eedbebb94ca4a6bf48c1aa381108a4a5eea86b2b9d0d35e84800c540c07d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sor-lab-4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no variant or associated item named `Win` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/card.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | FightResult::Win => println!("{} wins!", self), [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Win` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Loss` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/card.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | FightResult::Loss => println!("{} wins!", other), [INFO] [stdout] | ^^^^ variant or associated item not found in `FightResult` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Loss` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Tie` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/card.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | FightResult::Tie => println!("It's a tie!"), [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Tie` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Draw` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/card.rs:28:26 [INFO] [stdout] | [INFO] [stdout] 28 | FightResult::Draw => println!("It's a draw!"), [INFO] [stdout] | ^^^^ variant or associated item not found in `FightResult` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Draw` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Win` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Win` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 37 | assert!(matches!(fight_result, FightResult::Win)); [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Tie` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Tie` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 42 | assert!(matches!(fight_result, FightResult::Tie)); [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Loss` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Loss` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 47 | assert!(matches!(fight_result, FightResult::Loss)); [INFO] [stdout] | ^^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Win` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Win` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 89 | FightResult::Win => println!("SHOP 1 WINS!"), [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Loss` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Loss` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 90 | FightResult::Loss => println!("SHOP 2 WINS!"), [INFO] [stdout] | ^^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Tie` found for enum `FightResult` in the current scope [INFO] [stdout] --> src/main.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum FightResult { [INFO] [stdout] | -------------------- variant or associated item `Tie` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 91 | FightResult::Tie => println!("IT'S A TIE!"), [INFO] [stdout] | ^^^ variant or associated item not found in `FightResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/card.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn fight(&self, other: &Card) -> FightResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/shop.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn fight_store(&self, other: &Shop) -> FightResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sor-lab-4` (bin "sor-lab-4") due to 10 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "66c6eedbebb94ca4a6bf48c1aa381108a4a5eea86b2b9d0d35e84800c540c07d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66c6eedbebb94ca4a6bf48c1aa381108a4a5eea86b2b9d0d35e84800c540c07d", kill_on_drop: false }` [INFO] [stdout] 66c6eedbebb94ca4a6bf48c1aa381108a4a5eea86b2b9d0d35e84800c540c07d