[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsogapalag%2FProblems_Rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sogapalag/Problems_Rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-10/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-10/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14dd410604bc1d056b7aa416acc3135e33554fc9992e5d693788507b6bb4da59 [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" "14dd410604bc1d056b7aa416acc3135e33554fc9992e5d693788507b6bb4da59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14dd410604bc1d056b7aa416acc3135e33554fc9992e5d693788507b6bb4da59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14dd410604bc1d056b7aa416acc3135e33554fc9992e5d693788507b6bb4da59", kill_on_drop: false }` [INFO] [stdout] 14dd410604bc1d056b7aa416acc3135e33554fc9992e5d693788507b6bb4da59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8687e8c659699a815b866d20f2bfedecba2d68a63dca2ac9c6a9279ce8478c6e [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" "8687e8c659699a815b866d20f2bfedecba2d68a63dca2ac9c6a9279ce8478c6e", 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-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking primal-bit v0.2.4 [INFO] [stderr] Checking smallvec v0.6.14 [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] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018b2.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018c1.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/ks_2018b2.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/bin/ks_2018b2.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/ks_2018c1.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018c1.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/ks_2018c1.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `mem`, `ptr` [INFO] [stdout] --> src/bin/ks_2018c1.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | use std::{mem, ptr}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vi32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type vi32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vi32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vi64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:46:6 [INFO] [stdout] | [INFO] [stdout] 46 | type vi64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vi64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vu32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | type vu32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vu32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vu64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | type vu64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vu64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vusz` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | type vusz = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vusz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vf32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | type vf32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vf32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vf64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | type vf64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vf64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `mem`, `ptr` [INFO] [stdout] --> src/bin/ks_2018c1.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | use std::{mem, ptr}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vi32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type vi32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vi32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vi64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:46:6 [INFO] [stdout] | [INFO] [stdout] 46 | type vi64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vi64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vu32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | type vu32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vu32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vu64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | type vu64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vu64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vusz` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | type vusz = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vusz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vf32` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | type vf32 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vf32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vf64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | type vf64 = Vec; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vf64` [INFO] [stdout] [INFO] [stdout] [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: constant `n` should have an upper case name [INFO] [stdout] --> src/bin/pe_260.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | const n: usize = 1000; [INFO] [stdout] | ^ help: convert the identifier to upper case: `N` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/bin/ks_2018a1.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | 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 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: 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: `Primes` [INFO] [stdout] --> src/bin/pe_012.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use primal::{Primes, Sieve}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check` [INFO] [stdout] --> src/bin/pe_044.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn check(p: u64) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `P` [INFO] [stdout] --> src/bin/pe_044.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn P(n: u64) -> u64 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `P` should have a snake case name [INFO] [stdout] --> src/bin/pe_044.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn P(n: u64) -> u64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018c1.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut v: 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: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018c1.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut v: 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: type alias is never used: `vi32` [INFO] [stdout] --> src/bin/ks_2018c1.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | type vi32 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a1.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | fn compute(N: &String) -> u64 { [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vi32` [INFO] [stdout] --> src/bin/ks_2018c1.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | type vi32 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vi64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | type vi64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vu64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | type vu64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vf32` [INFO] [stdout] --> src/bin/ks_2018c1.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | type vf32 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vf64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | type vf64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vi64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | type vi64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vu64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | type vu64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vf32` [INFO] [stdout] --> src/bin/ks_2018c1.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | type vf32 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `vf64` [INFO] [stdout] --> src/bin/ks_2018c1.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | type vf64 = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018c1.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SUB` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a1.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let SUB = n - down.parse::().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ADD` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a1.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let ADD = up.parse::().unwrap() - n; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a1.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let N = read!(String); [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018a1.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018b2.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut v: 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: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018b2.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut abc: Vec<_>; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018b2.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] error[E0601]: `main` function not found in crate `pe_027` [INFO] [stdout] --> src/bin/pe_027.rs:3:71 [INFO] [stdout] | [INFO] [stdout] 3 | // then with next 2primes, forms conditions. then verify. the length. [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/pe_027.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `vuu` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | type vuu = Vec<[u32; 2]>; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Vuu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/ks_2018b3.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/ks_2018b3.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v2u64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018b3.rs:46:6 [INFO] [stdout] | [INFO] [stdout] 46 | type v2u64 = Vec<_2u64>; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `V2u64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v4u64` should have an upper camel case name [INFO] [stdout] --> src/bin/ks_2018b3.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | type v4u64 = Vec<_4u64>; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `V4u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/bin/ks_2018b3.rs:167:14 [INFO] [stdout] | [INFO] [stdout] 167 | 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: crate `Problems_Rust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `problems_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut v: 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: 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018b3.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let mut v: 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: variable does not need to be mutable [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut abc: Vec<_>; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `L` [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | const L: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018b3.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let I = loop { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018b3.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let I = loop { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018b3.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/bin/pe_024.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let h = (1..10).fold(1, |acc, i| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/pe_024.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut T = 1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `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 `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] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/pe_005.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] 2 | // since 2520/16 = *.5 [INFO] [stdout] 3 | 2520 * 11 * 13 * 17 * 19 * 2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/pe_005.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] 2 | // since 2520/16 = *.5 [INFO] [stdout] 3 | 2520 * 11 * 13 * 17 * 19 * 2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: static variable `dp` should have an upper case name [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static mut dp: &'static mut [[u64; (1u32 << 16) as usize]; 101] = [INFO] [stdout] | ^^ help: convert the identifier to upper case: `DP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `ok` should have an upper case name [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | static mut ok: &'static mut [[bool; (1u32 << 16) as usize]; 101] = [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `OK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ks_2018b2_unsafe.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let T = read!(usize); [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8687e8c659699a815b866d20f2bfedecba2d68a63dca2ac9c6a9279ce8478c6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8687e8c659699a815b866d20f2bfedecba2d68a63dca2ac9c6a9279ce8478c6e", kill_on_drop: false }` [INFO] [stdout] 8687e8c659699a815b866d20f2bfedecba2d68a63dca2ac9c6a9279ce8478c6e