[INFO] cloning repository https://github.com/deniscastelo/mu_cipher [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/deniscastelo/mu_cipher" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeniscastelo%2Fmu_cipher", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeniscastelo%2Fmu_cipher'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c715ea7821a8952314df38852152c8891d569a07 [INFO] checking deniscastelo/mu_cipher against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeniscastelo%2Fmu_cipher" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/deniscastelo/mu_cipher on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/deniscastelo/mu_cipher [INFO] finished tweaking git repo https://github.com/deniscastelo/mu_cipher [INFO] tweaked toml for git repo https://github.com/deniscastelo/mu_cipher written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/deniscastelo/mu_cipher 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f16688161709529cb60b7d0e82cb8c3b7f1eeef5360df33663f519f657c3c3bc [INFO] running `Command { std: "docker" "start" "-a" "f16688161709529cb60b7d0e82cb8c3b7f1eeef5360df33663f519f657c3c3bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f16688161709529cb60b7d0e82cb8c3b7f1eeef5360df33663f519f657c3c3bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f16688161709529cb60b7d0e82cb8c3b7f1eeef5360df33663f519f657c3c3bc", kill_on_drop: false }` [INFO] [stdout] f16688161709529cb60b7d0e82cb8c3b7f1eeef5360df33663f519f657c3c3bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bce1efe1ef3fd34413cd7ce34472c849b83b780c940fa0d552aa5840a0e6d567 [INFO] running `Command { std: "docker" "start" "-a" "bce1efe1ef3fd34413cd7ce34472c849b83b780c940fa0d552aa5840a0e6d567", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking cast5 v0.11.1 [INFO] [stderr] Checking mu_cipher v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ThreeWayCipher` [INFO] [stdout] --> src/main.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use ciphers::three_way_cipher::{ThreeWayCipher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::mars_cipher::MarsCipher` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ciphers::mars_cipher::MarsCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::ICipher` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ciphers::ICipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::tea_cipher::TeaCipher` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ciphers::tea_cipher::TeaCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::gost_cipher::GOSTCipher` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ciphers::gost_cipher::GOSTCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ciphers/mars_cipher.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | m |= ((m << 1) & !x & 0x80000000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 166 - m |= ((m << 1) & !x & 0x80000000); [INFO] [stdout] 166 + m |= (m << 1) & !x & 0x80000000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/ciphers/cast5_cipher.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | .wrapping_sub((S3[((temp >> 8) & 0xff) as usize])) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - .wrapping_sub((S3[((temp >> 8) & 0xff) as usize])) [INFO] [stdout] 217 + .wrapping_sub(S3[((temp >> 8) & 0xff) as usize]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ThreeWayCipher` [INFO] [stdout] --> src/main.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use ciphers::three_way_cipher::{ThreeWayCipher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::mars_cipher::MarsCipher` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ciphers::mars_cipher::MarsCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::ICipher` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ciphers::ICipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::tea_cipher::TeaCipher` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ciphers::tea_cipher::TeaCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ciphers::gost_cipher::GOSTCipher` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ciphers::gost_cipher::GOSTCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ciphers/mars_cipher.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | m |= ((m << 1) & !x & 0x80000000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 166 - m |= ((m << 1) & !x & 0x80000000); [INFO] [stdout] 166 + m |= (m << 1) & !x & 0x80000000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/ciphers/cast5_cipher.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | .wrapping_sub((S3[((temp >> 8) & 0xff) as usize])) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - .wrapping_sub((S3[((temp >> 8) & 0xff) as usize])) [INFO] [stdout] 217 + .wrapping_sub(S3[((temp >> 8) & 0xff) as usize]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cast5::cipher::KeyInit` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cast5::cipher::KeyInit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_len` [INFO] [stdout] --> src/ciphers/mars_cipher.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let key_len = in_key.len() * 8; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ciphers/tea_cipher.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 71 | fn block_decrypt(&self, in_buf: &[u8], len: usize, out_buf: &mut [u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ciphers/tea_cipher.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut block = bytes_to_u32_array(&in_buf[i..i + block_size]); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ciphers/gost_cipher.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | for i in (0..in_buf.len()).step_by(block_size) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ciphers/gost_cipher.rs:96:43 [INFO] [stdout] | [INFO] [stdout] 96 | fn block_decrypt(&self, in_buf: &[u8],len: usize, out_buf: &mut [u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cast5::cipher::KeyInit` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cast5::cipher::KeyInit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `block_decrypt` is never used [INFO] [stdout] --> src/ciphers/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ICipher { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 9 | fn get_block_size(&self) -> usize; [INFO] [stdout] 10 | fn block_decrypt(&self, in_buf: &[u8],len: usize, out_buf: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `START_E` and `new` are never used [INFO] [stdout] --> src/ciphers/three_way_cipher.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 10 | impl ThreeWayCipher { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | const START_E: u32 = 0x0b0b; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ROUNDS`, `new`, `set_key`, `gen_mask`, and `f_ktr` are never used [INFO] [stdout] --> src/ciphers/mars_cipher.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 74 | impl MarsCipher { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 75 | pub const BLOCK_SIZE: usize = 16; [INFO] [stdout] 76 | const ROUNDS: usize = 40; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 77 | [INFO] [stdout] 78 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn set_key(&mut self, in_key: &[u8]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn gen_mask(&self, x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn f_ktr(&self, a: &mut u32, b: &mut u32, c: &mut u32, d: &mut u32, i: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encrypt_block` are never used [INFO] [stdout] --> src/ciphers/tea_cipher.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl TeaCipher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn encrypt_block(&self, data: &mut [u32; 2]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_SIZE` is never used [INFO] [stdout] --> src/ciphers/gost_cipher.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const KEY_SIZE: usize = 32; // 256 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ciphers/gost_cipher.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl GOSTCipher { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new(key: &[u8; KEY_SIZE]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_SIZE` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const KEY_SIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROUNDS` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const ROUNDS: usize = 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBKEYS_COUNT` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const SUBKEYS_COUNT: usize = 52; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IDEACipher` is never constructed [INFO] [stdout] --> src/ciphers/idea_cipher.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IDEACipher { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `generate_subkeys` are never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IDEACipher { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn generate_subkeys(&mut self, key: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_len` [INFO] [stdout] --> src/ciphers/mars_cipher.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let key_len = in_key.len() * 8; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ciphers/tea_cipher.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 71 | fn block_decrypt(&self, in_buf: &[u8], len: usize, out_buf: &mut [u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ciphers/tea_cipher.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut block = bytes_to_u32_array(&in_buf[i..i + block_size]); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ciphers/gost_cipher.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | for i in (0..in_buf.len()).step_by(block_size) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ciphers/gost_cipher.rs:96:43 [INFO] [stdout] | [INFO] [stdout] 96 | fn block_decrypt(&self, in_buf: &[u8],len: usize, out_buf: &mut [u8]) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `block_decrypt` is never used [INFO] [stdout] --> src/ciphers/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ICipher { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 9 | fn get_block_size(&self) -> usize; [INFO] [stdout] 10 | fn block_decrypt(&self, in_buf: &[u8],len: usize, out_buf: &mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `START_E` and `new` are never used [INFO] [stdout] --> src/ciphers/three_way_cipher.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 10 | impl ThreeWayCipher { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | const START_E: u32 = 0x0b0b; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ROUNDS`, `new`, `set_key`, `gen_mask`, and `f_ktr` are never used [INFO] [stdout] --> src/ciphers/mars_cipher.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 74 | impl MarsCipher { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 75 | pub const BLOCK_SIZE: usize = 16; [INFO] [stdout] 76 | const ROUNDS: usize = 40; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 77 | [INFO] [stdout] 78 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn set_key(&mut self, in_key: &[u8]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn gen_mask(&self, x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn f_ktr(&self, a: &mut u32, b: &mut u32, c: &mut u32, d: &mut u32, i: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encrypt_block` are never used [INFO] [stdout] --> src/ciphers/tea_cipher.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl TeaCipher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn encrypt_block(&self, data: &mut [u32; 2]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_SIZE` is never used [INFO] [stdout] --> src/ciphers/gost_cipher.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const KEY_SIZE: usize = 32; // 256 bits [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ciphers/gost_cipher.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl GOSTCipher { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new(key: &[u8; KEY_SIZE]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEY_SIZE` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const KEY_SIZE: usize = 16; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROUNDS` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const ROUNDS: usize = 8; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBKEYS_COUNT` is never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const SUBKEYS_COUNT: usize = 52; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IDEACipher` is never constructed [INFO] [stdout] --> src/ciphers/idea_cipher.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IDEACipher { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `generate_subkeys` are never used [INFO] [stdout] --> src/ciphers/idea_cipher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IDEACipher { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn generate_subkeys(&mut self, key: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.50s [INFO] running `Command { std: "docker" "inspect" "bce1efe1ef3fd34413cd7ce34472c849b83b780c940fa0d552aa5840a0e6d567", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bce1efe1ef3fd34413cd7ce34472c849b83b780c940fa0d552aa5840a0e6d567", kill_on_drop: false }` [INFO] [stdout] bce1efe1ef3fd34413cd7ce34472c849b83b780c940fa0d552aa5840a0e6d567