[INFO] cloning repository https://github.com/TrueDoughnut/ProjectEuler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TrueDoughnut/ProjectEuler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrueDoughnut%2FProjectEuler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrueDoughnut%2FProjectEuler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8152c9f02c8a7494a10c82b0c067668de42c4dc [INFO] checking TrueDoughnut/ProjectEuler/c8152c9f02c8a7494a10c82b0c067668de42c4dc against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrueDoughnut%2FProjectEuler" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TrueDoughnut/ProjectEuler 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/TrueDoughnut/ProjectEuler [INFO] finished tweaking git repo https://github.com/TrueDoughnut/ProjectEuler [INFO] tweaked toml for git repo https://github.com/TrueDoughnut/ProjectEuler written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TrueDoughnut/ProjectEuler 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] 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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-bigint v0.2.1 [INFO] [stderr] Downloaded num-integer v0.1.39 [INFO] [stderr] Downloaded num-traits v0.2.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 05fbacf47603b70bb440fa3f7667ce907516c2028b350a0b9a01953139a3c59f [INFO] running `Command { std: "docker" "start" "-a" "05fbacf47603b70bb440fa3f7667ce907516c2028b350a0b9a01953139a3c59f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05fbacf47603b70bb440fa3f7667ce907516c2028b350a0b9a01953139a3c59f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05fbacf47603b70bb440fa3f7667ce907516c2028b350a0b9a01953139a3c59f", kill_on_drop: false }` [INFO] [stdout] 05fbacf47603b70bb440fa3f7667ce907516c2028b350a0b9a01953139a3c59f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 42c2ce476a2173322ff84ba099b9bd17a42542667e8c29837bd56647a54153a1 [INFO] running `Command { std: "docker" "start" "-a" "42c2ce476a2173322ff84ba099b9bd17a42542667e8c29837bd56647a54153a1", 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.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling num-bigint v0.2.1 [INFO] [stderr] Checking ProjectEuler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/harder_problems/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: BigInt) -> Vec<&BigInt> { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: BigInt) -> Vec<&'static BigInt> { [INFO] [stdout] | +++++++ [INFO] [stdout] help: instead, you are more likely to want to change the argument to be borrowed... [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: &BigInt) -> Vec<&BigInt> { [INFO] [stdout] | + [INFO] [stdout] help: ...or alternatively, you might want to return an owned value [INFO] [stdout] | [INFO] [stdout] 20 - fn positive_integers(n: BigInt) -> Vec<&BigInt> { [INFO] [stdout] 20 + fn positive_integers(n: BigInt) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/harder_problems/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: BigInt) -> Vec<&BigInt> { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: BigInt) -> Vec<&'static BigInt> { [INFO] [stdout] | +++++++ [INFO] [stdout] help: instead, you are more likely to want to change the argument to be borrowed... [INFO] [stdout] | [INFO] [stdout] 20 | fn positive_integers(n: &BigInt) -> Vec<&BigInt> { [INFO] [stdout] | + [INFO] [stdout] help: ...or alternatively, you might want to return an owned value [INFO] [stdout] | [INFO] [stdout] 20 - fn positive_integers(n: BigInt) -> Vec<&BigInt> { [INFO] [stdout] 20 + fn positive_integers(n: BigInt) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0618]: expected function, found `BigInt` [INFO] [stdout] --> src/harder_problems/mod.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 10 | let mut sum: BigInt = Zero::zero(); [INFO] [stdout] | ------- `sum` has type `BigInt` [INFO] [stdout] ... [INFO] [stdout] 14 | sum += sum(positive_integers(num)); [INFO] [stdout] | ^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | call expression requires function [INFO] [stdout] ... [INFO] [stdout] 44 | fn sum(vec: Vec<&BigInt>) -> BigInt { [INFO] [stdout] | ----------------------------------- this function of the same name is available here, but it's shadowed by the local binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0618]: expected function, found `BigInt` [INFO] [stdout] --> src/harder_problems/mod.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 10 | let mut sum: BigInt = Zero::zero(); [INFO] [stdout] | ------- `sum` has type `BigInt` [INFO] [stdout] ... [INFO] [stdout] 14 | sum += sum(positive_integers(num)); [INFO] [stdout] | ^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | call expression requires function [INFO] [stdout] ... [INFO] [stdout] 44 | fn sum(vec: Vec<&BigInt>) -> BigInt { [INFO] [stdout] | ----------------------------------- this function of the same name is available here, but it's shadowed by the local binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/harder_problems/mod.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | while x != 0 { [INFO] [stdout] | - ^ expected `BigInt`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `BigInt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/harder_problems/mod.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | while x != 0 { [INFO] [stdout] | - ^ expected `BigInt`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `BigInt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `BigInt` in the current scope [INFO] [stdout] --> src/harder_problems/mod.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | match BigInt::from_str(&num) { [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `BigInt` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `BigInt` consider using one of the following associated functions: [INFO] [stdout] BigInt::new [INFO] [stdout] BigInt::from_biguint [INFO] [stdout] BigInt::from_slice [INFO] [stdout] BigInt::from_bytes_be [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.1/src/bigint.rs:2544:5 [INFO] [stdout] | [INFO] [stdout] 2544 | pub fn new(sign: Sign, digits: Vec) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2552 | pub fn from_biguint(mut sign: Sign, mut data: BigUint) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2567 | pub fn from_slice(sign: Sign, slice: &[u32]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2605 | pub fn from_bytes_be(sign: Sign, bytes: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 62 | match BigInt::from(&num) { [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `BigInt` in the current scope [INFO] [stdout] --> src/harder_problems/mod.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | match BigInt::from_str(&num) { [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `BigInt` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `BigInt` consider using one of the following associated functions: [INFO] [stdout] BigInt::new [INFO] [stdout] BigInt::from_biguint [INFO] [stdout] BigInt::from_slice [INFO] [stdout] BigInt::from_bytes_be [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.2.1/src/bigint.rs:2544:5 [INFO] [stdout] | [INFO] [stdout] 2544 | pub fn new(sign: Sign, digits: Vec) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2552 | pub fn from_biguint(mut sign: Sign, mut data: BigUint) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2567 | pub fn from_slice(sign: Sign, slice: &[u32]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2605 | pub fn from_bytes_be(sign: Sign, bytes: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 62 | match BigInt::from(&num) { [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/harder_problems/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut x: BigInt = One::one(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `x` [INFO] [stdout] --> src/harder_problems/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 26 | vec.push(&x); [INFO] [stdout] | -- `x` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 30 | return vec; [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/harder_problems/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut x: BigInt = One::one(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `x` [INFO] [stdout] --> src/harder_problems/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 26 | vec.push(&x); [INFO] [stdout] | -- `x` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 30 | return vec; [INFO] [stdout] | ^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0515, E0599, E0618. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0515, E0599, E0618. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ProjectEuler` (bin "ProjectEuler") due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ProjectEuler` (bin "ProjectEuler" test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "42c2ce476a2173322ff84ba099b9bd17a42542667e8c29837bd56647a54153a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42c2ce476a2173322ff84ba099b9bd17a42542667e8c29837bd56647a54153a1", kill_on_drop: false }` [INFO] [stdout] 42c2ce476a2173322ff84ba099b9bd17a42542667e8c29837bd56647a54153a1