[INFO] cloning 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" "clone" "--bare" "https://github.com/louisch/euler-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flouisch%2Feuler-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flouisch%2Feuler-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae1cdc3974bba5f22cbc1026f8bc9ec0ffb2bab2 [INFO] checking louisch/euler-rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flouisch%2Feuler-rust" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/louisch/euler-rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e682d2411638536f071d8d8008af3911132b4a75233e50438ae5669c5394435b [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" "e682d2411638536f071d8d8008af3911132b4a75233e50438ae5669c5394435b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e682d2411638536f071d8d8008af3911132b4a75233e50438ae5669c5394435b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e682d2411638536f071d8d8008af3911132b4a75233e50438ae5669c5394435b", kill_on_drop: false }` [INFO] [stdout] e682d2411638536f071d8d8008af3911132b4a75233e50438ae5669c5394435b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a20496ef44048d6034c13b0af3c65280a0ebe3908c016e481742add698b684e [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" "4a20496ef44048d6034c13b0af3c65280a0ebe3908c016e481742add698b684e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking unicode-segmentation v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking num v0.4.0 [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) -> Vec {primes} defined here [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn primes_below(n: u64) -> Vec { [INFO] [stdout] | -------- expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 63 | primes [INFO] [stdout] | ^^^^^^ expected struct `Vec`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found fn item `fn(u64) -> Vec {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) -> Vec {primes} defined here [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn primes_below(n: u64) -> Vec { [INFO] [stdout] | -------- expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 63 | primes [INFO] [stdout] | ^^^^^^ expected struct `Vec`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found fn item `fn(u64) -> Vec {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] [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4a20496ef44048d6034c13b0af3c65280a0ebe3908c016e481742add698b684e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a20496ef44048d6034c13b0af3c65280a0ebe3908c016e481742add698b684e", kill_on_drop: false }` [INFO] [stdout] 4a20496ef44048d6034c13b0af3c65280a0ebe3908c016e481742add698b684e