[INFO] cloning repository https://github.com/seritools/rust-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seritools/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd6ef05e36dcc533f2fc4876a87b57893f061e7d [INFO] checking seritools/rust-exercises against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseritools%2Frust-exercises" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/seritools/rust-exercises on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/seritools/rust-exercises [INFO] finished tweaking git repo https://github.com/seritools/rust-exercises [INFO] tweaked toml for git repo https://github.com/seritools/rust-exercises written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/seritools/rust-exercises already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2248ae1b7e2e46710b4aa73599e2ce28df3eb14b2e5c47319a433b8585c673bd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2248ae1b7e2e46710b4aa73599e2ce28df3eb14b2e5c47319a433b8585c673bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2248ae1b7e2e46710b4aa73599e2ce28df3eb14b2e5c47319a433b8585c673bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2248ae1b7e2e46710b4aa73599e2ce28df3eb14b2e5c47319a433b8585c673bd", kill_on_drop: false }` [INFO] [stdout] 2248ae1b7e2e46710b4aa73599e2ce28df3eb14b2e5c47319a433b8585c673bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c7515ceb02344357a91ca510275d2629f7d3572f6fd98be5312e5a2a3d1c023 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3c7515ceb02344357a91ca510275d2629f7d3572f6fd98be5312e5a2a3d1c023", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking rust-exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/generic-numbers.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 6 | fn modulo(a: T, b: T) -> T { [INFO] [stdout] | - this type parameter [INFO] [stdout] 7 | // We're going to exploit the property that, where a is negative, a % b == a mod b - b [INFO] [stdout] 8 | let rem_error = if a < 0 { b } else { 0 }; [INFO] [stdout] | ^ expected type parameter `T`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/bin/generic-numbers.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 6 | fn modulo(a: T, b: T) -> T { [INFO] [stdout] | - this type parameter [INFO] [stdout] 7 | // We're going to exploit the property that, where a is negative, a % b == a mod b - b [INFO] [stdout] 8 | let rem_error = if a < 0 { b } else { 0 }; [INFO] [stdout] | - ^ expected type parameter `T`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because of this [INFO] [stdout] | [INFO] [stdout] = note: expected type `T` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/generic-numbers.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 6 | fn modulo(a: T, b: T) -> T { [INFO] [stdout] | - this type parameter [INFO] [stdout] 7 | // We're going to exploit the property that, where a is negative, a % b == a mod b - b [INFO] [stdout] 8 | let rem_error = if a < 0 { b } else { 0 }; [INFO] [stdout] | ^ expected type parameter `T`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/bin/generic-numbers.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 6 | fn modulo(a: T, b: T) -> T { [INFO] [stdout] | - this type parameter [INFO] [stdout] 7 | // We're going to exploit the property that, where a is negative, a % b == a mod b - b [INFO] [stdout] 8 | let rem_error = if a < 0 { b } else { 0 }; [INFO] [stdout] | - ^ expected type parameter `T`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because of this [INFO] [stdout] | [INFO] [stdout] = note: expected type `T` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `_` to `::Output` [INFO] [stdout] --> src/bin/generic-numbers.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | a % b + rem_error [INFO] [stdout] | ----- ^ --------- _ [INFO] [stdout] | | [INFO] [stdout] | ::Output [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-exercises` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0369]: cannot add `_` to `::Output` [INFO] [stdout] --> src/bin/generic-numbers.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | a % b + rem_error [INFO] [stdout] | ----- ^ --------- _ [INFO] [stdout] | | [INFO] [stdout] | ::Output [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3c7515ceb02344357a91ca510275d2629f7d3572f6fd98be5312e5a2a3d1c023", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c7515ceb02344357a91ca510275d2629f7d3572f6fd98be5312e5a2a3d1c023", kill_on_drop: false }` [INFO] [stdout] 3c7515ceb02344357a91ca510275d2629f7d3572f6fd98be5312e5a2a3d1c023