[INFO] cloning repository https://github.com/ericrasmussen/rustexercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ericrasmussen/rustexercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e533dbe992107a927feecdbee16fdfe299fc53f [INFO] checking ericrasmussen/rustexercises against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ericrasmussen/rustexercises 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] removed /workspace/builds/worker-4-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] finished tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] tweaked toml for git repo https://github.com/ericrasmussen/rustexercises written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ericrasmussen/rustexercises 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simple-error v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] bfc3d55fb4fb8e57c671ffce374b411b7dbad23dbac28989df7ddc665047fc04 [INFO] running `Command { std: "docker" "start" "-a" "bfc3d55fb4fb8e57c671ffce374b411b7dbad23dbac28989df7ddc665047fc04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfc3d55fb4fb8e57c671ffce374b411b7dbad23dbac28989df7ddc665047fc04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfc3d55fb4fb8e57c671ffce374b411b7dbad23dbac28989df7ddc665047fc04", kill_on_drop: false }` [INFO] [stdout] bfc3d55fb4fb8e57c671ffce374b411b7dbad23dbac28989df7ddc665047fc04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 7982a529e8098fcc84882d5b2e81c0a4d190be3499c8a10fc6f71058ec9280eb [INFO] running `Command { std: "docker" "start" "-a" "7982a529e8098fcc84882d5b2e81c0a4d190be3499c8a10fc6f71058ec9280eb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling getrandom v0.1.10 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking simple-error v0.2.0 [INFO] [stderr] Checking test_bin v0.2.0 [INFO] [stderr] Checking problem2 v0.1.0 (/opt/rustwide/workdir/problems/problem2) [INFO] [stderr] Checking problem5 v0.1.0 (/opt/rustwide/workdir/problems/problem5) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> problems/problem5/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> problems/problem5/src/lib.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new () -> Self {} [INFO] [stdout] | --- ^^^^ expected `Mortgage`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | fn months_until_payoff(&self, monthly_payment: i64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> problems/problem2/src/lib.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_one_to_n(n: u32) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> problems/problem2/src/lib.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_one_to_n(n: u32) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `problem5` (lib) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7982a529e8098fcc84882d5b2e81c0a4d190be3499c8a10fc6f71058ec9280eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7982a529e8098fcc84882d5b2e81c0a4d190be3499c8a10fc6f71058ec9280eb", kill_on_drop: false }` [INFO] [stdout] 7982a529e8098fcc84882d5b2e81c0a4d190be3499c8a10fc6f71058ec9280eb [INFO] checking ericrasmussen/rustexercises against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fericrasmussen%2Frustexercises" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ericrasmussen/rustexercises 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] removed /workspace/builds/worker-4-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] finished tweaking git repo https://github.com/ericrasmussen/rustexercises [INFO] tweaked toml for git repo https://github.com/ericrasmussen/rustexercises written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ericrasmussen/rustexercises 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 6e721cd1f446e7cdef64dab15f81df5ffbc430d02148984e219fd5629be99055 [INFO] running `Command { std: "docker" "start" "-a" "6e721cd1f446e7cdef64dab15f81df5ffbc430d02148984e219fd5629be99055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e721cd1f446e7cdef64dab15f81df5ffbc430d02148984e219fd5629be99055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e721cd1f446e7cdef64dab15f81df5ffbc430d02148984e219fd5629be99055", kill_on_drop: false }` [INFO] [stdout] 6e721cd1f446e7cdef64dab15f81df5ffbc430d02148984e219fd5629be99055 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 43c46decd0e186488083903693dca054cef75c122ca70d2f75a16be375cf6c68 [INFO] running `Command { std: "docker" "start" "-a" "43c46decd0e186488083903693dca054cef75c122ca70d2f75a16be375cf6c68", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "43c46decd0e186488083903693dca054cef75c122ca70d2f75a16be375cf6c68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43c46decd0e186488083903693dca054cef75c122ca70d2f75a16be375cf6c68", kill_on_drop: false }` [INFO] [stdout] 43c46decd0e186488083903693dca054cef75c122ca70d2f75a16be375cf6c68