[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] d09571d996b8ae92f1f4f1c5fac067f44cb24253 [INFO] checking SynCROSS/learning-rust against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SynCROSS/learning-rust on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-6-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2c04fc6d5a5e46e0180255f3b8c074e6922557ca0c579dddba61d5e928da546 [INFO] running `Command { std: "docker" "start" "-a" "d2c04fc6d5a5e46e0180255f3b8c074e6922557ca0c579dddba61d5e928da546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2c04fc6d5a5e46e0180255f3b8c074e6922557ca0c579dddba61d5e928da546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2c04fc6d5a5e46e0180255f3b8c074e6922557ca0c579dddba61d5e928da546", kill_on_drop: false }` [INFO] [stdout] d2c04fc6d5a5e46e0180255f3b8c074e6922557ca0c579dddba61d5e928da546 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1607cd326091d0e8c0d9bf49840134c1400ac461e0aa89f88c53fd1f7e58678 [INFO] running `Command { std: "docker" "start" "-a" "d1607cd326091d0e8c0d9bf49840134c1400ac461e0aa89f88c53fd1f7e58678", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.86 [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] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking 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] 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 `NewsArticle`, found `Tweet` [INFO] [stdout] 52 | | } [INFO] [stdout] | |_______- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] help: you could change the return type to be a boxed trait object [INFO] [stdout] | [INFO] [stdout] 35 | fn returns_summarizable(switch: bool) -> Box { [INFO] [stdout] | ~~~~~~~ + [INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions [INFO] [stdout] | [INFO] [stdout] 37 ~ Box::new(NewsArticle { [INFO] [stdout] 38 | headline: String::from("Penguins win the Stanley Cup Championship!"), [INFO] [stdout] ... [INFO] [stdout] 43 | ), [INFO] [stdout] 44 ~ }) [INFO] [stdout] 45 | } else { [INFO] [stdout] 46 ~ Box::new(Tweet { [INFO] [stdout] 47 | username: String::from("horse_ebooks"), [INFO] [stdout] ... [INFO] [stdout] 50 | retweet: false, [INFO] [stdout] 51 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [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] 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 `NewsArticle`, found `Tweet` [INFO] [stdout] 52 | | } [INFO] [stdout] | |_______- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] help: you could change the return type to be a boxed trait object [INFO] [stdout] | [INFO] [stdout] 35 | fn returns_summarizable(switch: bool) -> Box { [INFO] [stdout] | ~~~~~~~ + [INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions [INFO] [stdout] | [INFO] [stdout] 37 ~ Box::new(NewsArticle { [INFO] [stdout] 38 | headline: String::from("Penguins win the Stanley Cup Championship!"), [INFO] [stdout] ... [INFO] [stdout] 43 | ), [INFO] [stdout] 44 ~ }) [INFO] [stdout] 45 | } else { [INFO] [stdout] 46 ~ Box::new(Tweet { [INFO] [stdout] 47 | username: String::from("horse_ebooks"), [INFO] [stdout] ... [INFO] [stdout] 50 | retweet: false, [INFO] [stdout] 51 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `learning-rust` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "d1607cd326091d0e8c0d9bf49840134c1400ac461e0aa89f88c53fd1f7e58678", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1607cd326091d0e8c0d9bf49840134c1400ac461e0aa89f88c53fd1f7e58678", kill_on_drop: false }` [INFO] [stdout] d1607cd326091d0e8c0d9bf49840134c1400ac461e0aa89f88c53fd1f7e58678 [INFO] checking SynCROSS/learning-rust against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SynCROSS/learning-rust on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-6-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25a882843240389735a28dba6a674f89876a2e89fa79a3ba6bce90654d86ad68 [INFO] running `Command { std: "docker" "start" "-a" "25a882843240389735a28dba6a674f89876a2e89fa79a3ba6bce90654d86ad68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25a882843240389735a28dba6a674f89876a2e89fa79a3ba6bce90654d86ad68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25a882843240389735a28dba6a674f89876a2e89fa79a3ba6bce90654d86ad68", kill_on_drop: false }` [INFO] [stdout] 25a882843240389735a28dba6a674f89876a2e89fa79a3ba6bce90654d86ad68 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a210b36f09f592ed5d927a90b4157a781b38591d56b44cfde7ada0cf9beac69e [INFO] running `Command { std: "docker" "start" "-a" "a210b36f09f592ed5d927a90b4157a781b38591d56b44cfde7ada0cf9beac69e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "a210b36f09f592ed5d927a90b4157a781b38591d56b44cfde7ada0cf9beac69e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a210b36f09f592ed5d927a90b4157a781b38591d56b44cfde7ada0cf9beac69e", kill_on_drop: false }` [INFO] [stdout] a210b36f09f592ed5d927a90b4157a781b38591d56b44cfde7ada0cf9beac69e