[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 against 011c518242557d21690f7936b5812318dc2fec47 for pr-159877
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrienthebo%2Feuler-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[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-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/adrienthebo/euler-rs on toolchain 011c518242557d21690f7936b5812318dc2fec47
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+011c518242557d21690f7936b5812318dc2fec47" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `euler` (manifest) generated 1 warning
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1fa6594d87c8fa7b311925a7a77a16f539833322d9dfba4ce891f211db2f90b1" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564
[INFO] running `Command { std: "docker" "start" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564" "/opt/rustwide/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564" "/opt/rustwide/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `euler` (manifest) generated 1 warning
[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-rational v0.2.4
[INFO] [stderr]    Compiling num-iter v0.1.42
[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[E0599]: the method `fold` exists for struct `std::ops::RangeInclusive<BigInt>`, 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 `std::ops::RangeInclusive<BigInt>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/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 `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             which is required by `&mut std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: the method `fold` exists for struct `std::ops::RangeInclusive<BigInt>`, 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 `std::ops::RangeInclusive<BigInt>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/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 `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             which is required by `&mut std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout] 
[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: the type must implement `From<BigInt>`
[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!(delta().into(), 25164150.to_bigint().unwrap());
[INFO] [stdout] 29 +         assert_eq!(<BigInt as Into<T>>::into(delta()), 25164150.to_bigint().unwrap());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[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[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] 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 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: the method `fold` exists for struct `std::ops::RangeInclusive<BigInt>`, 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 `std::ops::RangeInclusive<BigInt>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/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 `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             which is required by `&mut std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: the method `fold` exists for struct `std::ops::RangeInclusive<BigInt>`, 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 `std::ops::RangeInclusive<BigInt>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/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 `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             `std::ops::RangeInclusive<BigInt>: Iterator`
[INFO] [stdout]             which is required by `&mut std::ops::RangeInclusive<BigInt>: 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] 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] [stderr] error: could not compile `euler` (bin "p6") due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564", kill_on_drop: false }`
[INFO] [stdout] d783b009ee5b6ac9c48a2ba32018744e46c6ce7ae1abebbd8a1cfdceeab3e564
