[INFO] cloning repository https://github.com/nbaiocchi/WorkshopRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nbaiocchi/WorkshopRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnbaiocchi%2FWorkshopRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnbaiocchi%2FWorkshopRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d76a2ff256b3ea58fc5b7ae5895b0e62cd3e3654 [INFO] building nbaiocchi/WorkshopRust against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnbaiocchi%2FWorkshopRust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 43% (548/1260) Updating files: 44% (555/1260) Updating files: 45% (567/1260) Updating files: 46% (580/1260) Updating files: 47% (593/1260) Updating files: 48% (605/1260) Updating files: 48% (612/1260) Updating files: 49% (618/1260) Updating files: 50% (630/1260) Updating files: 51% (643/1260) Updating files: 52% (656/1260) Updating files: 53% (668/1260) Updating files: 54% (681/1260) Updating files: 55% (693/1260) Updating files: 56% (706/1260) Updating files: 57% (719/1260) Updating files: 58% (731/1260) Updating files: 59% (744/1260) Updating files: 60% (756/1260) Updating files: 61% (769/1260) Updating files: 62% (782/1260) Updating files: 63% (794/1260) Updating files: 64% (807/1260) Updating files: 65% (819/1260) Updating files: 66% (832/1260) Updating files: 67% (845/1260) Updating files: 68% (857/1260) Updating files: 69% (870/1260) Updating files: 70% (882/1260) Updating files: 71% (895/1260) Updating files: 72% (908/1260) Updating files: 73% (920/1260) Updating files: 74% (933/1260) Updating files: 75% (945/1260) Updating files: 76% (958/1260) Updating files: 77% (971/1260) Updating files: 78% (983/1260) Updating files: 79% (996/1260) Updating files: 80% (1008/1260) Updating files: 81% (1021/1260) Updating files: 82% (1034/1260) Updating files: 83% (1046/1260) Updating files: 84% (1059/1260) Updating files: 85% (1071/1260) Updating files: 86% (1084/1260) Updating files: 87% (1097/1260) Updating files: 88% (1109/1260) Updating files: 89% (1122/1260) Updating files: 90% (1134/1260) Updating files: 90% (1143/1260) Updating files: 91% (1147/1260) Updating files: 92% (1160/1260) Updating files: 93% (1172/1260) Updating files: 94% (1185/1260) Updating files: 95% (1197/1260) Updating files: 96% (1210/1260) Updating files: 97% (1223/1260) Updating files: 98% (1235/1260) Updating files: 99% (1248/1260) Updating files: 100% (1260/1260) Updating files: 100% (1260/1260), done. [INFO] started tweaking git repo https://github.com/nbaiocchi/WorkshopRust [INFO] finished tweaking git repo https://github.com/nbaiocchi/WorkshopRust [INFO] tweaked toml for git repo https://github.com/nbaiocchi/WorkshopRust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nbaiocchi/WorkshopRust on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nbaiocchi/WorkshopRust 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4243baf0642c945d29c5bceb998ed120c06c8e8885b3ac3cc98c5b402b68eeea [INFO] running `Command { std: "docker" "start" "-a" "4243baf0642c945d29c5bceb998ed120c06c8e8885b3ac3cc98c5b402b68eeea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4243baf0642c945d29c5bceb998ed120c06c8e8885b3ac3cc98c5b402b68eeea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4243baf0642c945d29c5bceb998ed120c06c8e8885b3ac3cc98c5b402b68eeea", kill_on_drop: false }` [INFO] [stdout] 4243baf0642c945d29c5bceb998ed120c06c8e8885b3ac3cc98c5b402b68eeea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af6bdc6340097ab18204c5738089041948154f0bd3b50493214d5567d2c5607a [INFO] running `Command { std: "docker" "start" "-a" "af6bdc6340097ab18204c5738089041948154f0bd3b50493214d5567d2c5607a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling text_io v0.1.10 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Compiling random-number-macro-impl v0.1.5 [INFO] [stderr] Compiling random-number v0.1.6 [INFO] [stderr] Compiling clap v3.1.6 [INFO] [stderr] Compiling clap_complete v3.1.1 [INFO] [stderr] Compiling clap_generate v3.0.3 [INFO] [stderr] Compiling project1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found `}` [INFO] [stdout] --> src/commands/command_addition.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct AdditionOptions { [INFO] [stdout] | --------------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `}` [INFO] [stdout] --> src/commands/command_multiplication.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MultiplicationOptions { [INFO] [stdout] | --------------------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 23 | } [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of input, expected identifier [INFO] [stdout] --> src/commands/command_addition.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of input, expected identifier [INFO] [stdout] --> src/commands/command_multiplication.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::commands::*` [INFO] [stdout] --> src/app.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::commands::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/commands/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/commands/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `app::Command: Clone` is not satisfied [INFO] [stdout] --> src/app.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Command { [INFO] [stdout] | ^^^^^^^ the trait `Clone` is not implemented for `app::Command` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `ArgEnum` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/clap-3.1.6/src/derive.rs:420:28 [INFO] [stdout] | [INFO] [stdout] 420 | pub trait ArgEnum: Sized + Clone { [INFO] [stdout] | ^^^^^ required by this bound in `ArgEnum` [INFO] [stdout] help: consider annotating `app::Command` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum Command { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/utils.rs:32:62 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn check_res(res: i32, score: &mut i32, line: String) -> TriState { [INFO] [stdout] | --------- ^^^^^^^^ expected `TriState`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 24 | let app: Calculator = Calculator::parse(); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 27 | match app.command { [INFO] [stdout] | ^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `app::Calculator`, which is uninhabited [INFO] [stdout] --> src/main.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | let app: Calculator = Calculator::parse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let app: Calculator = Calculator::parse(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `project1` (bin "project1") due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "af6bdc6340097ab18204c5738089041948154f0bd3b50493214d5567d2c5607a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af6bdc6340097ab18204c5738089041948154f0bd3b50493214d5567d2c5607a", kill_on_drop: false }` [INFO] [stdout] af6bdc6340097ab18204c5738089041948154f0bd3b50493214d5567d2c5607a