[INFO] cloning repository https://github.com/SynCROSS/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SynCROSS/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 19a0d1a1cb25a51c4e305812ae1581033a65e7e8 [INFO] testing SynCROSS/learning-rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust" "/workspace/builds/worker-27/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-27/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SynCROSS/learning-rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SynCROSS/learning-rust [INFO] finished tweaking git repo https://github.com/SynCROSS/learning-rust [INFO] tweaked toml for git repo https://github.com/SynCROSS/learning-rust written to /workspace/builds/worker-27/source/Cargo.toml [INFO] crate git repo https://github.com/SynCROSS/learning-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5b07cf071f77229fcbd8fb934bbce79d32862879fadb7b7965d0d62685f4303 [INFO] running `Command { std: "docker" "start" "-a" "d5b07cf071f77229fcbd8fb934bbce79d32862879fadb7b7965d0d62685f4303", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5b07cf071f77229fcbd8fb934bbce79d32862879fadb7b7965d0d62685f4303", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5b07cf071f77229fcbd8fb934bbce79d32862879fadb7b7965d0d62685f4303", kill_on_drop: false }` [INFO] [stdout] d5b07cf071f77229fcbd8fb934bbce79d32862879fadb7b7965d0d62685f4303 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9df28be49eb4748d04aadc3551d8f960695dc960cc6a01fabcc31d7aa3c3428 [INFO] running `Command { std: "docker" "start" "-a" "d9df28be49eb4748d04aadc3551d8f960695dc960cc6a01fabcc31d7aa3c3428", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling learning-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 36 | / if switch { [INFO] [stdout] 37 | | NewsArticle { [INFO] [stdout] | _|_________- [INFO] [stdout] 38 | | | headline: String::from("Penguins win the Stanley Cup Championship!"), [INFO] [stdout] 39 | | | location: String::from("Pittsburgh, PA, USA"), [INFO] [stdout] 40 | | | author: String::from("Iceburgh"), [INFO] [stdout] ... | | [INFO] [stdout] 43 | | | ), [INFO] [stdout] 44 | | | } [INFO] [stdout] | |_|_________- expected because of this [INFO] [stdout] 45 | | } else { [INFO] [stdout] 46 | / | Tweet { [INFO] [stdout] 47 | | | username: String::from("horse_ebooks"), [INFO] [stdout] 48 | | | content: String::from("of course, as you probably already know, people"), [INFO] [stdout] 49 | | | reply: false, [INFO] [stdout] 50 | | | retweet: false, [INFO] [stdout] 51 | | | } [INFO] [stdout] | |_|_________^ expected struct `NewsArticle`, found struct `Tweet` [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____- `if` and `else` have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `learning-rust` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "d9df28be49eb4748d04aadc3551d8f960695dc960cc6a01fabcc31d7aa3c3428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9df28be49eb4748d04aadc3551d8f960695dc960cc6a01fabcc31d7aa3c3428", kill_on_drop: false }` [INFO] [stdout] d9df28be49eb4748d04aadc3551d8f960695dc960cc6a01fabcc31d7aa3c3428