[INFO] updating cached repository bantic/cryptopals [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/bantic/cryptopals [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/bantic/cryptopals" "work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/bantic/cryptopals"` [INFO] [stderr] Cloning into 'work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/bantic/cryptopals'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/bantic/cryptopals" "work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/bantic/cryptopals"` [INFO] [stderr] Cloning into 'work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/bantic/cryptopals'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f0958d66e32c4ca18ace0e3c208066514b769e6c [INFO] sha for GitHub repo bantic/cryptopals: f0958d66e32c4ca18ace0e3c208066514b769e6c [INFO] validating manifest of bantic/cryptopals on toolchain master#e305df1846a6d985315917ae0c81b74af8b4e641 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of bantic/cryptopals on toolchain try#99a7498759a22b5684caf798a98b7e90ad9d2443 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing bantic/cryptopals [INFO] finished frobbing bantic/cryptopals [INFO] frobbed toml for bantic/cryptopals written to work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/bantic/cryptopals/Cargo.toml [INFO] started frobbing bantic/cryptopals [INFO] finished frobbing bantic/cryptopals [INFO] frobbed toml for bantic/cryptopals written to work/ex/pr-60039-1/sources/try#99a7498759a22b5684caf798a98b7e90ad9d2443/gh/bantic/cryptopals/Cargo.toml [INFO] crate bantic/cryptopals already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+99a7498759a22b5684caf798a98b7e90ad9d2443-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking bantic/cryptopals against master#e305df1846a6d985315917ae0c81b74af8b4e641 for pr-60039-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-60039-1/worker-7/master#e305df1846a6d985315917ae0c81b74af8b4e641:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-60039-1/sources/master#e305df1846a6d985315917ae0c81b74af8b4e641/gh/bantic/cryptopals:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+e305df1846a6d985315917ae0c81b74af8b4e641-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 1270e89df2734e93be8e4fbfe931a9c56b48041e0eb882906672f2b9ddddba75 [INFO] running `"docker" "start" "-a" "1270e89df2734e93be8e4fbfe931a9c56b48041e0eb882906672f2b9ddddba75"` [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/crater/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: 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 [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) -> Vec { [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) -> 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 { [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 { [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 { [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) -> 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) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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 [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `"docker" "inspect" "1270e89df2734e93be8e4fbfe931a9c56b48041e0eb882906672f2b9ddddba75"` [INFO] running `"docker" "rm" "-f" "1270e89df2734e93be8e4fbfe931a9c56b48041e0eb882906672f2b9ddddba75"` [INFO] [stdout] 1270e89df2734e93be8e4fbfe931a9c56b48041e0eb882906672f2b9ddddba75