[INFO] cloning repository https://github.com/fgaray/project-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/fgaray/project-euler-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffgaray%2Fproject-euler-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffgaray%2Fproject-euler-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d61b820d5bdb1b22269fa9c173c836d3cca64bc5 [INFO] checking fgaray/project-euler-rust against master#068609ce766e55d2e7371cd2a86143a6d7e8e2e4 for pr-138952 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffgaray%2Fproject-euler-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fgaray/project-euler-rust on toolchain 068609ce766e55d2e7371cd2a86143a6d7e8e2e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fgaray/project-euler-rust [INFO] finished tweaking git repo https://github.com/fgaray/project-euler-rust [INFO] tweaked toml for git repo https://github.com/fgaray/project-euler-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fgaray/project-euler-rust 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" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57f01045c620661b9ea05c37b8612a756bd755beff99ab3589a604165a6958fe [INFO] running `Command { std: "docker" "start" "-a" "57f01045c620661b9ea05c37b8612a756bd755beff99ab3589a604165a6958fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57f01045c620661b9ea05c37b8612a756bd755beff99ab3589a604165a6958fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f01045c620661b9ea05c37b8612a756bd755beff99ab3589a604165a6958fe", kill_on_drop: false }` [INFO] [stdout] 57f01045c620661b9ea05c37b8612a756bd755beff99ab3589a604165a6958fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+068609ce766e55d2e7371cd2a86143a6d7e8e2e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3875b7453a5f5554d4895cdf0db7d7160a10e9e2c77a3d4ddd9ce436634946a1 [INFO] running `Command { std: "docker" "start" "-a" "3875b7453a5f5554d4895cdf0db7d7160a10e9e2c77a3d4ddd9ce436634946a1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking euler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/problem3/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/problem9/mod.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | for b in (1..1000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - for b in (1..1000) { [INFO] [stdout] 6 + for b in 1..1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/problem3/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/problem9/mod.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | for b in (1..1000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - for b in (1..1000) { [INFO] [stdout] 6 + for b in 1..1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/problem9/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | for c in (1..1000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 7 - for c in (1..1000) { [INFO] [stdout] 7 + for c in 1..1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/problem10/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/problem9/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | for c in (1..1000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 7 - for c in (1..1000) { [INFO] [stdout] 7 + for c in 1..1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/problem10/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem3/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | let mut v = prime.get_mem(); [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] warning: unused variable: `d1` [INFO] [stdout] --> src/problem4/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut d1 = 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/problem4/mod.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut d2 = 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem4/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut d1 = 1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem4/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut d2 = 1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem3/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | let mut v = prime.get_mem(); [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] warning: unused variable: `d1` [INFO] [stdout] --> src/problem4/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut d1 = 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/problem4/mod.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut d2 = 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem4/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut d1 = 1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem4/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut d2 = 1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/prime.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut v = Vec::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/prime.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut v = Vec::with_capacity(capacity); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/prime.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut v = Vec::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/prime.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut v = Vec::with_capacity(capacity); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem3/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem4/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve() -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem5/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem6/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve(upper: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem7/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem9/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve(constant: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mem` is never used [INFO] [stdout] --> src/utils/prime.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Prime { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_mem(&mut self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/utils/number.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn reverse(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem3/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem4/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve() -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem5/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem6/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve(upper: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem7/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve(n: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/problem9/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve(constant: i64) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mem` is never used [INFO] [stdout] --> src/utils/prime.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Prime { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_mem(&mut self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/utils/number.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn reverse(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "3875b7453a5f5554d4895cdf0db7d7160a10e9e2c77a3d4ddd9ce436634946a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3875b7453a5f5554d4895cdf0db7d7160a10e9e2c77a3d4ddd9ce436634946a1", kill_on_drop: false }` [INFO] [stdout] 3875b7453a5f5554d4895cdf0db7d7160a10e9e2c77a3d4ddd9ce436634946a1