[INFO] cloning repository https://github.com/Exo-poulpe/RustHash [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Exo-poulpe/RustHash" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FExo-poulpe%2FRustHash", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FExo-poulpe%2FRustHash'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 40bb36fad03d73ebd6a9c88afd62efc507609f63 [INFO] building Exo-poulpe/RustHash 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%2FExo-poulpe%2FRustHash" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Exo-poulpe/RustHash 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/Exo-poulpe/RustHash [INFO] finished tweaking git repo https://github.com/Exo-poulpe/RustHash [INFO] tweaked toml for git repo https://github.com/Exo-poulpe/RustHash written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Exo-poulpe/RustHash 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] Downloading crates ... [INFO] [stderr] Downloaded block-padding v0.1.3 [INFO] [stderr] Downloaded md-5 v0.8.0 [INFO] [stderr] Downloaded block-buffer v0.7.0 [INFO] [stderr] Downloaded raw-cpuid v6.1.0 [INFO] [stderr] Downloaded redox_syscall v0.1.52 [INFO] [stderr] Downloaded sysinfo v0.8.2 [INFO] [stderr] Downloaded cc v1.0.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] e04cc90b97b2f2d7d8898319735a85aab126bf5315da152e96e393ba9abc8055 [INFO] running `Command { std: "docker" "start" "-a" "e04cc90b97b2f2d7d8898319735a85aab126bf5315da152e96e393ba9abc8055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e04cc90b97b2f2d7d8898319735a85aab126bf5315da152e96e393ba9abc8055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e04cc90b97b2f2d7d8898319735a85aab126bf5315da152e96e393ba9abc8055", kill_on_drop: false }` [INFO] [stdout] e04cc90b97b2f2d7d8898319735a85aab126bf5315da152e96e393ba9abc8055 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 76920856441a284cee68c4635849d83f294db3fac9e16b05212077085d040a05 [INFO] running `Command { std: "docker" "start" "-a" "76920856441a284cee68c4635849d83f294db3fac9e16b05212077085d040a05", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling cfg-if v0.1.7 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling opaque-debug v0.2.2 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling cc v1.0.34 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling block-padding v0.1.3 [INFO] [stderr] Compiling sysinfo v0.8.2 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling num_cpus v1.10.0 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling raw-cpuid v6.1.0 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling generic-array v0.12.0 [INFO] [stderr] Compiling block-buffer v0.7.0 [INFO] [stderr] Compiling digest v0.8.0 [INFO] [stderr] Compiling md4 v0.8.0 [INFO] [stderr] Compiling sha-1 v0.8.1 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling RustHash v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Process` [INFO] [stdout] --> src/hardware.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use sysinfo::{System, SystemExt,Process,ProcessExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProcessExt` [INFO] [stdout] --> src/hardware.rs:5:41 [INFO] [stdout] | [INFO] [stdout] 5 | use sysinfo::{System, SystemExt,Process,ProcessExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Strcores` [INFO] [stdout] --> src/hardware.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let Strcores = 1;//sys_info::cpu_num().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Strcores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut filename: String; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valueHash` [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valueHash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `finded` is assigned to, but never used [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut finded = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_finded` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut count: u32 = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut ret = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `finded` is never read [INFO] [stdout] --> src/main.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | finded = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut target: 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/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut count: u32 = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut val = DEFAULT_BENCH_VALUE / timePass as f64; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut start = SystemTime::now(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `finded` is never read [INFO] [stdout] --> src/main.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | let mut finded : bool = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | let mut HASH : String = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let mut filename = matches.value_of("FILE").expect("Fail to get value of flag").to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let mut target = TargetIsFile(matches.value_of("TARGET").expect("Fail to get value of flag").to_string()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | let mut ret : String; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | let mut lines = BufReader::new(f).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut result = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut result = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potFile` [INFO] [stdout] --> src/main.rs:417:17 [INFO] [stdout] | [INFO] [stdout] 417 | let potFile = File::create("rusthash.pot").expect("File not create"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_potFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> src/hardware.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | static GB: f32 = 1000000.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/hardware.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl SysInfo { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `valueHash` should have a snake case name [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashToDetect` should have a snake case name [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let hashToDetect : Vec = TargetIsFile(matches.value_of("DETECT").expect("Fail to unwrap").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `hash_to_detect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `timePass` should have a snake case name [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let timePass = diff / DEFAULT_SECOND_DIV as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `time_pass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HashLine` should have a snake case name [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | for HashLine in target.clone() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | app.print_help(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = app.print_help(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TestHash` should have a snake case name [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn TestHash(app : clap::App ) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | let mut HASH : String = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `valueHash` should have a snake case name [INFO] [stdout] --> src/main.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | let mut valueHash : String = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HashLine` should have a snake case name [INFO] [stdout] --> src/main.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | for HashLine in target.clone() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashMD5` should have a snake case name [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn HashMD5(text: String) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_md5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA1` should have a snake case name [INFO] [stdout] --> src/main.rs:310:4 [INFO] [stdout] | [INFO] [stdout] 310 | fn HashSHA1(text: String) -> String { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_sha1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA256` should have a snake case name [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn HashSHA256(text: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_sha256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA512` should have a snake case name [INFO] [stdout] --> src/main.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn HashSHA512(text: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashMD4` should have a snake case name [INFO] [stdout] --> src/main.rs:334:4 [INFO] [stdout] | [INFO] [stdout] 334 | fn HashMD4(text : String) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_md4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `SwitchHashMethods` should have a snake case name [INFO] [stdout] --> src/main.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn SwitchHashMethods(text: String, method: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `switch_hash_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringMethods` should have a snake case name [INFO] [stdout] --> src/main.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 355 | fn StringMethods(method: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CheckHashValidity` should have a snake case name [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn CheckHashValidity(hashes : Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_hash_validity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CheckPotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn CheckPotFile(hash : String,filePath : String) -> String [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `check_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/main.rs:390:31 [INFO] [stdout] | [INFO] [stdout] 390 | fn CheckPotFile(hash : String,filePath : String) -> String [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileResult` should have a snake case name [INFO] [stdout] --> src/main.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | let fileResult : String; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potHash` should have a snake case name [INFO] [stdout] --> src/main.rs:406:33 [INFO] [stdout] | [INFO] [stdout] 406 | ... let potHash : Vec<&str> = ll.split(":").collect(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pot_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potFile` should have a snake case name [INFO] [stdout] --> src/main.rs:417:17 [INFO] [stdout] | [INFO] [stdout] 417 | let potFile = File::create("rusthash.pot").expect("File not create"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddToPotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:424:4 [INFO] [stdout] | [INFO] [stdout] 424 | fn AddToPotFile(hash : String,text : String,potFileName :String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `add_to_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potFileName` should have a snake case name [INFO] [stdout] --> src/main.rs:424:45 [INFO] [stdout] | [INFO] [stdout] 424 | fn AddToPotFile(hash : String,text : String,potFileName :String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pot_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GeneratePotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:441:4 [INFO] [stdout] | [INFO] [stdout] 441 | fn GeneratePotFile(wordlist : String,filename : String,method : i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetCpuInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:472:4 [INFO] [stdout] | [INFO] [stdout] 472 | fn GetCpuInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_cpu_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetMemInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:477:4 [INFO] [stdout] | [INFO] [stdout] 477 | fn GetMemInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_mem_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetHardInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:487:4 [INFO] [stdout] | [INFO] [stdout] 487 | fn GetHardInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_hard_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TargetIsFile` should have a snake case name [INFO] [stdout] --> src/main.rs:506:4 [INFO] [stdout] | [INFO] [stdout] 506 | fn TargetIsFile(option : String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `target_is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Options` should have a snake case name [INFO] [stdout] --> src/main.rs:533:4 [INFO] [stdout] | [INFO] [stdout] 533 | fn Options<'a>() -> clap::App<'a, 'a> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Strcores` should have a snake case name [INFO] [stdout] --> src/hardware.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let Strcores = 1;//sys_info::cpu_num().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `strcores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Strbrand` should have a snake case name [INFO] [stdout] --> src/hardware.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let Strbrand = tmp.processor_brand_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `strbrand` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.68s [INFO] running `Command { std: "docker" "inspect" "76920856441a284cee68c4635849d83f294db3fac9e16b05212077085d040a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76920856441a284cee68c4635849d83f294db3fac9e16b05212077085d040a05", kill_on_drop: false }` [INFO] [stdout] 76920856441a284cee68c4635849d83f294db3fac9e16b05212077085d040a05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] c3b48cbe3f6dcb8b3710798f0e3a53e5345619b0b1f3b924593bb1a9db33068b [INFO] running `Command { std: "docker" "start" "-a" "c3b48cbe3f6dcb8b3710798f0e3a53e5345619b0b1f3b924593bb1a9db33068b", kill_on_drop: false }` [INFO] [stderr] Compiling RustHash v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Process` [INFO] [stdout] --> src/hardware.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use sysinfo::{System, SystemExt,Process,ProcessExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProcessExt` [INFO] [stdout] --> src/hardware.rs:5:41 [INFO] [stdout] | [INFO] [stdout] 5 | use sysinfo::{System, SystemExt,Process,ProcessExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Strcores` [INFO] [stdout] --> src/hardware.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let Strcores = 1;//sys_info::cpu_num().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Strcores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut filename: String; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valueHash` [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valueHash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `finded` is assigned to, but never used [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut finded = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_finded` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut count: u32 = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut ret = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `finded` is never read [INFO] [stdout] --> src/main.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | finded = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut target: 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/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut count: u32 = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut val = DEFAULT_BENCH_VALUE / timePass as f64; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut start = SystemTime::now(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `finded` is never read [INFO] [stdout] --> src/main.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | let mut finded : bool = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | let mut HASH : String = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let mut filename = matches.value_of("FILE").expect("Fail to get value of flag").to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let mut target = TargetIsFile(matches.value_of("TARGET").expect("Fail to get value of flag").to_string()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | let mut ret : String; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | let mut lines = BufReader::new(f).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut result = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut result = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potFile` [INFO] [stdout] --> src/main.rs:417:17 [INFO] [stdout] | [INFO] [stdout] 417 | let potFile = File::create("rusthash.pot").expect("File not create"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_potFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HASH` is never read [INFO] [stdout] --> src/main.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> src/hardware.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | static GB: f32 = 1000000.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/hardware.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl SysInfo { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `valueHash` should have a snake case name [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut valueHash = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashToDetect` should have a snake case name [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let hashToDetect : Vec = TargetIsFile(matches.value_of("DETECT").expect("Fail to unwrap").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `hash_to_detect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `timePass` should have a snake case name [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let timePass = diff / DEFAULT_SECOND_DIV as f64; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `time_pass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HashLine` should have a snake case name [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | for HashLine in target.clone() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | app.print_help(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = app.print_help(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TestHash` should have a snake case name [INFO] [stdout] --> src/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn TestHash(app : clap::App ) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | let mut HASH : String = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `valueHash` should have a snake case name [INFO] [stdout] --> src/main.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | let mut valueHash : String = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `value_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HashLine` should have a snake case name [INFO] [stdout] --> src/main.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | for HashLine in target.clone() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashMD5` should have a snake case name [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn HashMD5(text: String) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_md5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA1` should have a snake case name [INFO] [stdout] --> src/main.rs:310:4 [INFO] [stdout] | [INFO] [stdout] 310 | fn HashSHA1(text: String) -> String { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hash_sha1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA256` should have a snake case name [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn HashSHA256(text: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_sha256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashSHA512` should have a snake case name [INFO] [stdout] --> src/main.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn HashSHA512(text: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HashMD4` should have a snake case name [INFO] [stdout] --> src/main.rs:334:4 [INFO] [stdout] | [INFO] [stdout] 334 | fn HashMD4(text : String) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_md4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `SwitchHashMethods` should have a snake case name [INFO] [stdout] --> src/main.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn SwitchHashMethods(text: String, method: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `switch_hash_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `StringMethods` should have a snake case name [INFO] [stdout] --> src/main.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 355 | fn StringMethods(method: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `string_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CheckHashValidity` should have a snake case name [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn CheckHashValidity(hashes : Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_hash_validity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CheckPotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn CheckPotFile(hash : String,filePath : String) -> String [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `check_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/main.rs:390:31 [INFO] [stdout] | [INFO] [stdout] 390 | fn CheckPotFile(hash : String,filePath : String) -> String [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fileResult` should have a snake case name [INFO] [stdout] --> src/main.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | let fileResult : String; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potHash` should have a snake case name [INFO] [stdout] --> src/main.rs:406:33 [INFO] [stdout] | [INFO] [stdout] 406 | ... let potHash : Vec<&str> = ll.split(":").collect(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pot_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potFile` should have a snake case name [INFO] [stdout] --> src/main.rs:417:17 [INFO] [stdout] | [INFO] [stdout] 417 | let potFile = File::create("rusthash.pot").expect("File not create"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AddToPotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:424:4 [INFO] [stdout] | [INFO] [stdout] 424 | fn AddToPotFile(hash : String,text : String,potFileName :String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `add_to_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `potFileName` should have a snake case name [INFO] [stdout] --> src/main.rs:424:45 [INFO] [stdout] | [INFO] [stdout] 424 | fn AddToPotFile(hash : String,text : String,potFileName :String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `pot_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GeneratePotFile` should have a snake case name [INFO] [stdout] --> src/main.rs:441:4 [INFO] [stdout] | [INFO] [stdout] 441 | fn GeneratePotFile(wordlist : String,filename : String,method : i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_pot_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HASH` should have a snake case name [INFO] [stdout] --> src/main.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let mut HASH = String::new(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetCpuInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:472:4 [INFO] [stdout] | [INFO] [stdout] 472 | fn GetCpuInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_cpu_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetMemInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:477:4 [INFO] [stdout] | [INFO] [stdout] 477 | fn GetMemInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_mem_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetHardInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:487:4 [INFO] [stdout] | [INFO] [stdout] 487 | fn GetHardInfo() -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_hard_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TargetIsFile` should have a snake case name [INFO] [stdout] --> src/main.rs:506:4 [INFO] [stdout] | [INFO] [stdout] 506 | fn TargetIsFile(option : String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `target_is_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Options` should have a snake case name [INFO] [stdout] --> src/main.rs:533:4 [INFO] [stdout] | [INFO] [stdout] 533 | fn Options<'a>() -> clap::App<'a, 'a> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Strcores` should have a snake case name [INFO] [stdout] --> src/hardware.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let Strcores = 1;//sys_info::cpu_num().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `strcores` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Strbrand` should have a snake case name [INFO] [stdout] --> src/hardware.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let Strbrand = tmp.processor_brand_string().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `strbrand` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "c3b48cbe3f6dcb8b3710798f0e3a53e5345619b0b1f3b924593bb1a9db33068b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3b48cbe3f6dcb8b3710798f0e3a53e5345619b0b1f3b924593bb1a9db33068b", kill_on_drop: false }` [INFO] [stdout] c3b48cbe3f6dcb8b3710798f0e3a53e5345619b0b1f3b924593bb1a9db33068b