[INFO] updating cached repository https://github.com/sogapalag/Problems_Rust [INFO] running `"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"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c22bcbd6f76a287581cc261ab73b53ce01fc3aca [INFO] checking sogapalag/Problems_Rust against master#3dbade652ed8ebac70f903e01f51cd92c4e4302c for pr-69741 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsogapalag%2FProblems_Rust" "/workspace/builds/worker-6/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sogapalag/Problems_Rust on toolchain 3dbade652ed8ebac70f903e01f51cd92c4e4302c [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/sogapalag/Problems_Rust [INFO] finished tweaking git repo https://github.com/sogapalag/Problems_Rust [INFO] tweaked toml for git repo https://github.com/sogapalag/Problems_Rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/sogapalag/Problems_Rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-6/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 `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "/opt/rustwide/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3f6ee8665f98ca460784938fecff7a79f5cf9760f6629357da18ad0d1b48489c [INFO] running `"docker" "start" "-a" "3f6ee8665f98ca460784938fecff7a79f5cf9760f6629357da18ad0d1b48489c"` [INFO] [stderr] Checking hamming v0.1.3 [INFO] [stderr] Checking primal-estimate v0.2.1 [INFO] [stderr] Checking num-bigint v0.2.6 [INFO] [stderr] Checking primal-check v0.2.3 [INFO] [stderr] Checking primal-bit v0.2.4 [INFO] [stderr] Checking primal-sieve v0.2.9 [INFO] [stderr] Checking num-rational v0.2.3 [INFO] [stderr] Checking primal v0.2.3 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking Problems_Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `std::cmp` [INFO] [stderr] --> src/bin/ks_2018a2.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | use std::cmp; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/bin/ks_2018a2.rs:79:14 [INFO] [stderr] | [INFO] [stderr] 79 | for t in (1..T + 1) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ks_2018a2.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | let mut nk: Vec<_>; [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `N` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stderr] | ^ help: convert the identifier to snake case: `n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `K` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:44:22 [INFO] [stderr] | [INFO] [stderr] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stderr] [INFO] [stderr] warning: variable `Ev` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let Ev = rsum[0] / n; [INFO] [stderr] | ^^ help: convert the identifier to snake case: `ev` [INFO] [stderr] [INFO] [stderr] warning: variable `N` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:66:9 [INFO] [stderr] | [INFO] [stderr] 66 | let N = nk[0]; [INFO] [stderr] | ^ help: convert the identifier to snake case: `n` [INFO] [stderr] [INFO] [stderr] warning: variable `K` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | let K = nk[1]; [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | let T = read!(usize); [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `pe_026` [INFO] [stderr] --> src/bin/pe_026.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | // O(n^2) [INFO] [stderr] | ^ consider adding a `main` function to `src/bin/pe_026.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0601`. [INFO] [stderr] error: could not compile `Problems_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] warning: unused import: `std::cmp` [INFO] [stderr] --> src/bin/ks_2018b2.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | use std::cmp; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `check` [INFO] [stderr] --> src/bin/pe_044.rs:31:4 [INFO] [stderr] | [INFO] [stderr] 31 | fn check(p: u64) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `P` [INFO] [stderr] --> src/bin/pe_044.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn P(n: u64) -> u64 { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HashMap`, `HashSet` [INFO] [stderr] --> src/bin/ks_2018b2.rs:46:24 [INFO] [stderr] | [INFO] [stderr] 46 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/bin/ks_2018b2.rs:47:17 [INFO] [stderr] | [INFO] [stderr] 47 | use std::time::{Duration, Instant}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `P` should have a snake case name [INFO] [stderr] --> src/bin/pe_044.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn P(n: u64) -> u64 { [INFO] [stderr] | ^ help: convert the identifier to snake case: `p` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/bin/pe_030.rs:23:19 [INFO] [stderr] | [INFO] [stderr] 23 | sp += pow((x % 10), 5); [INFO] [stderr] | ^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `N` should have a snake case name [INFO] [stderr] --> src/bin/pe_030.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | let N: usize = 360_000; [INFO] [stderr] | ^ help: convert the identifier to snake case: `n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cmp` [INFO] [stderr] --> src/bin/ks_2018a2.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | use std::cmp; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/bin/ks_2018a2.rs:79:14 [INFO] [stderr] | [INFO] [stderr] 79 | for t in (1..T + 1) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cmp` [INFO] [stderr] --> src/bin/ks_2018b1.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | use std::cmp; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HashMap`, `HashSet` [INFO] [stderr] --> src/bin/ks_2018b1.rs:41:24 [INFO] [stderr] | [INFO] [stderr] 41 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/bin/ks_2018b1.rs:90:14 [INFO] [stderr] | [INFO] [stderr] 90 | for t in (1..T + 1) { [INFO] [stderr] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/bin/pe_067.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::{self, BufReader}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ks_2018b2.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | let mut v: Vec<_>; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `L` should have a snake case name [INFO] [stderr] --> src/bin/pe_034.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let L = 3_000_000; [INFO] [stderr] | ^ help: convert the identifier to snake case: `l` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ks_2018b2.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 58 | let mut abc: Vec<_>; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018b2.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 101 | let T = read!(usize); [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ks_2018a2.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | let mut nk: Vec<_>; [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `N` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stderr] | ^ help: convert the identifier to snake case: `n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `K` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:44:22 [INFO] [stderr] | [INFO] [stderr] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stderr] [INFO] [stderr] warning: variable `Ev` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let Ev = rsum[0] / n; [INFO] [stderr] | ^^ help: convert the identifier to snake case: `ev` [INFO] [stderr] [INFO] [stderr] warning: variable `N` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:66:9 [INFO] [stderr] | [INFO] [stderr] 66 | let N = nk[0]; [INFO] [stderr] | ^ help: convert the identifier to snake case: `n` [INFO] [stderr] [INFO] [stderr] warning: variable `K` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | let K = nk[1]; [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018a2.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | let T = read!(usize); [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ks_2018b1.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | let mut fl: Vec<_>; [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ks_2018b1.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | let T = read!(usize); [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Primes` [INFO] [stderr] --> src/bin/pe_012.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use primal::{Primes, Sieve}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Primes` [INFO] [stderr] --> src/bin/pe_012.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use primal::{Primes, Sieve}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "3f6ee8665f98ca460784938fecff7a79f5cf9760f6629357da18ad0d1b48489c"` [INFO] running `"docker" "rm" "-f" "3f6ee8665f98ca460784938fecff7a79f5cf9760f6629357da18ad0d1b48489c"` [INFO] [stdout] 3f6ee8665f98ca460784938fecff7a79f5cf9760f6629357da18ad0d1b48489c