[INFO] cloning repository https://github.com/ralphrecto/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ralphrecto/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 734eccb7eb850acd5ce835cab6e7193fd12f49f2 [INFO] checking ralphrecto/cryptopals against master#5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ralphrecto/cryptopals on toolchain 5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] finished tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] tweaked toml for git repo https://github.com/ralphrecto/cryptopals written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ralphrecto/cryptopals 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" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ralphrecto/cryptopals against try#311f8b6ca41358db8ae08490a9ca0916f11e9de3 for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ralphrecto/cryptopals on toolchain 311f8b6ca41358db8ae08490a9ca0916f11e9de3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] finished tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] tweaked toml for git repo https://github.com/ralphrecto/cryptopals written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ralphrecto/cryptopals 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" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f042cd3a55862d130d42fec9e1e8247d0bef32ea21ed69422e42c41a4e3636be [INFO] running `Command { std: "docker" "start" "-a" "f042cd3a55862d130d42fec9e1e8247d0bef32ea21ed69422e42c41a4e3636be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f042cd3a55862d130d42fec9e1e8247d0bef32ea21ed69422e42c41a4e3636be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f042cd3a55862d130d42fec9e1e8247d0bef32ea21ed69422e42c41a4e3636be", kill_on_drop: false }` [INFO] [stdout] f042cd3a55862d130d42fec9e1e8247d0bef32ea21ed69422e42c41a4e3636be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a12d789dab7f65a86f1768f09b9f38d9fb95611303f4e8ef21ddbfe849552f53 [INFO] running `Command { std: "docker" "start" "-a" "a12d789dab7f65a86f1768f09b9f38d9fb95611303f4e8ef21ddbfe849552f53", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking safemem v0.2.0 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking base64 v0.7.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cryptopals/set1.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::{Aes128, Block}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockEncrypt` [INFO] [stdout] --> src/cryptopals/set1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCipher, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cryptopals/hexutils.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | 0...9 => (0x30 + b) as char, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/cryptopals/hexutils.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for i in (0..8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - for i in (0..8) { [INFO] [stdout] 65 + for i in 0..8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cryptopals/set1.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::{Aes128, Block}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockEncrypt` [INFO] [stdout] --> src/cryptopals/set1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCipher, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cryptopals/hexutils.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | 0...9 => (0x30 + b) as char, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/cryptopals/hexutils.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for i in (0..8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - for i in (0..8) { [INFO] [stdout] 65 + for i in 0..8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cryptopals::hexutils` [INFO] [stdout] --> src/cryptopals/xorutils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cryptopals::hexutils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ciphertext_block` is never read [INFO] [stdout] --> src/cryptopals/set1.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ciphertext_block: GenericArray = GenericArray::clone_from_slice(&[0u8; 16]); [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: value assigned to `ciphertext_block` is never read [INFO] [stdout] --> src/cryptopals/set1.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ciphertext_block: GenericArray = GenericArray::clone_from_slice(&[0u8; 16]); [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: `plaintexts` [INFO] [stdout] --> src/cryptopals/xorutils.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let plaintexts = bytexor_keygen(&vec![0, 0, 0]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plaintexts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cryptopals/blockutils.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | for i in 0..num_blocks { [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: function `challenge1` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn challenge1() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge2` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn challenge2() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chi_square_printer` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn chi_square_printer(word: &str, keyword_and_keys: &Vec<(String, u8)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge3` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn challenge3() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge4` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn challenge4() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge5` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn challenge5() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge6` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn challenge6() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_nibble` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hex_to_nibble(s: char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nibble_to_hex` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn nibble_to_hex(b: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_to_bytevec` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn str_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hexstr_to_bytevec` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn hexstr_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytevec_to_hexstr` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn bytevec_to_hexstr(v: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_set_bits` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn count_set_bits(v: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `letter_freq` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn letter_freq(c: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_chars` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn count_chars(text: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chi_square` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn chi_square(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `space_freq` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn space_freq(text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/cryptopals/fileutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn read_lines(pathstr: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytexor_keygen` is never used [INFO] [stdout] --> src/cryptopals/xorutils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn bytexor_keygen(v: &Vec) -> Vec<(String, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rolling_xor` is never used [INFO] [stdout] --> src/cryptopals/xorutils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rolling_xor(v: &Vec, key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hamming_dist` is never used [INFO] [stdout] --> src/cryptopals/strutils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn hamming_dist(v1: &Vec, v2: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose_blocks` is never used [INFO] [stdout] --> src/cryptopals/blockutils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn transpose_blocks(bytes: &Vec, num_blocks: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | cryptopals::set1::challenge7(); [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] 21 | let _ = cryptopals::set1::challenge7(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cryptopals/hexutils.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 7 - None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] 7 + None => panic!("Given char {} was not a hex char.", s), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cryptopals/blockutils.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | for i in 0..num_blocks { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge1` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn challenge1() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge2` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn challenge2() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chi_square_printer` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn chi_square_printer(word: &str, keyword_and_keys: &Vec<(String, u8)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge3` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn challenge3() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge4` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn challenge4() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge5` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn challenge5() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge6` is never used [INFO] [stdout] --> src/cryptopals/set1.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn challenge6() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nibble_to_hex` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn nibble_to_hex(b: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_to_bytevec` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn str_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytevec_to_hexstr` is never used [INFO] [stdout] --> src/cryptopals/hexutils.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn bytevec_to_hexstr(v: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `letter_freq` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn letter_freq(c: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_chars` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn count_chars(text: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chi_square` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn chi_square(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `space_freq` is never used [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn space_freq(text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/cryptopals/fileutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn read_lines(pathstr: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | cryptopals::set1::challenge7(); [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] 21 | let _ = cryptopals::set1::challenge7(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cryptopals/hexutils.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 7 - None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] 7 + None => panic!("Given char {} was not a hex char.", s), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.35s [INFO] running `Command { std: "docker" "inspect" "a12d789dab7f65a86f1768f09b9f38d9fb95611303f4e8ef21ddbfe849552f53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a12d789dab7f65a86f1768f09b9f38d9fb95611303f4e8ef21ddbfe849552f53", kill_on_drop: false }` [INFO] [stdout] a12d789dab7f65a86f1768f09b9f38d9fb95611303f4e8ef21ddbfe849552f53