[INFO] cloning repository https://github.com/watason/angou-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/watason/angou-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc11cce109ef972189f252c2f6e02bea0c14799e [INFO] building watason/angou-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwatason%2Fangou-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/watason/angou-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/watason/angou-rs [INFO] finished tweaking git repo https://github.com/watason/angou-rs [INFO] tweaked toml for git repo https://github.com/watason/angou-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/watason/angou-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e390b3cd38544c5171ec693b58371c817552ddac38bea44fa01b3da8358c587c [INFO] running `Command { std: "docker" "start" "-a" "e390b3cd38544c5171ec693b58371c817552ddac38bea44fa01b3da8358c587c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e390b3cd38544c5171ec693b58371c817552ddac38bea44fa01b3da8358c587c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e390b3cd38544c5171ec693b58371c817552ddac38bea44fa01b3da8358c587c", kill_on_drop: false }` [INFO] [stdout] e390b3cd38544c5171ec693b58371c817552ddac38bea44fa01b3da8358c587c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0a1b668e9ab9fa810ed2ab187fe2f9b51962961ed708f9e46439961f5a16804 [INFO] running `Command { std: "docker" "start" "-a" "d0a1b668e9ab9fa810ed2ab187fe2f9b51962961ed708f9e46439961f5a16804", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling testf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut vec_u8 = x.to_be_bytes(); [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: `nk` [INFO] [stdout] --> src/cipher/aes.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:232:49 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::encrypt` [INFO] [stdout] --> src/cipher/aes.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::encrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::decrypt` [INFO] [stdout] --> src/cipher/aes.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::decrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 30 | sbox : [u8;256], [INFO] [stdout] 31 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IV`, `new`, `hash`, `compress`, and `g` are never used [INFO] [stdout] --> src/cipher/blake.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Blake2 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | //IV [INFO] [stdout] 14 | const IV: [u64; 8] = [ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hash(&self, m: Vec, nn: u8, key: Key) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn compress(h: Vec, chunk: Vec, t: u128, last: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn g(a: u64, b: u64, c: u64, d: u64, x: u64, y: u64) -> (u64, u64, u64, u64) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `quarter_round`, `init`, `block`, and `encode` are never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn quarter_round(state: &mut [u32], i: usize, j: usize, k: usize, l: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn init(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn block(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn encode(key: &[u32], counter: u32, nonce: &[u32], plain_text: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_gf::aesGF` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use domain::value_object::aes_gf::aesGF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_type` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::value_object::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cipher::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cipher::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::domain::value_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object::aes_type::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::domain::value_object::aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut vec_u8 = x.to_be_bytes(); [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: `nk` [INFO] [stdout] --> src/cipher/aes.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:232:49 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::encrypt` [INFO] [stdout] --> src/cipher/aes.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::encrypt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::decrypt` [INFO] [stdout] --> src/cipher/aes.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::decrypt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inv` is never used [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl aesGF{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 46 | pub fn inv(self)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Aes192` and `Aes256` are never constructed [INFO] [stdout] --> src/domain/value_object/aes_type.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BitType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Aes192, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | Aes256 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BitType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nk_nr` is never used [INFO] [stdout] --> src/domain/value_object/aes_type.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BitType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 13 | pub fn nk_nr(self)->(usize,usize){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cbc` is never constructed [INFO] [stdout] --> src/domain/value_object/aes_type.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Mode{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | Cbc(Vec) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AES` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AES{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `RCON`, `new`, `key_expansion`, `encrypt`, and `decrypt` are never used [INFO] [stdout] --> src/cipher/aes.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 33 | impl AES{ [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 34 | const RCON : [u32;11] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn key_expansion(&self,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_sbox` is never used [INFO] [stdout] --> src/cipher/aes.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 155 | pub(crate) fn make_sbox() -> ([u8;256],[u8;256]){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shift_row` is never used [INFO] [stdout] --> src/cipher/aes.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn shift_row(blocks : Vec,inverse : bool) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub_bytes` is never used [INFO] [stdout] --> src/cipher/aes.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn sub_bytes(blocks : Vec,inverse : bool) ->Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_column` is never used [INFO] [stdout] --> src/cipher/aes.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn mix_column(blocks: Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_round_key` is never used [INFO] [stdout] --> src/cipher/aes.rs:232:4 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `padding_pkcs_7` is never used [INFO] [stdout] --> src/cipher/aes.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn padding_pkcs_7(input : Vec)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IV`, `new`, `hash`, `compress`, and `g` are never used [INFO] [stdout] --> src/cipher/blake.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Blake2 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | //IV [INFO] [stdout] 14 | const IV: [u64; 8] = [ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hash(&self, m: Vec, nn: u8, key: Key) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn compress(h: Vec, chunk: Vec, t: u128, last: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn g(a: u64, b: u64, c: u64, d: u64, x: u64, y: u64) -> (u64, u64, u64, u64) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/chacha.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Block = [u32; 16]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChaCha` is never constructed [INFO] [stdout] --> src/cipher/chacha.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `quarter_round`, `init`, `block`, `serialize`, and `encode` are never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn quarter_round(state: &mut [u32], i: usize, j: usize, k: usize, l: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn init(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn block(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn serialize(state: &[u32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn encode(key: &[u32], counter: u32, nonce: &[u32], plain_text: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.44s [INFO] running `Command { std: "docker" "inspect" "d0a1b668e9ab9fa810ed2ab187fe2f9b51962961ed708f9e46439961f5a16804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0a1b668e9ab9fa810ed2ab187fe2f9b51962961ed708f9e46439961f5a16804", kill_on_drop: false }` [INFO] [stdout] d0a1b668e9ab9fa810ed2ab187fe2f9b51962961ed708f9e46439961f5a16804 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2051c1d0dbb96883de936f55ac22ea3c82f010b5865b7c9419d05cfde522641f [INFO] running `Command { std: "docker" "start" "-a" "2051c1d0dbb96883de936f55ac22ea3c82f010b5865b7c9419d05cfde522641f", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut vec_u8 = x.to_be_bytes(); [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: `nk` [INFO] [stdout] --> src/cipher/aes.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:232:49 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::encrypt` [INFO] [stdout] --> src/cipher/aes.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::encrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `AES::decrypt` [INFO] [stdout] --> src/cipher/aes.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `AES::decrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling testf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 30 | sbox : [u8;256], [INFO] [stdout] 31 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blake2` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Key` is never constructed [INFO] [stdout] --> src/cipher/blake.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `IV`, `new`, `hash`, `compress`, and `g` are never used [INFO] [stdout] --> src/cipher/blake.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Blake2 { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | //IV [INFO] [stdout] 14 | const IV: [u64; 8] = [ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hash(&self, m: Vec, nn: u8, key: Key) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn compress(h: Vec, chunk: Vec, t: u128, last: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn g(a: u64, b: u64, c: u64, d: u64, x: u64, y: u64) -> (u64, u64, u64, u64) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `quarter_round`, `init`, `block`, and `encode` are never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn quarter_round(state: &mut [u32], i: usize, j: usize, k: usize, l: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn init(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn block(key: &[u32], counter: u32, nonce: &[u32]) -> Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn encode(key: &[u32], counter: u32, nonce: &[u32], plain_text: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/cipher/blake.rs:203:7 [INFO] [stdout] | [INFO] [stdout] 203 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChaChaRng` and `rand_core::SeedableRng` [INFO] [stdout] --> src/cipher/chacha.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng, ChaChaRng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aesGF` should have an upper camel case name [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct aesGF{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `AesGf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::aes_type` [INFO] [stdout] --> src/domain/value_object/blocks.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/domain/value_object/aes_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/cipher/aes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocks` [INFO] [stdout] --> src/cipher/aes.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::value_object::{aes_type, blocks}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes_type::*` [INFO] [stdout] --> src/cipher/aes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::*` [INFO] [stdout] --> src/cipher/blake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/cipher/blake.rs:203:7 [INFO] [stdout] | [INFO] [stdout] 203 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChaChaRng` and `rand_core::SeedableRng` [INFO] [stdout] --> src/cipher/chacha.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng, ChaChaRng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_gf::aesGF` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use domain::value_object::aes_gf::aesGF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::value_object::aes_type` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::value_object::aes_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cipher::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cipher::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::domain::value_object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::value_object::aes_type::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::domain::value_object::aes_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut vec_u8 = x.to_be_bytes(); [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: `nk` [INFO] [stdout] --> src/cipher/aes.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:232:49 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut vec_u8 = x.to_be_bytes(); [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: `nk` [INFO] [stdout] --> src/cipher/aes.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nk` [INFO] [stdout] --> src/cipher/aes.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let (nk,nr) = key.bit_type.nk_nr(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/aes.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | for mut item in ret.iter_mut(){ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inverse` [INFO] [stdout] --> src/cipher/aes.rs:232:49 [INFO] [stdout] | [INFO] [stdout] 232 | fn add_round_key(blocks: Vec,key : Vec,inverse : bool)->Vec{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inverse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/aes.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..value{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/blake.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let mut m: Vec = "test".as_bytes().to_vec(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/blake.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cipher/chacha.rs:455:13 [INFO] [stdout] | [INFO] [stdout] 455 | .map(|x| ans.gen::()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/blake.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let mut m: Vec = "test".as_bytes().to_vec(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/value_object/aes_gf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..253 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cipher/chacha.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `le_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let le_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_le_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cipher/chacha.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut encrypt_message = plain_text [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `be_to_u32` [INFO] [stdout] --> src/cipher/chacha.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let be_to_u32 = |x: &[u8]| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_be_to_u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cipher/chacha.rs:455:13 [INFO] [stdout] | [INFO] [stdout] 455 | .map(|x| ans.gen::()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `aes::AES::encrypt` [INFO] [stdout] --> src/cipher/aes.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `aes::AES::encrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `aes::AES::decrypt` [INFO] [stdout] --> src/cipher/aes.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `aes::AES::decrypt` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 30 | sbox : [u8;256], [INFO] [stdout] 31 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/cipher/blake.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | h: [u64; 8], [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Blake2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `aes::AES::encrypt` [INFO] [stdout] --> src/cipher/aes.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn encrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `aes::AES::encrypt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `aes::Key` is more private than the item `aes::AES::decrypt` [INFO] [stdout] --> src/cipher/aes.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn decrypt(&self,input : Vec,key : Key)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `aes::AES::decrypt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `aes::Key` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/cipher/aes.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cbc` is never constructed [INFO] [stdout] --> src/domain/value_object/aes_type.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Mode{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | Cbc(Vec) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mode` is never read [INFO] [stdout] --> src/cipher/aes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Key{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | mode : aes_type::Mode [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Block` is never used [INFO] [stdout] --> src/cipher/aes.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type Block = u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/cipher/aes.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type Word = [Block;4]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/cipher/aes.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CommonKeyRayer` is never used [INFO] [stdout] --> src/cipher/aes.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait CommonKeyRayer{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_sbox` is never read [INFO] [stdout] --> src/cipher/aes.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AES{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 30 | sbox : [u8;256], [INFO] [stdout] 31 | inv_sbox:[u8;256] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AES` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `padding_pkcs_7` is never used [INFO] [stdout] --> src/cipher/aes.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn padding_pkcs_7(input : Vec)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/cipher/blake.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct Blake2 { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | h: [u64; 8], [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Blake2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/cipher/chacha.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ChaCha { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | state: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChaCha` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cipher/chacha.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ChaCha { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cipher/chacha.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 162 | let mut chunk = chunk.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.82s [INFO] running `Command { std: "docker" "inspect" "2051c1d0dbb96883de936f55ac22ea3c82f010b5865b7c9419d05cfde522641f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2051c1d0dbb96883de936f55ac22ea3c82f010b5865b7c9419d05cfde522641f", kill_on_drop: false }` [INFO] [stdout] 2051c1d0dbb96883de936f55ac22ea3c82f010b5865b7c9419d05cfde522641f