[INFO] cloning repository https://github.com/sogapalag/Problems_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sogapalag/Problems_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsogapalag%2FProblems_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsogapalag%2FProblems_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c22bcbd6f76a287581cc261ab73b53ce01fc3aca [INFO] checking sogapalag/Problems_Rust against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsogapalag%2FProblems_Rust" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sogapalag/Problems_Rust on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-12/source/Cargo.toml [INFO] crate git repo https://github.com/sogapalag/Problems_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-12/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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57b06a4925e311a32480b1ba47ea488c280d012d3a2afbef1b8a1638af0c0c2d [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" "57b06a4925e311a32480b1ba47ea488c280d012d3a2afbef1b8a1638af0c0c2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57b06a4925e311a32480b1ba47ea488c280d012d3a2afbef1b8a1638af0c0c2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57b06a4925e311a32480b1ba47ea488c280d012d3a2afbef1b8a1638af0c0c2d", kill_on_drop: false }` [INFO] [stdout] 57b06a4925e311a32480b1ba47ea488c280d012d3a2afbef1b8a1638af0c0c2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8c814bb2101636ad67afd56f1c1ed67a6439b1ebebf6bf175b27ac7e1d0fb6c [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" "d8c814bb2101636ad67afd56f1c1ed67a6439b1ebebf6bf175b27ac7e1d0fb6c", kill_on_drop: false }` [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking hamming v0.1.3 [INFO] [stderr] Checking primal-estimate v0.2.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking primal-bit v0.2.4 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking primal-sieve v0.2.9 [INFO] [stderr] Checking primal-check v0.2.3 [INFO] [stderr] Checking chrono v0.4.19 [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] [stdout] error: expected item after doc comment [INFO] [stdout] --> src/bin/pe_009.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 1 | / /// note c = 500 -ab/1000 [INFO] [stdout] 2 | | /// => a+b = 500 + ab/1000 [INFO] [stdout] 3 | | /// simple a/5, b=200, [INFO] [stdout] 4 | | /// => 4a/5 = 300 => a = 375 [INFO] [stdout] 5 | | /// thus [INFO] [stdout] | |_________- other attributes here [INFO] [stdout] 6 | /// abc = 375*200*425 = 31875000 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment doesn't document anything [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [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] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/pe_030.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | sp += pow((x % 10), 5); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/pe_030.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let N: usize = 360_000; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/bin/pe_036.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018a2.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use std::cmp; [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/bin/ks_2018a2.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | for t in (1..T + 1) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lim` [INFO] [stdout] --> src/bin/pe_025.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let lim = log2_10 * 999f64; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lim` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Pb` should have a snake case name [INFO] [stdout] --> src/bin/pe_232.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut Pb = vec![vec![0f64; 101]; 101]; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Pa_start` should have a snake case name [INFO] [stdout] --> src/bin/pe_232.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let Pa_start = 0.5 * ((1.0 - Pb[99][100]) + (1.0 - Pb[100][100])); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `pa_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sundays_in_Jans` [INFO] [stdout] --> src/bin/pe_019.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn sundays_in_Jans(start_yr: i32, end_yr: i32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sundays_in_Jans` should have a snake case name [INFO] [stdout] --> src/bin/pe_019.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn sundays_in_Jans(start_yr: i32, end_yr: i32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sundays_in_jans` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018a2.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut nk: Vec<_>; [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | fn compute(N: usize, K: usize, v: &Vec) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ev` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let Ev = rsum[0] / n; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let N = nk[0]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let K = nk[1]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a2.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/bin/cf_553.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Primes` [INFO] [stdout] --> src/bin/pe_021.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use primal::{Primes, Sieve}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LIMIT` should have a snake case name [INFO] [stdout] --> src/bin/pe_021.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | fn solve(LIMIT: usize) -> usize { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `limit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/cf_553.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | stdin.read_line(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/cf_553.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | stdin.read_line(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d8c814bb2101636ad67afd56f1c1ed67a6439b1ebebf6bf175b27ac7e1d0fb6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8c814bb2101636ad67afd56f1c1ed67a6439b1ebebf6bf175b27ac7e1d0fb6c", kill_on_drop: false }` [INFO] [stdout] d8c814bb2101636ad67afd56f1c1ed67a6439b1ebebf6bf175b27ac7e1d0fb6c