[INFO] cloning repository https://github.com/scttnlsn/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/scttnlsn/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscttnlsn%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscttnlsn%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac621b988f35a676e4f1528ed9ed85071a1accc5 [INFO] testing scttnlsn/cryptopals against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscttnlsn%2Fcryptopals" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/scttnlsn/cryptopals on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/scttnlsn/cryptopals [INFO] finished tweaking git repo https://github.com/scttnlsn/cryptopals [INFO] tweaked toml for git repo https://github.com/scttnlsn/cryptopals written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/scttnlsn/cryptopals already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6dcec0f7901048a7426d949023e5e965201e28091cf5e79e4e2ef516620ef6ba [INFO] running `Command { std: "docker" "start" "-a" "6dcec0f7901048a7426d949023e5e965201e28091cf5e79e4e2ef516620ef6ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6dcec0f7901048a7426d949023e5e965201e28091cf5e79e4e2ef516620ef6ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dcec0f7901048a7426d949023e5e965201e28091cf5e79e4e2ef516620ef6ba", kill_on_drop: false }` [INFO] [stdout] 6dcec0f7901048a7426d949023e5e965201e28091cf5e79e4e2ef516620ef6ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] daf1ecf97dd2ae92e5ca7c45aa82bdc3461d6454e7e2a76a764c1cded9c7392c [INFO] running `Command { std: "docker" "start" "-a" "daf1ecf97dd2ae92e5ca7c45aa82bdc3461d6454e7e2a76a764c1cded9c7392c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling openssl v0.10.24 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling openssl-sys v0.9.49 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Compiling backtrace v0.3.40 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling synstructure v0.12.1 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant is never used: `BLOCKSIZE` [INFO] [stdout] --> src/aes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const BLOCKSIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ECB` [INFO] [stdout] --> src/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ECB, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `EncMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CBC` [INFO] [stdout] --> src/aes.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | CBC, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `EncMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PaddingError` [INFO] [stdout] --> src/aes.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | PaddingError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pkcs7_pad` [INFO] [stdout] --> src/aes.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn pkcs7_pad(byte_array: &ByteArray, blocksize: usize) -> ByteArray { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pkcs7_unpad` [INFO] [stdout] --> src/aes.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn pkcs7_unpad(byte_array: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ecb_cipher` [INFO] [stdout] --> src/aes.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn ecb_cipher(mode: Mode, key: &[u8], data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encrypt_ecb` [INFO] [stdout] --> src/aes.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn encrypt_ecb(data: &ByteArray, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decrypt_ecb` [INFO] [stdout] --> src/aes.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn decrypt_ecb(data: &ByteArray, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decrypt_cbc` [INFO] [stdout] --> src/aes.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn decrypt_cbc(data: &ByteArray, key: &[u8], iv: ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encrypt_cbc` [INFO] [stdout] --> src/aes.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn encrypt_cbc(data: &ByteArray, key: &[u8], iv: ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/aes.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/aes.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn encrypt(&self, data: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decrypt` [INFO] [stdout] --> src/aes.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn decrypt(&self, ciphertext: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_padding` [INFO] [stdout] --> src/aes.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn check_padding(&self, ciphertext: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_bytes` [INFO] [stdout] --> src/aes.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn random_bytes(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_key` [INFO] [stdout] --> src/aes.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn random_key() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `unique_blocks` [INFO] [stdout] --> src/aes.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn unique_blocks(data: &ByteArray) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `detect_mode` [INFO] [stdout] --> src/aes.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn detect_mode(data: &ByteArray) -> EncMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/aes.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | data: &'a ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Oracle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `key` [INFO] [stdout] --> src/aes.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 185 | key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Oracle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prefix` [INFO] [stdout] --> src/aes.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 186 | prefix: ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Oracle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/aes.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/aes.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn new(data: &'a ByteArray) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_prefixed` [INFO] [stdout] --> src/aes.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn new_prefixed(data: &'a ByteArray, n: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/aes.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn encrypt(&self, input: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `detect_blocksize` [INFO] [stdout] --> src/aes.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn detect_blocksize(data: &ByteArray) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `detect_data_len` [INFO] [stdout] --> src/aes.rs:232:4 [INFO] [stdout] | [INFO] [stdout] 232 | fn detect_data_len(oracle: &Oracle) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `detect_prefix_len` [INFO] [stdout] --> src/aes.rs:249:8 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn detect_prefix_len(oracle: &Oracle) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `crack_ecb` [INFO] [stdout] --> src/aes.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn crack_ecb(oracle: &Oracle) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `crack_cbc` [INFO] [stdout] --> src/aes.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn crack_cbc(cbc: &CBC, ciphertext: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/aes.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new(input: &str, cbc: &'a CBC) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decrypt` [INFO] [stdout] --> src/aes.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn decrypt(ciphertext: &ByteArray, cbc: &'a CBC) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt` [INFO] [stdout] --> src/aes.rs:398:12 [INFO] [stdout] | [INFO] [stdout] 398 | pub fn encrypt(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_admin` [INFO] [stdout] --> src/aes.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn is_admin(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `encrypted` [INFO] [stdout] --> src/cipher.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | encrypted: &'a ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/cipher.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `decrypted` [INFO] [stdout] --> src/cipher.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | decrypted: ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/cipher.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `key` [INFO] [stdout] --> src/cipher.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | key: ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/cipher.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `score` [INFO] [stdout] --> src/cipher.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | score: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/cipher.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `letter_freq` [INFO] [stdout] --> src/cipher.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn letter_freq(c: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `english_score` [INFO] [stdout] --> src/cipher.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn english_score(s: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_key` [INFO] [stdout] --> src/cipher.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn find_key(encrypted: &ByteArray) -> Score { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encrypt` [INFO] [stdout] --> src/cipher.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn encrypt(decrypted: &ByteArray, key: &str) -> ByteArray { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `keysize` [INFO] [stdout] --> src/cipher.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn keysize(ciphertext: &ByteArray) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_key_of_size` [INFO] [stdout] --> src/cipher.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn find_key_of_size(ciphertext: &ByteArray, keysize: usize) -> ByteArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CTR` [INFO] [stdout] --> src/ctr.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct CTR { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ctr.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(key: Vec, nonce: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cipher` [INFO] [stdout] --> src/ctr.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn cipher(&self, data: &ByteArray) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nonce_bytes` [INFO] [stdout] --> src/ctr.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn nonce_bytes(&self, counter: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `crack_fixed_nonce_subst` [INFO] [stdout] --> src/ctr.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn crack_fixed_nonce_subst(ciphertexts: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `crack_fixed_nonce_stat` [INFO] [stdout] --> src/ctr.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn crack_fixed_nonce_stat(ciphertexts: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn from_bytes(bytes: Vec) -> ByteArray { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_hex` [INFO] [stdout] --> src/encoding.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn from_hex(hex: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_base64` [INFO] [stdout] --> src/encoding.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn from_base64(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/encoding.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn from_string(s: &str) -> ByteArray { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/encoding.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bytes` [INFO] [stdout] --> src/encoding.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `string` [INFO] [stdout] --> src/encoding.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hex` [INFO] [stdout] --> src/encoding.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn hex(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base64` [INFO] [stdout] --> src/encoding.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn base64(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `xor` [INFO] [stdout] --> src/encoding.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn xor(&self, other: &ByteArray) -> ByteArray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/encoding.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn hamming_distance(&self, other: &ByteArray) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prefix` [INFO] [stdout] --> src/encoding.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn prefix(&self, prefix: &ByteArray) -> ByteArray { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `profile_for` [INFO] [stdout] --> src/profile.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn profile_for(email: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encrypt_profile` [INFO] [stdout] --> src/profile.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn encrypt_profile(profile: &str, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decrypt_profile` [INFO] [stdout] --> src/profile.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn decrypt_profile(encrypted: &ByteArray, key: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.38s [INFO] running `Command { std: "docker" "inspect" "daf1ecf97dd2ae92e5ca7c45aa82bdc3461d6454e7e2a76a764c1cded9c7392c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "daf1ecf97dd2ae92e5ca7c45aa82bdc3461d6454e7e2a76a764c1cded9c7392c", kill_on_drop: false }` [INFO] [stdout] daf1ecf97dd2ae92e5ca7c45aa82bdc3461d6454e7e2a76a764c1cded9c7392c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49eff0c763cebb0a048c759ab33f6b0038099e0401a38f19cc7e1fc9b81e5239 [INFO] running `Command { std: "docker" "start" "-a" "49eff0c763cebb0a048c759ab33f6b0038099e0401a38f19cc7e1fc9b81e5239", kill_on_drop: false }` [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `encrypted` [INFO] [stdout] --> src/cipher.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | encrypted: &'a ByteArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/cipher.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.53s [INFO] running `Command { std: "docker" "inspect" "49eff0c763cebb0a048c759ab33f6b0038099e0401a38f19cc7e1fc9b81e5239", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49eff0c763cebb0a048c759ab33f6b0038099e0401a38f19cc7e1fc9b81e5239", kill_on_drop: false }` [INFO] [stdout] 49eff0c763cebb0a048c759ab33f6b0038099e0401a38f19cc7e1fc9b81e5239 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 91a8b3a2cdbfd114920aae0849bc6f5fbf183a3a48f4c3700088f00136dcedd9 [INFO] running `Command { std: "docker" "start" "-a" "91a8b3a2cdbfd114920aae0849bc6f5fbf183a3a48f4c3700088f00136dcedd9", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `encrypted` [INFO] [stderr] --> src/cipher.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | encrypted: &'a ByteArray, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Score` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/cipher.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `cryptopals` (bin "cryptopals" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cryptopals-32cba831a0dbc9cf) [INFO] [stdout] running 29 tests [INFO] [stdout] test aes::tests::test_detect_prefix_len ... ok [INFO] [stdout] test aes::tests::test_detect_blocksize ... ok [INFO] [stdout] test aes::tests::test_decrypt ... ok [INFO] [stdout] test aes::tests::test_decrypt_cbc ... ok [INFO] [stdout] test aes::tests::test_encrypt_decrypt ... ok [INFO] [stdout] test aes::tests::test_pkcs7_pad ... ok [INFO] [stdout] test aes::tests::test_pkcs7_unpad ... ok [INFO] [stdout] test aes::tests::test_random_bytes ... ok [INFO] [stdout] test aes::tests::test_user_profile_admin ... ok [INFO] [stdout] test cipher::tests::test_encrypt ... ok [INFO] [stdout] test aes::tests::test_user_profile ... ok [INFO] [stdout] test aes::tests::test_detect_mode ... ok [INFO] [stdout] test ctr::tests::test_ctr_cipher ... ok [INFO] [stdout] test encoding::tests::test_base64 ... ok [INFO] [stdout] test encoding::tests::test_hamming_distance ... ok [INFO] [stdout] test encoding::tests::test_hex ... ok [INFO] [stdout] test encoding::tests::test_xor ... ok [INFO] [stdout] test profile::tests::test_admin_profile ... ok [INFO] [stdout] test cipher::tests::test_find_key ... ok [INFO] [stdout] test profile::tests::test_profile_for ... ok [INFO] [stdout] test profile::tests::test_encrypt_decrypt_profile ... ok [INFO] [stdout] test aes::tests::test_detect_aes ... ok [INFO] [stdout] test aes::tests::test_crack_ecb_unprefixed ... ok [INFO] [stdout] test aes::tests::test_crack_ecb_prefixed ... ok [INFO] [stdout] test ctr::tests::test_break_fixed_nonce_stat ... ok [INFO] [stdout] test cipher::tests::test_break_repeating_key_xor ... ok [INFO] [stdout] test aes::tests::test_crack_cbc ... ok [INFO] [stdout] test cipher::tests::test_detect_single_character ... ok [INFO] [stdout] test ctr::tests::test_break_fixed_nonce_subst ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.15s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "91a8b3a2cdbfd114920aae0849bc6f5fbf183a3a48f4c3700088f00136dcedd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91a8b3a2cdbfd114920aae0849bc6f5fbf183a3a48f4c3700088f00136dcedd9", kill_on_drop: false }` [INFO] [stdout] 91a8b3a2cdbfd114920aae0849bc6f5fbf183a3a48f4c3700088f00136dcedd9