[INFO] cloning repository https://github.com/llasram/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/llasram/euler-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fllasram%2Feuler-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fllasram%2Feuler-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76aec17af7a3e6ecc99f06dbd9f6c7ae8cc9329f [INFO] checking llasram/euler-rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fllasram%2Feuler-rust" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/llasram/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/llasram/euler-rust [INFO] finished tweaking git repo https://github.com/llasram/euler-rust [INFO] tweaked toml for git repo https://github.com/llasram/euler-rust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/llasram/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-4/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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] a455dd7d1712111403085e28a56360f1c3735cba602f6e5e6dd8e479a2ffff5d [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" "a455dd7d1712111403085e28a56360f1c3735cba602f6e5e6dd8e479a2ffff5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a455dd7d1712111403085e28a56360f1c3735cba602f6e5e6dd8e479a2ffff5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a455dd7d1712111403085e28a56360f1c3735cba602f6e5e6dd8e479a2ffff5d", kill_on_drop: false }` [INFO] [stdout] a455dd7d1712111403085e28a56360f1c3735cba602f6e5e6dd8e479a2ffff5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] 45419fe313587fe136fcfd26822998c71f3c3ada5d43e8bb185c8c49dd8a505c [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" "45419fe313587fe136fcfd26822998c71f3c3ada5d43e8bb185c8c49dd8a505c", kill_on_drop: false }` [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-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [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] warning: unknown lint: `unstable` [INFO] [stdout] --> src/primes.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/stutter.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let mut count = 1us; [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/early.rs:129:6 [INFO] [stdout] | [INFO] [stdout] 129 | (1us..).scan(0us, |prev, i| { [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/early.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 129 | (1us..).scan(0us, |prev, i| { [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e13.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e14.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/primes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::collections::RingBuf` [INFO] [stdout] --> src/early.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::RingBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `RingBuf` in `collections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::File`, `std::io::BufferedReader` [INFO] [stdout] --> src/early.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{File, BufferedReader}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::iter::iterate` [INFO] [stdout] --> src/early.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{iterate, repeat}; [INFO] [stdout] | ^^^^^^^ no `iterate` in `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/early.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/e11.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::BufferedReader`, `std::io::File` [INFO] [stdout] --> src/e13.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufferedReader,File}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ no `File` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/stutter.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Clone,Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/stutter.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | #[derive(Clone,Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/e11.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/e11.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `count` in module `iter` [INFO] [stdout] --> src/primes.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | let p1 = iter::count(p + 2, 2).find(|&i| { [INFO] [stdout] | ^^^^^ not found in `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/primes.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/stutter.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let mut count = 1us; [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/early.rs:129:6 [INFO] [stdout] | [INFO] [stdout] 129 | (1us..).scan(0us, |prev, i| { [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `us` for number literal [INFO] [stdout] --> src/early.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 129 | (1us..).scan(0us, |prev, i| { [INFO] [stdout] | ^^^ invalid suffix `us` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/early.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/early.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | let path = Path::new("data/e8.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/e11.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn load(ncols: usize, nrows: usize, path: &Path) -> Grid { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/e11.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | let path = Path::new("data/e11.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/e13.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | let path = Path::new("data/e13.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/early.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for i in (2..max) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/early.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / ((1..max).fold(0, |a, x| a + x).pow(2) [INFO] [stdout] 78 | | - (1..max).fold(0, |a, x| a + x.pow(2))) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 | (1..max).fold(0, |a, x| a + x).pow(2) [INFO] [stdout] 78 | - (1..max).fold(0, |a, x| a + x.pow(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/e11.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | (row < self.nrows && col < self.ncols) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/e11.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | for _ in (0..count) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e11.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e13.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/e14.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | #[allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/primes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::collections::RingBuf` [INFO] [stdout] --> src/early.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::RingBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `RingBuf` in `collections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::File`, `std::io::BufferedReader` [INFO] [stdout] --> src/early.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{File, BufferedReader}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::iter::iterate` [INFO] [stdout] --> src/early.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::{iterate, repeat}; [INFO] [stdout] | ^^^^^^^ no `iterate` in `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/early.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/e11.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::io::BufferedReader`, `std::io::File` [INFO] [stdout] --> src/e13.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufferedReader,File}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ no `File` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/stutter.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Clone,Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/stutter.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | #[derive(Clone,Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/e11.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/e11.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `count` in module `iter` [INFO] [stdout] --> src/primes.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | let p1 = iter::count(p + 2, 2).find(|&i| { [INFO] [stdout] | ^^^^^ not found in `iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/early.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | let path = Path::new("data/e8.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/e11.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn load(ncols: usize, nrows: usize, path: &Path) -> Grid { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/e11.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | let path = Path::new("data/e11.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/e13.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | let path = Path::new("data/e13.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/early.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for i in (2..max) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/early.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / ((1..max).fold(0, |a, x| a + x).pow(2) [INFO] [stdout] 78 | | - (1..max).fold(0, |a, x| a + x.pow(2))) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 | (1..max).fold(0, |a, x| a + x).pow(2) [INFO] [stdout] 78 | - (1..max).fold(0, |a, x| a + x.pow(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/e11.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | (row < self.nrows && col < self.ncols) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/e11.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | for _ in (0..count) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `GridPos: Clone` is not satisfied [INFO] [stdout] --> src/e11.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy)] [INFO] [stdout] | ^^^^ the trait `Clone` is not implemented for `GridPos` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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[E0277]: the trait bound `GridPos: Clone` is not satisfied [INFO] [stdout] --> src/e11.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy)] [INFO] [stdout] | ^^^^ the trait `Clone` is not implemented for `GridPos` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "45419fe313587fe136fcfd26822998c71f3c3ada5d43e8bb185c8c49dd8a505c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45419fe313587fe136fcfd26822998c71f3c3ada5d43e8bb185c8c49dd8a505c", kill_on_drop: false }` [INFO] [stdout] 45419fe313587fe136fcfd26822998c71f3c3ada5d43e8bb185c8c49dd8a505c