[INFO] cloning repository https://github.com/pdomenico/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pdomenico/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdomenico%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdomenico%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a1fafe6b37f31a4d8eb73374eb69f4aabcaaa9b [INFO] checking pdomenico/cryptopals against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdomenico%2Fcryptopals" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pdomenico/cryptopals on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pdomenico/cryptopals [INFO] finished tweaking git repo https://github.com/pdomenico/cryptopals [INFO] tweaked toml for git repo https://github.com/pdomenico/cryptopals written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pdomenico/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e100fb4430fa3915e9fea67b6f11cf08ea97007b50b253c06ba0cdcf0c9cda6a [INFO] running `Command { std: "docker" "start" "-a" "e100fb4430fa3915e9fea67b6f11cf08ea97007b50b253c06ba0cdcf0c9cda6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e100fb4430fa3915e9fea67b6f11cf08ea97007b50b253c06ba0cdcf0c9cda6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e100fb4430fa3915e9fea67b6f11cf08ea97007b50b253c06ba0cdcf0c9cda6a", kill_on_drop: false }` [INFO] [stdout] e100fb4430fa3915e9fea67b6f11cf08ea97007b50b253c06ba0cdcf0c9cda6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d99e7d739ff1cbcbf7b1e269c9542ad08ddd9c21db5e926e683434fbd49351f0 [INFO] running `Command { std: "docker" "start" "-a" "d99e7d739ff1cbcbf7b1e269c9542ad08ddd9c21db5e926e683434fbd49351f0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Checking cpufeatures v0.2.7 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking aes v0.8.2 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `challenge5` [INFO] [stdout] --> src/set1/challenge6.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::set1::{challenge3, challenge5}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `BlockEncrypt` [INFO] [stdout] --> src/set1/challenge7.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge3` [INFO] [stdout] --> src/set1/challenge8.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{challenge1, challenge3}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockCipher` [INFO] [stdout] --> src/set2/challenge10.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::encode` [INFO] [stdout] --> src/set2/challenge11.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::encode; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/set2/challenge11.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/set2/challenge12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::set2::challenge13::*` [INFO] [stdout] --> src/set2/tests.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | use crate::set2::challenge13::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/set2/tests.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | mod challenge13_tests { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge1`, `challenge3`, `challenge4`, `challenge5`, `challenge6`, `challenge7`, and `challenge8` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use set1::{challenge1, challenge3, challenge4, challenge5, challenge6, challenge7, challenge8}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge11` and `challenge12` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use set2::{challenge11, challenge12, challenge13}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge5` [INFO] [stdout] --> src/set1/challenge6.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::set1::{challenge3, challenge5}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `BlockEncrypt` [INFO] [stdout] --> src/set1/challenge7.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge3` [INFO] [stdout] --> src/set1/challenge8.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{challenge1, challenge3}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockCipher` [INFO] [stdout] --> src/set2/challenge10.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::encode` [INFO] [stdout] --> src/set2/challenge11.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::encode; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/set2/challenge11.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/set2/challenge12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge1`, `challenge3`, `challenge4`, `challenge5`, `challenge6`, `challenge7`, and `challenge8` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use set1::{challenge1, challenge3, challenge4, challenge5, challenge6, challenge7, challenge8}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge11` and `challenge12` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use set2::{challenge11, challenge12, challenge13}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes128_single_block_decrypt` is never used [INFO] [stdout] --> src/set1/challenge7.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn aes128_single_block_decrypt(ciphertext: &[u8], key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge7.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_score` is never used [INFO] [stdout] --> src/set1/challenge8.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn repeating_score(ciphertext: &Vec, length: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge8.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbc_encrypt` is never used [INFO] [stdout] --> src/set2/challenge10.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn cbc_encrypt(plaintext: &[u8], iv: &[u8], key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbc_decrypt` is never used [INFO] [stdout] --> src/set2/challenge10.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn cbc_decrypt(cyphertext: &[u8], iv: &[u8], key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CBC` and `ECB` are never constructed [INFO] [stdout] --> src/set2/challenge11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum EncryptionMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 12 | CBC, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ECB, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_block` is never used [INFO] [stdout] --> src/set2/challenge11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn random_block() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2/challenge11.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn encryption_oracle(input: &[u8]) -> (Vec, EncryptionMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mode_detector` is never used [INFO] [stdout] --> src/set2/challenge11.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn mode_detector() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set2/challenge11.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY` is never used [INFO] [stdout] --> src/set2/challenge12.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const KEY: [u8; 16] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ecb_unknown_key` is never used [INFO] [stdout] --> src/set2/challenge12.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn ecb_unknown_key(plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_block_size` is never used [INFO] [stdout] --> src/set2/challenge12.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn discover_block_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_secret_string` is never used [INFO] [stdout] --> src/set2/challenge12.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn decrypt_secret_string() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email`, `uid`, and `role` are never read [INFO] [stdout] --> src/set2/challenge13.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Profile { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 14 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub uid: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Profile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes128_single_block_decrypt` is never used [INFO] [stdout] --> src/set1/challenge7.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn aes128_single_block_decrypt(ciphertext: &[u8], key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge7.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_score` is never used [INFO] [stdout] --> src/set1/challenge8.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn repeating_score(ciphertext: &Vec, length: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge8.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CBC` and `ECB` are never constructed [INFO] [stdout] --> src/set2/challenge11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum EncryptionMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 12 | CBC, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ECB, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_block` is never used [INFO] [stdout] --> src/set2/challenge11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn random_block() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2/challenge11.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn encryption_oracle(input: &[u8]) -> (Vec, EncryptionMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mode_detector` is never used [INFO] [stdout] --> src/set2/challenge11.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn mode_detector() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set2/challenge11.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY` is never used [INFO] [stdout] --> src/set2/challenge12.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const KEY: [u8; 16] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ecb_unknown_key` is never used [INFO] [stdout] --> src/set2/challenge12.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn ecb_unknown_key(plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_block_size` is never used [INFO] [stdout] --> src/set2/challenge12.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn discover_block_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_secret_string` is never used [INFO] [stdout] --> src/set2/challenge12.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn decrypt_secret_string() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "d99e7d739ff1cbcbf7b1e269c9542ad08ddd9c21db5e926e683434fbd49351f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d99e7d739ff1cbcbf7b1e269c9542ad08ddd9c21db5e926e683434fbd49351f0", kill_on_drop: false }` [INFO] [stdout] d99e7d739ff1cbcbf7b1e269c9542ad08ddd9c21db5e926e683434fbd49351f0 [INFO] checking pdomenico/cryptopals against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdomenico%2Fcryptopals" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pdomenico/cryptopals on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pdomenico/cryptopals [INFO] finished tweaking git repo https://github.com/pdomenico/cryptopals [INFO] tweaked toml for git repo https://github.com/pdomenico/cryptopals written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pdomenico/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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d22b5e35b1ac0773ed95383f35b8dc31d749ba4ed91ccb16093b41842b8c07c7 [INFO] running `Command { std: "docker" "start" "-a" "d22b5e35b1ac0773ed95383f35b8dc31d749ba4ed91ccb16093b41842b8c07c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d22b5e35b1ac0773ed95383f35b8dc31d749ba4ed91ccb16093b41842b8c07c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d22b5e35b1ac0773ed95383f35b8dc31d749ba4ed91ccb16093b41842b8c07c7", kill_on_drop: false }` [INFO] [stdout] d22b5e35b1ac0773ed95383f35b8dc31d749ba4ed91ccb16093b41842b8c07c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e320888b8147c7ce1f3860522e0093411adae9d5ba8673c0fc430616321f4c7 [INFO] running `Command { std: "docker" "start" "-a" "7e320888b8147c7ce1f3860522e0093411adae9d5ba8673c0fc430616321f4c7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Checking cpufeatures v0.2.7 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking aes v0.8.2 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `challenge5` [INFO] [stdout] --> src/set1/challenge6.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::set1::{challenge3, challenge5}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `BlockEncrypt` [INFO] [stdout] --> src/set1/challenge7.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge3` [INFO] [stdout] --> src/set1/challenge8.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{challenge1, challenge3}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockCipher` [INFO] [stdout] --> src/set2/challenge10.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::encode` [INFO] [stdout] --> src/set2/challenge11.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::encode; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/set2/challenge11.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/set2/challenge12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::set2::challenge13::*` [INFO] [stdout] --> src/set2/tests.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | use crate::set2::challenge13::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/set2/tests.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | mod challenge13_tests { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge1`, `challenge3`, `challenge4`, `challenge5`, `challenge6`, `challenge7`, and `challenge8` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use set1::{challenge1, challenge3, challenge4, challenge5, challenge6, challenge7, challenge8}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge11` and `challenge12` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use set2::{challenge11, challenge12, challenge13}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge5` [INFO] [stdout] --> src/set1/challenge6.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::set1::{challenge3, challenge5}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `BlockEncrypt` [INFO] [stdout] --> src/set1/challenge7.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `challenge3` [INFO] [stdout] --> src/set1/challenge8.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{challenge1, challenge3}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockCipher` [INFO] [stdout] --> src/set2/challenge10.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::cipher::{generic_array::GenericArray, BlockCipher, BlockDecrypt, BlockEncrypt, KeyInit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::encode` [INFO] [stdout] --> src/set2/challenge11.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::encode; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/set2/challenge11.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/set2/challenge12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge1`, `challenge3`, `challenge4`, `challenge5`, `challenge6`, `challenge7`, and `challenge8` [INFO] [stdout] --> src/main.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use set1::{challenge1, challenge3, challenge4, challenge5, challenge6, challenge7, challenge8}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `challenge11` and `challenge12` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use set2::{challenge11, challenge12, challenge13}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes128_single_block_decrypt` is never used [INFO] [stdout] --> src/set1/challenge7.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn aes128_single_block_decrypt(ciphertext: &[u8], key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge7.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_score` is never used [INFO] [stdout] --> src/set1/challenge8.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn repeating_score(ciphertext: &Vec, length: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge8.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbc_encrypt` is never used [INFO] [stdout] --> src/set2/challenge10.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn cbc_encrypt(plaintext: &[u8], iv: &[u8], key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cbc_decrypt` is never used [INFO] [stdout] --> src/set2/challenge10.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn cbc_decrypt(cyphertext: &[u8], iv: &[u8], key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CBC` and `ECB` are never constructed [INFO] [stdout] --> src/set2/challenge11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum EncryptionMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 12 | CBC, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ECB, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_block` is never used [INFO] [stdout] --> src/set2/challenge11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn random_block() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2/challenge11.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn encryption_oracle(input: &[u8]) -> (Vec, EncryptionMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mode_detector` is never used [INFO] [stdout] --> src/set2/challenge11.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn mode_detector() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set2/challenge11.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY` is never used [INFO] [stdout] --> src/set2/challenge12.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const KEY: [u8; 16] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ecb_unknown_key` is never used [INFO] [stdout] --> src/set2/challenge12.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn ecb_unknown_key(plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_block_size` is never used [INFO] [stdout] --> src/set2/challenge12.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn discover_block_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_secret_string` is never used [INFO] [stdout] --> src/set2/challenge12.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn decrypt_secret_string() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email`, `uid`, and `role` are never read [INFO] [stdout] --> src/set2/challenge13.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Profile { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 14 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub uid: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Profile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge4.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | let file = File::open(filename).unwrap(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | / BufReader::new(file) [INFO] [stdout] 11 | | .lines() [INFO] [stdout] 12 | | .map(|line| line.unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge4.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|line| challenge1::hex_decode(line.as_str()).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge8.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .map(|l| challenge1::hex_decode(l.unwrap().as_str()).unwrap()) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set2/challenge10.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | let cypher = Aes128::new(GenericArray::from_slice(key)); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | [INFO] [stdout] 10 | / (0..plaintext.len()) [INFO] [stdout] 11 | | .step_by(16) [INFO] [stdout] 12 | | .map(|i| { [INFO] [stdout] 13 | | let mut block = GenericArray::clone_from_slice(&plaintext[i..i + 16]); [INFO] [stdout] ... | [INFO] [stdout] 16 | | }) [INFO] [stdout] 17 | | .flatten() [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set2/challenge10.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | let cypher = Aes128::new(GenericArray::from_slice(key)); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 53 | / (0..plaintext.len()) [INFO] [stdout] 54 | | .step_by(16) [INFO] [stdout] 55 | | .map(|i| { [INFO] [stdout] 56 | | let xored_block = plaintext[i..i + 16] [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | .flatten() [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (bin "cryptopals") due to 6 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `aes128_single_block_decrypt` is never used [INFO] [stdout] --> src/set1/challenge7.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn aes128_single_block_decrypt(ciphertext: &[u8], key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge7.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_score` is never used [INFO] [stdout] --> src/set1/challenge8.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn repeating_score(ciphertext: &Vec, length: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set1/challenge8.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CBC` and `ECB` are never constructed [INFO] [stdout] --> src/set2/challenge11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum EncryptionMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 12 | CBC, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ECB, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_block` is never used [INFO] [stdout] --> src/set2/challenge11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn random_block() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2/challenge11.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn encryption_oracle(input: &[u8]) -> (Vec, EncryptionMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mode_detector` is never used [INFO] [stdout] --> src/set2/challenge11.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn mode_detector() -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/set2/challenge11.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY` is never used [INFO] [stdout] --> src/set2/challenge12.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const KEY: [u8; 16] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ecb_unknown_key` is never used [INFO] [stdout] --> src/set2/challenge12.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn ecb_unknown_key(plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `discover_block_size` is never used [INFO] [stdout] --> src/set2/challenge12.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn discover_block_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_secret_string` is never used [INFO] [stdout] --> src/set2/challenge12.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn decrypt_secret_string() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge4.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | let file = File::open(filename).unwrap(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | / BufReader::new(file) [INFO] [stdout] 11 | | .lines() [INFO] [stdout] 12 | | .map(|line| line.unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge4.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | .map(|line| challenge1::hex_decode(line.as_str()).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set1/challenge8.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .map(|l| challenge1::hex_decode(l.unwrap().as_str()).unwrap()) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set2/challenge10.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | let cypher = Aes128::new(GenericArray::from_slice(key)); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | [INFO] [stdout] 10 | / (0..plaintext.len()) [INFO] [stdout] 11 | | .step_by(16) [INFO] [stdout] 12 | | .map(|i| { [INFO] [stdout] 13 | | let mut block = GenericArray::clone_from_slice(&plaintext[i..i + 16]); [INFO] [stdout] ... | [INFO] [stdout] 16 | | }) [INFO] [stdout] 17 | | .flatten() [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/set2/challenge10.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | let cypher = Aes128::new(GenericArray::from_slice(key)); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 53 | / (0..plaintext.len()) [INFO] [stdout] 54 | | .step_by(16) [INFO] [stdout] 55 | | .map(|i| { [INFO] [stdout] 56 | | let xored_block = plaintext[i..i + 16] [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | .flatten() [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (bin "cryptopals" test) due to 6 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7e320888b8147c7ce1f3860522e0093411adae9d5ba8673c0fc430616321f4c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e320888b8147c7ce1f3860522e0093411adae9d5ba8673c0fc430616321f4c7", kill_on_drop: false }` [INFO] [stdout] 7e320888b8147c7ce1f3860522e0093411adae9d5ba8673c0fc430616321f4c7