[INFO] cloning repository https://github.com/bantic/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bantic/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbantic%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbantic%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0958d66e32c4ca18ace0e3c208066514b769e6c [INFO] checking bantic/cryptopals against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbantic%2Fcryptopals" "/workspace/builds/worker-88/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-88/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bantic/cryptopals on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-88/source/Cargo.toml [INFO] crate git repo https://github.com/bantic/cryptopals already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e874496ef5f9da9017918cb10570adbf9fa51997839a3c79fc3bfc68c44b629b [INFO] running `Command { std: "docker" "start" "-a" "e874496ef5f9da9017918cb10570adbf9fa51997839a3c79fc3bfc68c44b629b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e874496ef5f9da9017918cb10570adbf9fa51997839a3c79fc3bfc68c44b629b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e874496ef5f9da9017918cb10570adbf9fa51997839a3c79fc3bfc68c44b629b", kill_on_drop: false }` [INFO] [stdout] e874496ef5f9da9017918cb10570adbf9fa51997839a3c79fc3bfc68c44b629b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-88/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebcf7b6c24bc6ad5eb2653bebc9ac2af0eb939ee4ce33eecdd70ed2d762e5dc9 [INFO] running `Command { std: "docker" "start" "-a" "ebcf7b6c24bc6ad5eb2653bebc9ac2af0eb939ee4ce33eecdd70ed2d762e5dc9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/crypto/xor.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stdout] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/crypto/xor.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 75 | let v = letter_counts.get(&c).unwrap(); [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] 76 | letter_counts.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_base64` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hex_to_base64(hex: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pad_bits` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn pad_bits(bits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_base64` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn bits_to_base64(bits: Vec) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor` [INFO] [stdout] --> src/crypto/xor.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn xor(hexed_input: &str, c: char) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decode_fixed_xor` [INFO] [stdout] --> src/crypto/xor.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn decode_fixed_xor(hexed_input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_char_freq` [INFO] [stdout] --> src/crypto/xor.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_char_freq(c: char) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `freq_score` [INFO] [stdout] --> src/crypto/xor.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn freq_score(str: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor_hex` [INFO] [stdout] --> src/crypto/xor_hex.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn xor_hex(a: &str, b: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_vecu8` [INFO] [stdout] --> src/crypto/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn hex_to_vecu8(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_u8` [INFO] [stdout] --> src/crypto/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | fn hex_to_u8(hex: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_decimal` [INFO] [stdout] --> src/crypto/mod.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn hex_to_decimal(hex: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decimal_to_bits` [INFO] [stdout] --> src/crypto/mod.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | fn decimal_to_bits(d: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_bits` [INFO] [stdout] --> src/crypto/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn hex_to_bits(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_hex` [INFO] [stdout] --> src/crypto/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn bits_to_hex(bits: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_decimal` [INFO] [stdout] --> src/crypto/mod.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn bits_to_decimal(bits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/crypto/xor.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 75 | let v = letter_counts.get(&c).unwrap(); [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] 76 | letter_counts.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.69s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/crypto/xor.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 75 | let v = letter_counts.get(&c).unwrap(); [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] 76 | letter_counts.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `letter_counts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/crypto/xor.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 75 | let v = letter_counts.get(&c).unwrap(); [INFO] [stdout] | ------------- immutable borrow occurs here [INFO] [stdout] 76 | letter_counts.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_base64` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hex_to_base64(hex: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pad_bits` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn pad_bits(bits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_base64` [INFO] [stdout] --> src/crypto/hex_to_base64.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn bits_to_base64(bits: Vec) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor` [INFO] [stdout] --> src/crypto/xor.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn xor(hexed_input: &str, c: char) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decode_fixed_xor` [INFO] [stdout] --> src/crypto/xor.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn decode_fixed_xor(hexed_input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_char_freq` [INFO] [stdout] --> src/crypto/xor.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_char_freq(c: char) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `freq_score` [INFO] [stdout] --> src/crypto/xor.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn freq_score(str: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor_hex` [INFO] [stdout] --> src/crypto/xor_hex.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn xor_hex(a: &str, b: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_vecu8` [INFO] [stdout] --> src/crypto/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn hex_to_vecu8(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_u8` [INFO] [stdout] --> src/crypto/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | fn hex_to_u8(hex: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_decimal` [INFO] [stdout] --> src/crypto/mod.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn hex_to_decimal(hex: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decimal_to_bits` [INFO] [stdout] --> src/crypto/mod.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | fn decimal_to_bits(d: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_bits` [INFO] [stdout] --> src/crypto/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn hex_to_bits(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_hex` [INFO] [stdout] --> src/crypto/mod.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn bits_to_hex(bits: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bits_to_decimal` [INFO] [stdout] --> src/crypto/mod.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn bits_to_decimal(bits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "ebcf7b6c24bc6ad5eb2653bebc9ac2af0eb939ee4ce33eecdd70ed2d762e5dc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebcf7b6c24bc6ad5eb2653bebc9ac2af0eb939ee4ce33eecdd70ed2d762e5dc9", kill_on_drop: false }` [INFO] [stdout] ebcf7b6c24bc6ad5eb2653bebc9ac2af0eb939ee4ce33eecdd70ed2d762e5dc9