[INFO] updating cached repository https://github.com/bantic/cryptopals
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] f0958d66e32c4ca18ace0e3c208066514b769e6c
[INFO] testing bantic/cryptopals against 1.40.0 for beta-1.41-1
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbantic%2Fcryptopals" "/workspace/builds/worker-7/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/bantic/cryptopals on toolchain 1.40.0
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/bantic/cryptopals
[INFO] finished tweaking git repo https://github.com/bantic/cryptopals
[INFO] tweaked toml for git repo https://github.com/bantic/cryptopals written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/bantic/cryptopals already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.40.0" "build" "--frozen"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 032a52f2bc847d7a0818c1b368eeeca142afaa5f354f306618fc342db21036e1
[INFO] running `"docker" "start" "-a" "032a52f2bc847d7a0818c1b368eeeca142afaa5f354f306618fc342db21036e1"`
[INFO] [stderr]    Compiling cryptopals v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/crypto/xor.rs:21:8
[INFO] [stderr]    |
[INFO] [stderr] 21 |     if (score > best_score) {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/crypto/xor.rs:76:7
[INFO] [stderr]    |
[INFO] [stderr] 75 |       let v = letter_counts.get(&c).unwrap();
[INFO] [stderr]    |               ------------- immutable borrow occurs here
[INFO] [stderr] 76 |       letter_counts.insert(c, v + 1);
[INFO] [stderr]    |       ^^^^^^^^^^^^^           - immutable borrow later used here
[INFO] [stderr]    |       |
[INFO] [stderr]    |       mutable borrow occurs here
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
[INFO] [stderr]    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
[INFO] [stderr]    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_base64`
[INFO] [stderr]  --> src/crypto/hex_to_base64.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn hex_to_base64(hex: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `pad_bits`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:22:1
[INFO] [stderr]    |
[INFO] [stderr] 22 | fn pad_bits(bits: Vec<bool>) -> Vec<bool> {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_base64`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:31:1
[INFO] [stderr]    |
[INFO] [stderr] 31 | fn bits_to_base64(bits: Vec<bool>) -> char {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor`
[INFO] [stderr]  --> src/crypto/xor.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor(hexed_input: &str, c: char) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decode_fixed_xor`
[INFO] [stderr]   --> src/crypto/xor.rs:14:1
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub fn decode_fixed_xor(hexed_input: &str) -> String {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `get_char_freq`
[INFO] [stderr]   --> src/crypto/xor.rs:30:1
[INFO] [stderr]    |
[INFO] [stderr] 30 | fn get_char_freq(c: char) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `freq_score`
[INFO] [stderr]   --> src/crypto/xor.rs:62:1
[INFO] [stderr]    |
[INFO] [stderr] 62 | fn freq_score(str: &str) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor_hex`
[INFO] [stderr]  --> src/crypto/xor_hex.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor_hex(a: &str, b: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_vecu8`
[INFO] [stderr]  --> src/crypto/mod.rs:9:3
[INFO] [stderr]   |
[INFO] [stderr] 9 |   pub fn hex_to_vecu8(hex: &str) -> Vec<u8> {
[INFO] [stderr]   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_u8`
[INFO] [stderr]   --> src/crypto/mod.rs:19:3
[INFO] [stderr]    |
[INFO] [stderr] 19 |   fn hex_to_u8(hex: &str) -> u8 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:33:3
[INFO] [stderr]    |
[INFO] [stderr] 33 |   pub fn hex_to_decimal(hex: &str) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decimal_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:37:3
[INFO] [stderr]    |
[INFO] [stderr] 37 |   fn decimal_to_bits(d: i32) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:42:3
[INFO] [stderr]    |
[INFO] [stderr] 42 |   pub fn hex_to_bits(hex: &str) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_hex`
[INFO] [stderr]   --> src/crypto/mod.rs:53:3
[INFO] [stderr]    |
[INFO] [stderr] 53 |   pub fn bits_to_hex(bits: Vec<bool>) -> String {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:62:3
[INFO] [stderr]    |
[INFO] [stderr] 62 |   pub fn bits_to_decimal(bits: Vec<bool>) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.76s
[INFO] running `"docker" "inspect" "032a52f2bc847d7a0818c1b368eeeca142afaa5f354f306618fc342db21036e1"`
[INFO] running `"docker" "rm" "-f" "032a52f2bc847d7a0818c1b368eeeca142afaa5f354f306618fc342db21036e1"`
[INFO] [stdout] 032a52f2bc847d7a0818c1b368eeeca142afaa5f354f306618fc342db21036e1
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.40.0" "test" "--frozen" "--no-run"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 41fc37a5693b3aaddb7056958823799211d51d5efff18848631a70cc0e3e3830
[INFO] running `"docker" "start" "-a" "41fc37a5693b3aaddb7056958823799211d51d5efff18848631a70cc0e3e3830"`
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/crypto/xor.rs:21:8
[INFO] [stderr]    |
[INFO] [stderr] 21 |     if (score > best_score) {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/crypto/xor.rs:76:7
[INFO] [stderr]    |
[INFO] [stderr] 75 |       let v = letter_counts.get(&c).unwrap();
[INFO] [stderr]    |               ------------- immutable borrow occurs here
[INFO] [stderr] 76 |       letter_counts.insert(c, v + 1);
[INFO] [stderr]    |       ^^^^^^^^^^^^^           - immutable borrow later used here
[INFO] [stderr]    |       |
[INFO] [stderr]    |       mutable borrow occurs here
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
[INFO] [stderr]    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
[INFO] [stderr]    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_base64`
[INFO] [stderr]  --> src/crypto/hex_to_base64.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn hex_to_base64(hex: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `pad_bits`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:22:1
[INFO] [stderr]    |
[INFO] [stderr] 22 | fn pad_bits(bits: Vec<bool>) -> Vec<bool> {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_base64`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:31:1
[INFO] [stderr]    |
[INFO] [stderr] 31 | fn bits_to_base64(bits: Vec<bool>) -> char {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor`
[INFO] [stderr]  --> src/crypto/xor.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor(hexed_input: &str, c: char) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decode_fixed_xor`
[INFO] [stderr]   --> src/crypto/xor.rs:14:1
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub fn decode_fixed_xor(hexed_input: &str) -> String {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `get_char_freq`
[INFO] [stderr]   --> src/crypto/xor.rs:30:1
[INFO] [stderr]    |
[INFO] [stderr] 30 | fn get_char_freq(c: char) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `freq_score`
[INFO] [stderr]   --> src/crypto/xor.rs:62:1
[INFO] [stderr]    |
[INFO] [stderr] 62 | fn freq_score(str: &str) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor_hex`
[INFO] [stderr]  --> src/crypto/xor_hex.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor_hex(a: &str, b: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_vecu8`
[INFO] [stderr]  --> src/crypto/mod.rs:9:3
[INFO] [stderr]   |
[INFO] [stderr] 9 |   pub fn hex_to_vecu8(hex: &str) -> Vec<u8> {
[INFO] [stderr]   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_u8`
[INFO] [stderr]   --> src/crypto/mod.rs:19:3
[INFO] [stderr]    |
[INFO] [stderr] 19 |   fn hex_to_u8(hex: &str) -> u8 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:33:3
[INFO] [stderr]    |
[INFO] [stderr] 33 |   pub fn hex_to_decimal(hex: &str) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decimal_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:37:3
[INFO] [stderr]    |
[INFO] [stderr] 37 |   fn decimal_to_bits(d: i32) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:42:3
[INFO] [stderr]    |
[INFO] [stderr] 42 |   pub fn hex_to_bits(hex: &str) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_hex`
[INFO] [stderr]   --> src/crypto/mod.rs:53:3
[INFO] [stderr]    |
[INFO] [stderr] 53 |   pub fn bits_to_hex(bits: Vec<bool>) -> String {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:62:3
[INFO] [stderr]    |
[INFO] [stderr] 62 |   pub fn bits_to_decimal(bits: Vec<bool>) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr]    Compiling cryptopals v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/crypto/xor.rs:21:8
[INFO] [stderr]    |
[INFO] [stderr] 21 |     if (score > best_score) {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `xor`
[INFO] [stderr]  --> src/lib.rs:6:38
[INFO] [stderr]   |
[INFO] [stderr] 6 |   use crate::crypto::{hex_to_base64, xor, xor_hex};
[INFO] [stderr]   |                                      ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/crypto/xor.rs:76:7
[INFO] [stderr]    |
[INFO] [stderr] 75 |       let v = letter_counts.get(&c).unwrap();
[INFO] [stderr]    |               ------------- immutable borrow occurs here
[INFO] [stderr] 76 |       letter_counts.insert(c, v + 1);
[INFO] [stderr]    |       ^^^^^^^^^^^^^           - immutable borrow later used here
[INFO] [stderr]    |       |
[INFO] [stderr]    |       mutable borrow occurs here
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
[INFO] [stderr]    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
[INFO] [stderr]    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
[INFO] [stderr] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 2.04s
[INFO] running `"docker" "inspect" "41fc37a5693b3aaddb7056958823799211d51d5efff18848631a70cc0e3e3830"`
[INFO] running `"docker" "rm" "-f" "41fc37a5693b3aaddb7056958823799211d51d5efff18848631a70cc0e3e3830"`
[INFO] [stdout] 41fc37a5693b3aaddb7056958823799211d51d5efff18848631a70cc0e3e3830
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.40.0" "test" "--frozen"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 1b48924f7db30fa677b7958381ca9ea6084aecfc9cc43c272f7e9491cf0ffcde
[INFO] running `"docker" "start" "-a" "1b48924f7db30fa677b7958381ca9ea6084aecfc9cc43c272f7e9491cf0ffcde"`
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/crypto/xor.rs:21:8
[INFO] [stderr]    |
[INFO] [stderr] 21 |     if (score > best_score) {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/crypto/xor.rs:76:7
[INFO] [stderr]    |
[INFO] [stderr] 75 |       let v = letter_counts.get(&c).unwrap();
[INFO] [stderr]    |               ------------- immutable borrow occurs here
[INFO] [stderr] 76 |       letter_counts.insert(c, v + 1);
[INFO] [stderr]    |       ^^^^^^^^^^^^^           - immutable borrow later used here
[INFO] [stderr]    |       |
[INFO] [stderr]    |       mutable borrow occurs here
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
[INFO] [stderr]    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
[INFO] [stderr]    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_base64`
[INFO] [stderr]  --> src/crypto/hex_to_base64.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn hex_to_base64(hex: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `pad_bits`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:22:1
[INFO] [stderr]    |
[INFO] [stderr] 22 | fn pad_bits(bits: Vec<bool>) -> Vec<bool> {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_base64`
[INFO] [stderr]   --> src/crypto/hex_to_base64.rs:31:1
[INFO] [stderr]    |
[INFO] [stderr] 31 | fn bits_to_base64(bits: Vec<bool>) -> char {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor`
[INFO] [stderr]  --> src/crypto/xor.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor(hexed_input: &str, c: char) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decode_fixed_xor`
[INFO] [stderr]   --> src/crypto/xor.rs:14:1
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub fn decode_fixed_xor(hexed_input: &str) -> String {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `get_char_freq`
[INFO] [stderr]   --> src/crypto/xor.rs:30:1
[INFO] [stderr]    |
[INFO] [stderr] 30 | fn get_char_freq(c: char) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `freq_score`
[INFO] [stderr]   --> src/crypto/xor.rs:62:1
[INFO] [stderr]    |
[INFO] [stderr] 62 | fn freq_score(str: &str) -> f32 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `xor_hex`
[INFO] [stderr]  --> src/crypto/xor_hex.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn xor_hex(a: &str, b: &str) -> String {
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_vecu8`
[INFO] [stderr]  --> src/crypto/mod.rs:9:3
[INFO] [stderr]   |
[INFO] [stderr] 9 |   pub fn hex_to_vecu8(hex: &str) -> Vec<u8> {
[INFO] [stderr]   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_u8`
[INFO] [stderr]   --> src/crypto/mod.rs:19:3
[INFO] [stderr]    |
[INFO] [stderr] 19 |   fn hex_to_u8(hex: &str) -> u8 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:33:3
[INFO] [stderr]    |
[INFO] [stderr] 33 |   pub fn hex_to_decimal(hex: &str) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `decimal_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:37:3
[INFO] [stderr]    |
[INFO] [stderr] 37 |   fn decimal_to_bits(d: i32) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `hex_to_bits`
[INFO] [stderr]   --> src/crypto/mod.rs:42:3
[INFO] [stderr]    |
[INFO] [stderr] 42 |   pub fn hex_to_bits(hex: &str) -> Vec<bool> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_hex`
[INFO] [stderr]   --> src/crypto/mod.rs:53:3
[INFO] [stderr]    |
[INFO] [stderr] 53 |   pub fn bits_to_hex(bits: Vec<bool>) -> String {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function is never used: `bits_to_decimal`
[INFO] [stderr]   --> src/crypto/mod.rs:62:3
[INFO] [stderr]    |
[INFO] [stderr] 62 |   pub fn bits_to_decimal(bits: Vec<bool>) -> i32 {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/crypto/xor.rs:21:8
[INFO] [stderr]    |
[INFO] [stderr] 21 |     if (score > best_score) {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `xor`
[INFO] [stderr]  --> src/lib.rs:6:38
[INFO] [stderr]   |
[INFO] [stderr] 6 |   use crate::crypto::{hex_to_base64, xor, xor_hex};
[INFO] [stderr]   |                                      ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/crypto/xor.rs:76:7
[INFO] [stderr]    |
[INFO] [stderr] 75 |       let v = letter_counts.get(&c).unwrap();
[INFO] [stderr]    |               ------------- immutable borrow occurs here
[INFO] [stderr] 76 |       letter_counts.insert(c, v + 1);
[INFO] [stderr]    |       ^^^^^^^^^^^^^           - immutable borrow later used here
[INFO] [stderr]    |       |
[INFO] [stderr]    |       mutable borrow occurs here
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
[INFO] [stderr]    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
[INFO] [stderr]    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
[INFO] [stderr] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running /opt/rustwide/target/debug/deps/cryptopals-0af66853371e0ee2
[INFO] [stdout] 
[INFO] [stdout] running 10 tests
[INFO] [stdout] test crypto::hex_to_base64::tests::test_hex_to_bits ... ok
[INFO] [stdout] test crypto::hex_to_base64::tests::test_pad_bits ... ok
[INFO] [stdout] test crypto::tests::test_bits_to_decimal_8 ... ok
[INFO] [stdout] test crypto::tests::test_bits_to_decimal_6 ... ok
[INFO] [stdout] test crypto::tests::test_hex_to_decimal ... ok
[INFO] [stdout] test tests::test_hex_to_base64_simple ... ok
[INFO] [stdout] test tests::test_hex_to_vecu8 ... ok
[INFO] [stdout] test tests::test_xor_hex ... ok
[INFO] [stdout] test tests::test_hex_to_base64 ... ok
[INFO] [stdout] test crypto::xor::tests::test_decode ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests cryptopals
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] running `"docker" "inspect" "1b48924f7db30fa677b7958381ca9ea6084aecfc9cc43c272f7e9491cf0ffcde"`
[INFO] running `"docker" "rm" "-f" "1b48924f7db30fa677b7958381ca9ea6084aecfc9cc43c272f7e9491cf0ffcde"`
[INFO] [stdout] 1b48924f7db30fa677b7958381ca9ea6084aecfc9cc43c272f7e9491cf0ffcde
