[INFO] cloning repository https://github.com/mitsu1119/hqc_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mitsu1119/hqc_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmitsu1119%2Fhqc_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmitsu1119%2Fhqc_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa97e3159997a8b52d2ebf826ed22cab12cee35d [INFO] checking mitsu1119/hqc_rust against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmitsu1119%2Fhqc_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mitsu1119/hqc_rust [INFO] finished tweaking git repo https://github.com/mitsu1119/hqc_rust [INFO] tweaked toml for git repo https://github.com/mitsu1119/hqc_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mitsu1119/hqc_rust on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mitsu1119/hqc_rust 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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c89b58100e7792ea93cfa6abb40e62eeb5572eda268819b36dd2c41059003a1d [INFO] running `Command { std: "docker" "start" "-a" "c89b58100e7792ea93cfa6abb40e62eeb5572eda268819b36dd2c41059003a1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c89b58100e7792ea93cfa6abb40e62eeb5572eda268819b36dd2c41059003a1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c89b58100e7792ea93cfa6abb40e62eeb5572eda268819b36dd2c41059003a1d", kill_on_drop: false }` [INFO] [stdout] c89b58100e7792ea93cfa6abb40e62eeb5572eda268819b36dd2c41059003a1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 741342cf980d5aca9fc6f448e3347554dbbf1aea434e51f2c3b833675b322892 [INFO] running `Command { std: "docker" "start" "-a" "741342cf980d5aca9fc6f448e3347554dbbf1aea434e51f2c3b833675b322892", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking hqc_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `Code` is never used [INFO] [stdout] --> src/code.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Code { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DuplicatedHadamard7` is never constructed [INFO] [stdout] --> src/code/duplicated_hadamard.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DuplicatedHadamard7 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fht`, and `decode_from_u128` are never used [INFO] [stdout] --> src/code/duplicated_hadamard.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl DuplicatedHadamard7 { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new(multiplicity: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn fht(a: &mut [i32]) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn decode_from_u128(&self, codes: &[u128]) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hadamard7` is never constructed [INFO] [stdout] --> src/code/hadamard.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Hadamard7; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `m`, `fht`, and `decode_from_u128` are never used [INFO] [stdout] --> src/code/hadamard.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Hadamard7 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn m(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn fht(a: &mut [i32]) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn decode_from_u128(&self, code: u128) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReedSolomon` is never constructed [INFO] [stdout] --> src/code/reed_solomon.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ReedSolomon<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/code/reed_solomon.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> ReedSolomon<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn symbol_field(&self) -> &'a ::SymbolType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn genpoly_mul( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poly_deg( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn align_poly( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn lshift_poly( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn add_poly( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn scalar_mul_poly( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn mul_mod_xm_poly( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn calc_syndrome( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn bm( [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn calc_error_locations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn calc_errors( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQCCode` is never constructed [INFO] [stdout] --> src/hqc/hqc_code.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HQCCode<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hqc/hqc_code.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> HQCCode<'a> { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(param: &'a HQCRSParam<'a>, hadamard_multiplicity: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQCHash` is never constructed [INFO] [stdout] --> src/hqc/hqc_hash.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HQCHash {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hqc/hqc_hash.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 5 | impl HQCHash { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 6 | const HQC_G_DOMAIN: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | const HQC_H_DOMAIN: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | const HQC_I_DOMAIN: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | const HQC_J_DOMAIN: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn G(data: &[u8]) -> [u8; 64] { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn I(data: &[u8]) -> [u8; 64] { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn H(data: &[u8]) -> [u8; 32] { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn J(data: &[u8]) -> [u8; 32] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQC_KEM` is never constructed [INFO] [stdout] --> src/hqc/hqc_kem.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct HQC_KEM<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hqc/hqc_kem.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> HQC_KEM<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 17 | const SEED_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | const SHARED_SECRET_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | pub fn new(param: HQCParam<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn hqc1() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn hqc3() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn hqc5() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn k(&self) -> usize { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn salt_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn keygen_from_seed(&self, seed_kem: &[u8]) -> (EncryptionKeyKEM, DecryptionKeyKEM) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn encaps_from_m_salt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn keygen(&self) -> (EncryptionKeyKEM, DecryptionKeyKEM) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn encaps(&self, ek_kem: &EncryptionKeyKEM) -> (Vec, CiphertextKEM) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn decaps(&self, dk_kem: &DecryptionKeyKEM, c_kem: &CiphertextKEM) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncryptionKeyKEM` is never constructed [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct EncryptionKeyKEM { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `seed_pke`, and `s` are never used [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl EncryptionKeyKEM { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(data: Vec, seed_len: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn seed_pke(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn s(&self) -> &[u8] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecryptionKeyKEM` is never constructed [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DecryptionKeyKEM { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ek_kem`, `dk_pke`, `sigma`, and `seed_kem` are never used [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl DecryptionKeyKEM { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(data: Vec, ek_size: usize, dk_size: usize, k: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn ek_kem(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn dk_pke(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn sigma(&self) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn seed_kem(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CiphertextKEM` is never constructed [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct CiphertextKEM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `c_pke`, `c_pke_tupe`, and `salt` are never used [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl CiphertextKEM { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 58 | pub fn new(data: Vec, cipher_len: usize, c_pke_u_len: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn c_pke(&self) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn c_pke_tupe(&self) -> (&[u8], &[u8]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn salt(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQCRSParam` is never constructed [INFO] [stdout] --> src/hqc/hqc_param.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HQCRSParam<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `new_rss1`, `new_rss3`, and `new_rss5` are never used [INFO] [stdout] --> src/hqc/hqc_param.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> HQCRSParam<'a> { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] 11 | pub fn new(n: usize, k: usize, rs_genpoly: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new_rss1() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn new_rss3() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_rss5() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQCParam` is never constructed [INFO] [stdout] --> src/hqc/hqc_param.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct HQCParam<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hqc1`, `hqc3`, `hqc5`, and `gen_hqc_code` are never used [INFO] [stdout] --> src/hqc/hqc_param.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl<'a> HQCParam<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 58 | pub fn hqc1() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn hqc3() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn hqc5() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn gen_hqc_code(&self) -> HQCCode<'_> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HQC_PKE` is never constructed [INFO] [stdout] --> src/hqc/hqc_pke.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct HQC_PKE<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hqc/hqc_pke.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> HQC_PKE<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(param: HQCParam<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn hqc1() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn hqc3() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn hqc5() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_bit_from_bitvec(bits: &Vec, bit_position: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn bit_flip_in_bitvec(bits: &mut Vec, bit_position: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn n_bits_align(x: &mut Vec, n: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn bits_slice(x: &Vec, base: usize, len: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn bits_xor(n: usize, a: &Vec, b: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn bits_shift_xor(a: &mut Vec, b: &Vec, shift: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn vec_mul_schoolbook(n: usize, a: &Vec, b: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | const SCHOOLBOOK_BITS: usize = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 109 | fn vec_mul_karatsuba(n: usize, a: &Vec, b: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn vec_mul(&self, u: Vec, v: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn truncate(&self, v: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn generate_seeds(seed: &[u8]) -> ([u8; 32], [u8; 32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn sample_fixed_weight_vect_indices_dollar(&self, ctx: &mut XOF, weight: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn sample_fixed_weight_vect_indices(&self, ctx: &mut XOF, weight: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn generate_vec_from_weight_indices(&self, indices: &[usize]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn sample_fixed_weight_vect_dollar(&self, ctx: &mut XOF, weight: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn sample_fixed_weight_vect(&self, ctx: &mut XOF, weight: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | fn sample_vec(&self, ctx: &mut XOF) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn generate_dk(&self, seed: &[u8]) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn generate_ek(&self, seed: &[u8], x: Vec, y: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn keygen(&self, seed: &[u8]) -> (([u8; 32], Vec), [u8; 32]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | fn calc_trunc(&self, s: Vec, r2: Vec, e: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn encrypt(&self, ek: ([u8; 32], Vec), m: Vec, theta: &[u8]) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | pub fn decrypt(&self, dk: [u8; 32], c: (Vec, Vec)) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XOF` is never constructed [INFO] [stdout] --> src/hqc/xof.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct XOF { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hqc/xof.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 10 | impl XOF { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | const HQC_PRNG_DOMAIN: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | const HQC_XOF_DOMAIN: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub fn new_prng(seed: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn new(seed: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn init(&mut self, seed: &[u8]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn squeeze_into(&mut self, out: &mut [u8]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_bytes(&mut self, len: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ParentSet` is never used [INFO] [stdout] --> src/util.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait ParentSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Element` is never used [INFO] [stdout] --> src/util.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/util/galois_field_2m.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GaloisField2m` is never constructed [INFO] [stdout] --> src/util/galois_field_2m.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GaloisField2m<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/galois_field_2m.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'a> GaloisField2m<'a> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(ppoly: u16) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn ppoly_deg(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn order(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn elem<'s>(&'s self, val: u16) -> Result<::ElementType<'s>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn zero<'s>(&'s self) -> ::ElementType<'s> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn one<'s>(&'s self) -> ::ElementType<'s> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn primitive_element<'s>(&'s self) -> ::ElementType<'s> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn modulus(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GaloisField2mElement` is never constructed [INFO] [stdout] --> src/util/galois_field_2m_elem.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GaloisField2mElement<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/galois_field_2m_elem.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> GaloisField2mElement<'a> { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn parent(&self) -> &'a ::ParentType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn value(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn add(&mut self, rhs: Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn xtime(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn mul(&mut self, rhs: Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn inv(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn div(&mut self, rhs: Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KATParser` is never constructed [INFO] [stdout] --> src/util/kat_parser.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct KATParser { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `line_after`, `hex_to_bytes`, and `bytes_after` are never used [INFO] [stdout] --> src/util/kat_parser.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> KATParser { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 12 | pub fn new(fname: &'a str) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn line_after(&mut self, s: &'a str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn hex_to_bytes(s: &'a str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn bytes_after(&mut self, s: &'a str) -> io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dk` [INFO] [stdout] --> src/hqc/hqc_pke.rs:442:18 [INFO] [stdout] | [INFO] [stdout] 442 | let (ek, dk) = hqc.keygen(&kat_seed_pke); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kat_c_u` [INFO] [stdout] --> src/hqc/hqc_pke.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | let kat_c_u = parser.bytes_after("c_pke->u: ").expect("").unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kat_c_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kat_c_v` [INFO] [stdout] --> src/hqc/hqc_pke.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let kat_c_v = parser.bytes_after("c_pke->v: ").expect("").unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kat_c_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dk` [INFO] [stdout] --> src/hqc/hqc_pke.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 463 | let (ek, dk) = hqc.keygen(&kat_seed_pke); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/hqc/hqc_pke.rs:466:14 [INFO] [stdout] | [INFO] [stdout] 466 | let (u, v) = c; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/hqc/hqc_pke.rs:466:17 [INFO] [stdout] | [INFO] [stdout] 466 | let (u, v) = c; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dk` [INFO] [stdout] --> src/hqc/hqc_pke.rs:481:18 [INFO] [stdout] | [INFO] [stdout] 481 | let (ek, dk) = hqc.keygen(&kat_seed_pke); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `message_len` is never used [INFO] [stdout] --> src/code.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Code { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn message_len(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `keygen` and `encaps` are never used [INFO] [stdout] --> src/hqc/hqc_kem.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> HQC_KEM<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn keygen(&self) -> (EncryptionKeyKEM, DecryptionKeyKEM) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn encaps(&self, ek_kem: &EncryptionKeyKEM) -> (Vec, CiphertextKEM) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `seed_kem` is never used [INFO] [stdout] --> src/hqc/hqc_kem_data.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl DecryptionKeyKEM { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn seed_kem(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init` is never used [INFO] [stdout] --> src/hqc/xof.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl XOF { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn init(&mut self, seed: &[u8]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parent` is never used [INFO] [stdout] --> src/util/galois_field_2m_elem.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> GaloisField2mElement<'a> { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn parent(&self) -> &'a ::ParentType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.65s [INFO] running `Command { std: "docker" "inspect" "741342cf980d5aca9fc6f448e3347554dbbf1aea434e51f2c3b833675b322892", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "741342cf980d5aca9fc6f448e3347554dbbf1aea434e51f2c3b833675b322892", kill_on_drop: false }` [INFO] [stdout] 741342cf980d5aca9fc6f448e3347554dbbf1aea434e51f2c3b833675b322892