[INFO] cloning repository https://github.com/adrienthebo/euler-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adrienthebo/euler-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrienthebo%2Feuler-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrienthebo%2Feuler-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 880ccdb99b25714ab0da19db73c9f843bbf9859c [INFO] checking adrienthebo/euler-rs/880ccdb99b25714ab0da19db73c9f843bbf9859c against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrienthebo%2Feuler-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adrienthebo/euler-rs on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adrienthebo/euler-rs [INFO] finished tweaking git repo https://github.com/adrienthebo/euler-rs [INFO] tweaked toml for git repo https://github.com/adrienthebo/euler-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/adrienthebo/euler-rs 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded primes v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1860c5708f304cb43eda357cd6170b983d731aab76b9e29a007915a138c3e904 [INFO] running `Command { std: "docker" "start" "-a" "1860c5708f304cb43eda357cd6170b983d731aab76b9e29a007915a138c3e904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1860c5708f304cb43eda357cd6170b983d731aab76b9e29a007915a138c3e904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1860c5708f304cb43eda357cd6170b983d731aab76b9e29a007915a138c3e904", kill_on_drop: false }` [INFO] [stdout] 1860c5708f304cb43eda357cd6170b983d731aab76b9e29a007915a138c3e904 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2b795573d562a3ceeb43bc3f6987ccf1d97bf9753e33de2527ea985b81f3b6c [INFO] running `Command { std: "docker" "start" "-a" "b2b795573d562a3ceeb43bc3f6987ccf1d97bf9753e33de2527ea985b81f3b6c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking primes v0.2.3 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking euler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `p6` [INFO] [stdout] --> src/bin/p6.rs:31:2 [INFO] [stdout] | [INFO] [stdout] 31 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/p6.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fold` exists for struct `RangeInclusive`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/p6.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | let n = (start..=stop).fold(Zero::zero(), |acc, n| acc + n); [INFO] [stdout] | ^^^^ method cannot be called on `RangeInclusive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.6/src/bigint.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct BigInt { [INFO] [stdout] | ----------------- doesn't satisfy `BigInt: Step` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `BigInt: Step` [INFO] [stdout] which is required by `RangeInclusive: Iterator` [INFO] [stdout] `RangeInclusive: Iterator` [INFO] [stdout] which is required by `&mut RangeInclusive: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fold` exists for struct `RangeInclusive`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/p6.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | let n = (start..=stop).fold(Zero::zero(), |acc, n| acc + n); [INFO] [stdout] | ^^^^ method cannot be called on `RangeInclusive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.6/src/bigint.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct BigInt { [INFO] [stdout] | ----------------- doesn't satisfy `BigInt: Step` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `BigInt: Step` [INFO] [stdout] which is required by `RangeInclusive: Iterator` [INFO] [stdout] `RangeInclusive: Iterator` [INFO] [stdout] which is required by `&mut RangeInclusive: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fold` exists for struct `RangeInclusive`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/p6.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | (start..=stop).fold(Zero::zero(), |acc, n| acc + n * n) [INFO] [stdout] | ^^^^ method cannot be called on `RangeInclusive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.6/src/bigint.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct BigInt { [INFO] [stdout] | ----------------- doesn't satisfy `BigInt: Step` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `BigInt: Step` [INFO] [stdout] which is required by `RangeInclusive: Iterator` [INFO] [stdout] `RangeInclusive: Iterator` [INFO] [stdout] which is required by `&mut RangeInclusive: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fold` exists for struct `RangeInclusive`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/p6.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | (start..=stop).fold(Zero::zero(), |acc, n| acc + n * n) [INFO] [stdout] | ^^^^ method cannot be called on `RangeInclusive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.6/src/bigint.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct BigInt { [INFO] [stdout] | ----------------- doesn't satisfy `BigInt: Step` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `BigInt: Step` [INFO] [stdout] which is required by `RangeInclusive: Iterator` [INFO] [stdout] `RangeInclusive: Iterator` [INFO] [stdout] which is required by `&mut RangeInclusive: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/bin/p6.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 18 | let start = 1_u32.to_bigint().unwrap(); [INFO] [stdout] | ----- move occurs because `start` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] 19 | let stop = 100_u32.to_bigint().unwrap(); [INFO] [stdout] 20 | sum_sq(start, stop) - sq_sum(start, stop) [INFO] [stdout] | ----- ^^^^^ value used here after move [INFO] [stdout] | | [INFO] [stdout] | value moved here [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `sum_sq` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/bin/p6.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | fn sum_sq(start: BigInt, stop: BigInt) -> BigInt { [INFO] [stdout] | ------ ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 20 | sum_sq(start.clone(), stop) - sq_sum(start, stop) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `stop` [INFO] [stdout] --> src/bin/p6.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 19 | let stop = 100_u32.to_bigint().unwrap(); [INFO] [stdout] | ---- move occurs because `stop` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] 20 | sum_sq(start, stop) - sq_sum(start, stop) [INFO] [stdout] | ---- value moved here ^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `sum_sq` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/bin/p6.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | fn sum_sq(start: BigInt, stop: BigInt) -> BigInt { [INFO] [stdout] | ------ in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 20 | sum_sq(start, stop.clone()) - sq_sum(start, stop) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0599, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/p6.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(delta().into(), 25164150.to_bigint().unwrap()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: From` [INFO] [stdout] = note: required for `BigInt` to implement `Into<_>` [INFO] [stdout] help: try using a fully qualified path to specify the expected types [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(>::into(delta()), 25164150.to_bigint().unwrap()); [INFO] [stdout] | ++++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `euler` (bin "p6") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/bin/p6.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 18 | let start = 1_u32.to_bigint().unwrap(); [INFO] [stdout] | ----- move occurs because `start` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] 19 | let stop = 100_u32.to_bigint().unwrap(); [INFO] [stdout] 20 | sum_sq(start, stop) - sq_sum(start, stop) [INFO] [stdout] | ----- ^^^^^ value used here after move [INFO] [stdout] | | [INFO] [stdout] | value moved here [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `sum_sq` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/bin/p6.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | fn sum_sq(start: BigInt, stop: BigInt) -> BigInt { [INFO] [stdout] | ------ ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 20 | sum_sq(start.clone(), stop) - sq_sum(start, stop) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `stop` [INFO] [stdout] --> src/bin/p6.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 19 | let stop = 100_u32.to_bigint().unwrap(); [INFO] [stdout] | ---- move occurs because `stop` has type `BigInt`, which does not implement the `Copy` trait [INFO] [stdout] 20 | sum_sq(start, stop) - sq_sum(start, stop) [INFO] [stdout] | ---- value moved here ^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `sum_sq` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/bin/p6.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | fn sum_sq(start: BigInt, stop: BigInt) -> BigInt { [INFO] [stdout] | ------ in this function ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 20 | sum_sq(start, stop.clone()) - sq_sum(start, stop) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0382, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `euler` (bin "p6" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "b2b795573d562a3ceeb43bc3f6987ccf1d97bf9753e33de2527ea985b81f3b6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2b795573d562a3ceeb43bc3f6987ccf1d97bf9753e33de2527ea985b81f3b6c", kill_on_drop: false }` [INFO] [stdout] b2b795573d562a3ceeb43bc3f6987ccf1d97bf9753e33de2527ea985b81f3b6c