[INFO] cloning repository https://github.com/zhaoyiping0622/ProjectEuler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhaoyiping0622/ProjectEuler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhaoyiping0622%2FProjectEuler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhaoyiping0622%2FProjectEuler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cae527f2b28672fed2fdcd8ba3ff3d87f232025d [INFO] building zhaoyiping0622/ProjectEuler against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhaoyiping0622%2FProjectEuler" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhaoyiping0622/ProjectEuler on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zhaoyiping0622/ProjectEuler [INFO] finished tweaking git repo https://github.com/zhaoyiping0622/ProjectEuler [INFO] tweaked toml for git repo https://github.com/zhaoyiping0622/ProjectEuler written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zhaoyiping0622/ProjectEuler 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--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] Downloading crates ... [INFO] [stderr] Downloaded permutate v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8d3ed61629a60c013671588fc7b9a19793e39874ac0ff40f4b5536dc50ba76f [INFO] running `Command { std: "docker" "start" "-a" "e8d3ed61629a60c013671588fc7b9a19793e39874ac0ff40f4b5536dc50ba76f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8d3ed61629a60c013671588fc7b9a19793e39874ac0ff40f4b5536dc50ba76f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d3ed61629a60c013671588fc7b9a19793e39874ac0ff40f4b5536dc50ba76f", kill_on_drop: false }` [INFO] [stdout] e8d3ed61629a60c013671588fc7b9a19793e39874ac0ff40f4b5536dc50ba76f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b7b89c9971ff67a48ab2dc2346ae52e9bdd9bc3469400e0a957db046973d680 [INFO] running `Command { std: "docker" "start" "-a" "1b7b89c9971ff67a48ab2dc2346ae52e9bdd9bc3469400e0a957db046973d680", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling either v1.6.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling permutate v0.3.2 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling fraction v0.10.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling ProjectEuler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: crate `ProjectEuler` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `project_euler` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `NumberTheory` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod NumberTheory; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `number_theory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/problem11.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | for k in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/bin/problem11.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | let judge = |x: usize, y: usize| x >= 0 && x < input.len() && y >= 0 && y < input[x].len(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/bin/problem11.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | let judge = |x: usize, y: usize| x >= 0 && x < input.len() && y >= 0 && y < input[x].len(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/problem51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `powMod` should have a snake case name [INFO] [stdout] --> src/bin/problem48.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn powMod(a: u128, b: u128) -> u128 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pow_mod` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem41.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isPrime(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` is never used [INFO] [stdout] --> src/bin/problem19.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `beginDay` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `begin_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `beginDay` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut beginDay = 2; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `begin_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `normalDays` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let normalDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `normal_days` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leapDays` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let leapDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `leap_days` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin/problem51.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | .filter(|&(index, &x)| x == 10) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/problem51.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|(index, x)| index) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNumber` is never used [INFO] [stdout] --> src/bin/problem51.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn getVecOfNumber(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNumber` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn getNumber(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNumber` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn getVecOfNumber(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_vec_of_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | fn dfs(deep: i32, nums: &mut Vec, isPrime: &Vec, head: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initNum` should have a snake case name [INFO] [stdout] --> src/bin/problem8.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let initNum = b"731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `init_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initNum` should have a snake case name [INFO] [stdout] --> src/bin/problem8.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let initNum: Vec = initNum [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `init_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrimes` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let isPrimes = { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/problem32.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut c = nums.iter().skip(j + 1).map(|&x| x).collect(); [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 `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem10.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn getCount(a: i32, b: i32, isPrime: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn getCount(a: i32, b: i32, isPrime: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newCount` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let newCount = getCount(i, j, &isPrime); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/problem28.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqrt` [INFO] [stdout] --> src/bin/problem23.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use num::integer::{sqrt, Roots}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isAbundant` should have a snake case name [INFO] [stdout] --> src/bin/problem23.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isAbundant(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_abundant` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem37.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | fn judge(num: i32, isPrime: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem37.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem46.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `canWrite` should have a snake case name [INFO] [stdout] --> src/bin/problem46.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut canWrite = [false; LIMIT]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `can_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem50.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut isPrime = vec![false; 1000_000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getRank` should have a snake case name [INFO] [stdout] --> src/bin/problem54.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getRank(hand: &Hand) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_rank` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVec` should have a snake case name [INFO] [stdout] --> src/bin/problem54.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn getVec(hand: &Hand) -> Vec { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorCount` should have a snake case name [INFO] [stdout] --> src/bin/problem47.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn factorCount(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `factor_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem3.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut isPrime = [true; 100_0000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::Pow` [INFO] [stdout] --> src/bin/problem30.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num::traits::Pow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem30.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn getNum(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn getNum(nums: &LinkedList) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | fn judge(num: i32, isPrime: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem49.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut isPrime = vec![false; 10_000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nowSum` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nowSum: i32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `now_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem7.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut isPrime = [true; 100_0000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toSearch` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | toSearch: &Vec, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `to_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpSum` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let tmpSum = nowSum + primes[toSearch[i]]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tmp_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nValues` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut nValues = values.clone(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem34.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn getNum(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem43.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn getNum(nums: &[i32]) -> u64 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNum` should have a snake case name [INFO] [stdout] --> src/bin/problem52.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getVecOfNum(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_vec_of_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isPentagonal` should have a snake case name [INFO] [stdout] --> src/bin/problem44.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isPentagonal(x: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_pentagonal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nValues` should have a snake case name [INFO] [stdout] --> src/bin/problem61.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let mut nValues = values.clone(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getLen` should have a snake case name [INFO] [stdout] --> src/bin/problem26.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn getLen(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.65s [INFO] running `Command { std: "docker" "inspect" "1b7b89c9971ff67a48ab2dc2346ae52e9bdd9bc3469400e0a957db046973d680", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b7b89c9971ff67a48ab2dc2346ae52e9bdd9bc3469400e0a957db046973d680", kill_on_drop: false }` [INFO] [stdout] 1b7b89c9971ff67a48ab2dc2346ae52e9bdd9bc3469400e0a957db046973d680 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c013abbc1c653234ce715bb6fe4acf358e59b792c6d4a62140c6672759d5085e [INFO] running `Command { std: "docker" "start" "-a" "c013abbc1c653234ce715bb6fe4acf358e59b792c6d4a62140c6672759d5085e", kill_on_drop: false }` [INFO] [stdout] warning: crate `ProjectEuler` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `project_euler` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ProjectEuler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: module `NumberTheory` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod NumberTheory; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `number_theory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem49.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut isPrime = vec![false; 10_000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `NumberTheory` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod NumberTheory; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `number_theory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `powMod` should have a snake case name [INFO] [stdout] --> src/bin/problem48.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn powMod(a: u128, b: u128) -> u128 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pow_mod` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorCount` should have a snake case name [INFO] [stdout] --> src/bin/problem47.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn factorCount(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `factor_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/problem11.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | for k in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/bin/problem11.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | let judge = |x: usize, y: usize| x >= 0 && x < input.len() && y >= 0 && y < input[x].len(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/bin/problem11.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | let judge = |x: usize, y: usize| x >= 0 && x < input.len() && y >= 0 && y < input[x].len(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem41.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isPrime(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn getCount(a: i32, b: i32, isPrime: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn getCount(a: i32, b: i32, isPrime: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newCount` should have a snake case name [INFO] [stdout] --> src/bin/problem27.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let newCount = getCount(i, j, &isPrime); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getLen` should have a snake case name [INFO] [stdout] --> src/bin/problem26.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn getLen(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNum` should have a snake case name [INFO] [stdout] --> src/bin/problem52.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getVecOfNum(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_vec_of_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem43.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn getNum(nums: &[i32]) -> u64 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqrt` [INFO] [stdout] --> src/bin/problem23.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use num::integer::{sqrt, Roots}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getRank` should have a snake case name [INFO] [stdout] --> src/bin/problem54.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getRank(hand: &Hand) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_rank` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVec` should have a snake case name [INFO] [stdout] --> src/bin/problem54.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn getVec(hand: &Hand) -> Vec { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isAbundant` should have a snake case name [INFO] [stdout] --> src/bin/problem23.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isAbundant(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_abundant` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem3.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut isPrime = [true; 100_0000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem34.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn getNum(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/problem51.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/problem28.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem46.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `canWrite` should have a snake case name [INFO] [stdout] --> src/bin/problem46.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut canWrite = [false; LIMIT]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `can_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem50.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut isPrime = vec![false; 1000_000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin/problem51.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | .filter(|&(index, &x)| x == 10) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/problem51.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|(index, x)| index) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nValues` should have a snake case name [INFO] [stdout] --> src/bin/problem61.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | let mut nValues = values.clone(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNumber` is never used [INFO] [stdout] --> src/bin/problem51.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn getVecOfNumber(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem10.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNumber` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn getNumber(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getVecOfNumber` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn getVecOfNumber(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_vec_of_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | fn dfs(deep: i32, nums: &mut Vec, isPrime: &Vec, head: bool) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrimes` should have a snake case name [INFO] [stdout] --> src/bin/problem51.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let isPrimes = { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_primes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn getNum(nums: &LinkedList) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | fn judge(num: i32, isPrime: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem35.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem7.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut isPrime = [true; 100_0000]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` is never used [INFO] [stdout] --> src/bin/problem19.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCount` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `beginDay` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | fn getCount(beginDay: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `begin_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `beginDay` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut beginDay = 2; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `begin_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `normalDays` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let normalDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `normal_days` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leapDays` should have a snake case name [INFO] [stdout] --> src/bin/problem19.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let leapDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `leap_days` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/problem32.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut c = nums.iter().skip(j + 1).map(|&x| x).collect(); [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 `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem37.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | fn judge(num: i32, isPrime: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isPrime` should have a snake case name [INFO] [stdout] --> src/bin/problem37.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut isPrime = vec![true; LIMIT]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::Pow` [INFO] [stdout] --> src/bin/problem30.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num::traits::Pow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initNum` should have a snake case name [INFO] [stdout] --> src/bin/problem8.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let initNum = b"731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `init_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initNum` should have a snake case name [INFO] [stdout] --> src/bin/problem8.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let initNum: Vec = initNum [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `init_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nowSum` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nowSum: i32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `now_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toSearch` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | toSearch: &Vec, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `to_search` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tmpSum` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let tmpSum = nowSum + primes[toSearch[i]]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tmp_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nValues` should have a snake case name [INFO] [stdout] --> src/bin/problem60.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut nValues = values.clone(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `n_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getNum` should have a snake case name [INFO] [stdout] --> src/bin/problem30.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn getNum(nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `isPentagonal` should have a snake case name [INFO] [stdout] --> src/bin/problem44.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn isPentagonal(x: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_pentagonal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "c013abbc1c653234ce715bb6fe4acf358e59b792c6d4a62140c6672759d5085e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c013abbc1c653234ce715bb6fe4acf358e59b792c6d4a62140c6672759d5085e", kill_on_drop: false }` [INFO] [stdout] c013abbc1c653234ce715bb6fe4acf358e59b792c6d4a62140c6672759d5085e