[INFO] updating cached repository https://github.com/louisch/euler-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae1cdc3974bba5f22cbc1026f8bc9ec0ffb2bab2 [INFO] checking louisch/euler-rust against master#e1beee4992ad4b235fc700bf7af1ee86f894ea53 for pr-74130 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flouisch%2Feuler-rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/louisch/euler-rust on toolchain e1beee4992ad4b235fc700bf7af1ee86f894ea53 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/louisch/euler-rust [INFO] finished tweaking git repo https://github.com/louisch/euler-rust [INFO] tweaked toml for git repo https://github.com/louisch/euler-rust written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/louisch/euler-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-10/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88b84f6aa4fded6d887b33b7eb42a6b9807be7fdfb47af2aa3607e1185c41a41 [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" "88b84f6aa4fded6d887b33b7eb42a6b9807be7fdfb47af2aa3607e1185c41a41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88b84f6aa4fded6d887b33b7eb42a6b9807be7fdfb47af2aa3607e1185c41a41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88b84f6aa4fded6d887b33b7eb42a6b9807be7fdfb47af2aa3607e1185c41a41", kill_on_drop: false }` [INFO] [stdout] 88b84f6aa4fded6d887b33b7eb42a6b9807be7fdfb47af2aa3607e1185c41a41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+e1beee4992ad4b235fc700bf7af1ee86f894ea53" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aab13debb83a210430e7a294f5a0be8acc0e62cd5bd205d8290dd828e87466a0 [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" "aab13debb83a210430e7a294f5a0be8acc0e62cd5bd205d8290dd828e87466a0", kill_on_drop: false }` [INFO] [stderr] Checking unicode-segmentation v0.1.3 [INFO] [stderr] Checking euler-rust v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `repeat` in this scope [INFO] [stdout] --> src/math/primes.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | let mut is_prime = repeat(true).take(n as usize).collect::>(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::repeat; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::repeat; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `prime` in this scope [INFO] [stdout] --> src/math/primes.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | (prime, is_primes) [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `is_primes` in this scope [INFO] [stdout] --> src/math/primes.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | (prime, is_primes) [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/math/primes.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/prob1/solver.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn sequence(&self) -> Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/prob1/brute_force.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | fn sequence(&self) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `repeat` in this scope [INFO] [stdout] --> src/math/primes.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | let mut is_prime = repeat(true).take(n as usize).collect::>(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::repeat; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::repeat; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `prime` in this scope [INFO] [stdout] --> src/math/primes.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | (prime, is_primes) [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `is_primes` in this scope [INFO] [stdout] --> src/math/primes.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | (prime, is_primes) [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::repeat` [INFO] [stdout] --> src/math/primes.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | use std::iter::repeat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/prob1/solver.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn sequence(&self) -> Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/prob1/brute_force.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | fn sequence(&self) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math/primes.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn primes(n: u64) -> Vec { [INFO] [stdout] | --------------------------------- fn(u64) -> std::vec::Vec {math::primes::primes} defined here [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn primes_below(n: u64) -> Vec { [INFO] [stdout] | -------- expected `std::vec::Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 63 | primes [INFO] [stdout] | ^^^^^^ expected struct `std::vec::Vec`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::vec::Vec` [INFO] [stdout] found fn item `fn(u64) -> std::vec::Vec {math::primes::primes}` [INFO] [stdout] help: use parentheses to call this function [INFO] [stdout] | [INFO] [stdout] 63 | primes(n) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math/primes.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn primes(n: u64) -> Vec { [INFO] [stdout] | --------------------------------- fn(u64) -> std::vec::Vec {math::primes::primes} defined here [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn primes_below(n: u64) -> Vec { [INFO] [stdout] | -------- expected `std::vec::Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 63 | primes [INFO] [stdout] | ^^^^^^ expected struct `std::vec::Vec`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::vec::Vec` [INFO] [stdout] found fn item `fn(u64) -> std::vec::Vec {math::primes::primes}` [INFO] [stdout] help: use parentheses to call this function [INFO] [stdout] | [INFO] [stdout] 63 | primes(n) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `euler-rust`. [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: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [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" "aab13debb83a210430e7a294f5a0be8acc0e62cd5bd205d8290dd828e87466a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aab13debb83a210430e7a294f5a0be8acc0e62cd5bd205d8290dd828e87466a0", kill_on_drop: false }` [INFO] [stdout] aab13debb83a210430e7a294f5a0be8acc0e62cd5bd205d8290dd828e87466a0