[INFO] cloning repository https://github.com/m-usaid99/CryptographyToolkit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/m-usaid99/CryptographyToolkit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-usaid99%2FCryptographyToolkit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-usaid99%2FCryptographyToolkit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7fb3b81ed903e093a73f6f16bf9793747c835c5 [INFO] checking m-usaid99/CryptographyToolkit against try#8384de5d92dd9b1c0b67caa5c1c1b11bf606490f for pr-146300 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-usaid99%2FCryptographyToolkit" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/m-usaid99/CryptographyToolkit [INFO] finished tweaking git repo https://github.com/m-usaid99/CryptographyToolkit [INFO] tweaked toml for git repo https://github.com/m-usaid99/CryptographyToolkit written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/m-usaid99/CryptographyToolkit on toolchain 8384de5d92dd9b1c0b67caa5c1c1b11bf606490f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8384de5d92dd9b1c0b67caa5c1c1b11bf606490f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/m-usaid99/CryptographyToolkit 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" "+8384de5d92dd9b1c0b67caa5c1c1b11bf606490f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.target-cpu [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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8384de5d92dd9b1c0b67caa5c1c1b11bf606490f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1bb72464ba86891ab6c770890dc5f4f8d45d02da02c1ed1f05bcf326d640b37 [INFO] running `Command { std: "docker" "start" "-a" "f1bb72464ba86891ab6c770890dc5f4f8d45d02da02c1ed1f05bcf326d640b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1bb72464ba86891ab6c770890dc5f4f8d45d02da02c1ed1f05bcf326d640b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1bb72464ba86891ab6c770890dc5f4f8d45d02da02c1ed1f05bcf326d640b37", kill_on_drop: false }` [INFO] [stdout] f1bb72464ba86891ab6c770890dc5f4f8d45d02da02c1ed1f05bcf326d640b37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8384de5d92dd9b1c0b67caa5c1c1b11bf606490f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 565c2a2a9a78545f8217656ade1fc4d640ad5c8391c4a11c3630885b19d53390 [INFO] running `Command { std: "docker" "start" "-a" "565c2a2a9a78545f8217656ade1fc4d640ad5c8391c4a11c3630885b19d53390", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.target-cpu [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking cryptography_toolkit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `IntegerModNError` [INFO] [stdout] --> src/integer_mod_n/mod.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub use integer_mod_n::{IntegerModN, IntegerModNError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegerModPError` [INFO] [stdout] --> src/integer_mod_p/mod.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub use integer_mod_p::{IntegerModP, IntegerModPError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Group` and `Ring` [INFO] [stdout] --> src/main.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use algebra::traits::{Group, Ring}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binary_extension_field::BinaryExtensionField` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use binary_extension_field::BinaryExtensionField; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diffie_hellman::DiffieHellman` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use diffie_hellman::DiffieHellman; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integer_mod_n::IntegerModN` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use integer_mod_n::IntegerModN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integer_mod_p::IntegerModP` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use integer_mod_p::IntegerModP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/main.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use num_bigint::{BigUint, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegerModNError` [INFO] [stdout] --> src/integer_mod_n/mod.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub use integer_mod_n::{IntegerModN, IntegerModNError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegerModPError` [INFO] [stdout] --> src/integer_mod_p/mod.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub use integer_mod_p::{IntegerModP, IntegerModPError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Group` and `Ring` [INFO] [stdout] --> src/main.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | use algebra::traits::{Group, Ring}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binary_extension_field::BinaryExtensionField` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use binary_extension_field::BinaryExtensionField; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diffie_hellman::DiffieHellman` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use diffie_hellman::DiffieHellman; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integer_mod_n::IntegerModN` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use integer_mod_n::IntegerModN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integer_mod_p::IntegerModP` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use integer_mod_p::IntegerModP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/main.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use num_bigint::{BigUint, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use num_bigint::{BigInt, BigUint, ToBigInt, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_hex` [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let p_hex = concat!( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_p_hex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Ring` is never used [INFO] [stdout] --> src/algebra/traits.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Ring: Algebra { [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 `combine`, `identity`, and `inverse` are never used [INFO] [stdout] --> src/algebra/traits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub trait Group: Algebra { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 25 | /// Combines two elements within the group. [INFO] [stdout] 26 | fn combine(&self, a: &Self::Element, b: &Self::Element) -> Self::Element; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn identity(&self) -> Self::Element; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn inverse(&self, a: &Self::Element) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Field` is never used [INFO] [stdout] --> src/algebra/traits.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Field: Ring + Group {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionField` is never constructed [INFO] [stdout] --> src/binary_extension_field/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct BinaryExtensionField { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/binary_extension_field/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl BinaryExtensionField { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn new(n: usize, modulus_coeffs: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new_auto(n: usize) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn modulus(&self) -> &Polynomial { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn add(&self, a: &Polynomial, b: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn multiply(&self, a: &Polynomial, b: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn inverse(&self, a: &Polynomial) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn modulo(&self, poly: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn random_element(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn mod_exp(&self, a: &Polynomial, exp: &BigUint) -> Polynomial { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn elements_up_to_degree( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn elements_of_degree( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinaryExtensionFieldError` is never used [INFO] [stdout] --> src/binary_extension_field/errors.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum BinaryExtensionFieldError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionFieldElementDegreeBoundedIterator` is never constructed [INFO] [stdout] --> src/binary_extension_field/iterators.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BinaryExtensionFieldElementDegreeBoundedIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionFieldElementFixedDegreeIterator` is never constructed [INFO] [stdout] --> src/binary_extension_field/iterators.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct BinaryExtensionFieldElementFixedDegreeIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVector` is never constructed [INFO] [stdout] --> src/generic_vector.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct GenericVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `push` are never used [INFO] [stdout] --> src/generic_vector.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl GenericVector { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new(ring: R) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn push(&mut self, element: R::Element) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegerModNError` is never used [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum IntegerModNError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntegerModN` is never constructed [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct IntegerModN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl IntegerModN { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | /// Creates a new `IntegerModN` with a given modulus `n`. [INFO] [stdout] 37 | pub fn new(n: BigUint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn inverse(a: &BigUint, n: &BigUint) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn extended_gcd(a: &BigUint, b: &BigUint) -> (BigUint, BigInt, BigInt) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn pow(base: &BigUint, exp: &BigUint, n: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn random_group_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn random_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn gcd(a: &BigUint, b: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn contains>(&self, num: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegerModPError` is never used [INFO] [stdout] --> src/integer_mod_p/integer_mod_p.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum IntegerModPError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integer_mod_p/integer_mod_p.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl IntegerModP { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 35 | /// Creates a new `IntegerModP` with a given prime modulus `p`. [INFO] [stdout] 36 | pub fn new(p: BigUint) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn random_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_prime_miller_rabin_parallel(n: &BigUint, k: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn inverse(a: &BigUint, p: &BigUint) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn sub(&self, a: &BigUint, b: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn extended_gcd(a: &BigUint, b: &BigUint) -> (BigUint, BigInt, BigInt) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn pow(base: &BigUint, exp: &BigUint, p: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn contains>(&self, num: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToBigUint` [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use num_bigint::{BigInt, BigUint, ToBigInt, ToBigUint}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_hex` [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let p_hex = concat!( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_p_hex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Ring` is never used [INFO] [stdout] --> src/algebra/traits.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Ring: Algebra { [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 `combine`, `identity`, and `inverse` are never used [INFO] [stdout] --> src/algebra/traits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub trait Group: Algebra { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 25 | /// Combines two elements within the group. [INFO] [stdout] 26 | fn combine(&self, a: &Self::Element, b: &Self::Element) -> Self::Element; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn identity(&self) -> Self::Element; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn inverse(&self, a: &Self::Element) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Field` is never used [INFO] [stdout] --> src/algebra/traits.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Field: Ring + Group {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionField` is never constructed [INFO] [stdout] --> src/binary_extension_field/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct BinaryExtensionField { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/binary_extension_field/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl BinaryExtensionField { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn new(n: usize, modulus_coeffs: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new_auto(n: usize) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn modulus(&self) -> &Polynomial { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn add(&self, a: &Polynomial, b: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn multiply(&self, a: &Polynomial, b: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn inverse(&self, a: &Polynomial) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn modulo(&self, poly: &Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn random_element(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn mod_exp(&self, a: &Polynomial, exp: &BigUint) -> Polynomial { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn elements_up_to_degree( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn elements_of_degree( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinaryExtensionFieldError` is never used [INFO] [stdout] --> src/binary_extension_field/errors.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum BinaryExtensionFieldError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionFieldElementDegreeBoundedIterator` is never constructed [INFO] [stdout] --> src/binary_extension_field/iterators.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BinaryExtensionFieldElementDegreeBoundedIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExtensionFieldElementFixedDegreeIterator` is never constructed [INFO] [stdout] --> src/binary_extension_field/iterators.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct BinaryExtensionFieldElementFixedDegreeIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVector` is never constructed [INFO] [stdout] --> src/generic_vector.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct GenericVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `push` are never used [INFO] [stdout] --> src/generic_vector.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl GenericVector { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new(ring: R) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn push(&mut self, element: R::Element) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegerModNError` is never used [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum IntegerModNError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntegerModN` is never constructed [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct IntegerModN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integer_mod_n/integer_mod_n.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl IntegerModN { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | /// Creates a new `IntegerModN` with a given modulus `n`. [INFO] [stdout] 37 | pub fn new(n: BigUint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn inverse(a: &BigUint, n: &BigUint) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn extended_gcd(a: &BigUint, b: &BigUint) -> (BigUint, BigInt, BigInt) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn pow(base: &BigUint, exp: &BigUint, n: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn random_group_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn random_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn gcd(a: &BigUint, b: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn contains>(&self, num: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegerModPError` is never used [INFO] [stdout] --> src/integer_mod_p/integer_mod_p.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum IntegerModPError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integer_mod_p/integer_mod_p.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl IntegerModP { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 35 | /// Creates a new `IntegerModP` with a given prime modulus `p`. [INFO] [stdout] 36 | pub fn new(p: BigUint) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn random_element(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn is_prime_miller_rabin_parallel(n: &BigUint, k: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn inverse(a: &BigUint, p: &BigUint) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn sub(&self, a: &BigUint, b: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn extended_gcd(a: &BigUint, b: &BigUint) -> (BigUint, BigInt, BigInt) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn pow(base: &BigUint, exp: &BigUint, p: &BigUint) -> BigUint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn contains>(&self, num: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.90s [INFO] running `Command { std: "docker" "inspect" "565c2a2a9a78545f8217656ade1fc4d640ad5c8391c4a11c3630885b19d53390", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "565c2a2a9a78545f8217656ade1fc4d640ad5c8391c4a11c3630885b19d53390", kill_on_drop: false }` [INFO] [stdout] 565c2a2a9a78545f8217656ade1fc4d640ad5c8391c4a11c3630885b19d53390