[INFO] cloning repository https://github.com/oscarveral/vulcano [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oscarveral/vulcano" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foscarveral%2Fvulcano", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foscarveral%2Fvulcano'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d134e072d206b46ee850324983a9f13881d776a6 [INFO] checking oscarveral/vulcano against try#342ed2e8608ee307743c341962b427652cdb06e9 for pr-146562-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foscarveral%2Fvulcano" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oscarveral/vulcano [INFO] finished tweaking git repo https://github.com/oscarveral/vulcano [INFO] tweaked toml for git repo https://github.com/oscarveral/vulcano written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oscarveral/vulcano on toolchain 342ed2e8608ee307743c341962b427652cdb06e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+342ed2e8608ee307743c341962b427652cdb06e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oscarveral/vulcano 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" "+342ed2e8608ee307743c341962b427652cdb06e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+342ed2e8608ee307743c341962b427652cdb06e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af649ad08913d8273eed0411a4025bd7a5f7e6b5c40aea95e7abac8f9b86c181 [INFO] running `Command { std: "docker" "start" "-a" "af649ad08913d8273eed0411a4025bd7a5f7e6b5c40aea95e7abac8f9b86c181", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af649ad08913d8273eed0411a4025bd7a5f7e6b5c40aea95e7abac8f9b86c181", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af649ad08913d8273eed0411a4025bd7a5f7e6b5c40aea95e7abac8f9b86c181", kill_on_drop: false }` [INFO] [stdout] af649ad08913d8273eed0411a4025bd7a5f7e6b5c40aea95e7abac8f9b86c181 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+342ed2e8608ee307743c341962b427652cdb06e9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e79456535409141acc833390259d8df98f60e52f10e94b1188939caa1f96248e [INFO] running `Command { std: "docker" "start" "-a" "e79456535409141acc833390259d8df98f60e52f10e94b1188939caa1f96248e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling gmp-mpfr-sys v1.6.5 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling rug v1.27.0 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking vulcano v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `remainder` [INFO] [stdout] --> src/dghv/context.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::dghv::math::{quotient, remainder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dghv/distribution.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | if (subset_size > self.set_size) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - if (subset_size > self.set_size) { [INFO] [stdout] 170 + if subset_size > self.set_size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/dghv/math.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remainder` [INFO] [stdout] --> src/dghv/context.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::dghv::math::{quotient, remainder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dghv/distribution.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | if (subset_size > self.set_size) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - if (subset_size > self.set_size) { [INFO] [stdout] 170 + if subset_size > self.set_size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> src/dghv/context.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dghv/context.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Context { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 28 | /// Create a new [Context] using the given [Parameters]. [INFO] [stdout] 29 | pub fn new(params: Parameters) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn refresh_context(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn change_params(&mut self, new_params: Parameters) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn generator_key_sample(&self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn downsize_key_sample(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn public_key_sample(&mut self) -> (Vec, Integer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn bootstrap_key_sample(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn key_gen(&mut self) -> (Encryptor, Decryptor, Evaluator) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Decryptor` is never constructed [INFO] [stdout] --> src/dghv/decryptor.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Decryptor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `decrypt` are never used [INFO] [stdout] --> src/dghv/decryptor.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Decryptor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 12 | /// Create a new [Decryptor] using the given generator. [INFO] [stdout] 13 | pub fn new(generator: Integer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn decrypt(&self, ciphertext: Ciphertext) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicKeySampler` is never constructed [INFO] [stdout] --> src/dghv/distribution.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct PublicKeySampler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_generator`, `sample_with_noise`, `sample_with_noise_par`, and `sample_without_noise` are never used [INFO] [stdout] --> src/dghv/distribution.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PublicKeySampler { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn new(gamma: u32, rho: u16, generator: Integer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_generator(&self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn sample_with_noise(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn sample_with_noise_par(&self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn sample_without_noise(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoiseSampler` is never constructed [INFO] [stdout] --> src/dghv/distribution.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct NoiseSampler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `sample_noise` are never used [INFO] [stdout] --> src/dghv/distribution.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl NoiseSampler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 93 | /// Create a new [NoiseSampler] using the given $\rho\'$ parameter. [INFO] [stdout] 94 | pub fn new(rho_prime: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn sample_noise(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneratorSampler` is never constructed [INFO] [stdout] --> src/dghv/distribution.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct GeneratorSampler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `sample` are never used [INFO] [stdout] --> src/dghv/distribution.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl GeneratorSampler { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 124 | /// Create a new [GeneratorSampler] integer sampler using the given $\eta$ parameter. [INFO] [stdout] 125 | pub fn new(eta: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn sample(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubsetSampler` is never constructed [INFO] [stdout] --> src/dghv/distribution.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct SubsetSampler { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sample_index_subset`, and `sample_index_subset_with_size` are never used [INFO] [stdout] --> src/dghv/distribution.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl SubsetSampler { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 153 | /// Create a new [SubsetSampler]. [INFO] [stdout] 154 | pub fn new(set_size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn sample_index_subset(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn sample_index_subset_with_size(&mut self, subset_size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoostrapKeySampler` is never constructed [INFO] [stdout] --> src/dghv/distribution.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct BoostrapKeySampler { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_bound`, and `sample` are never used [INFO] [stdout] --> src/dghv/distribution.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl BoostrapKeySampler { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 189 | /// Create a new sampler using the $\kappa$ parameter. [INFO] [stdout] 190 | pub fn new(kappa: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_bound(&self) -> &Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn sample(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Encryptor` is never constructed [INFO] [stdout] --> src/dghv/encryptor.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Encryptor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encrypt` are never used [INFO] [stdout] --> src/dghv/encryptor.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Encryptor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 17 | /// Create a new [Encryptor] using the given public key and $\tau$ parameter. [INFO] [stdout] 18 | pub fn new(pk: Vec, tau: u32, rho_prime: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn encrypt(&mut self, data: bool) -> Ciphertext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Evaluator` is never constructed [INFO] [stdout] --> src/dghv/evaluator.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Evaluator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `mul`, and `downsize` are never used [INFO] [stdout] --> src/dghv/evaluator.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Evaluator { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 12 | /// Create a new [Evaluator] using the given downsize key. [INFO] [stdout] 13 | pub fn new(dsk: Integer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add(&self, a: Ciphertext, b: Ciphertext) -> Ciphertext { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn mul(&self, a: Ciphertext, b: Ciphertext) -> Ciphertext { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn downsize(&self, c: Ciphertext) -> Ciphertext { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quotient` is never used [INFO] [stdout] --> src/dghv/math.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn quotient(dividend: &Integer, divisor: &Integer) -> Integer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remainder` is never used [INFO] [stdout] --> src/dghv/math.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn remainder(dividend: &Integer, divisor: &Integer) -> Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parameters` is never constructed [INFO] [stdout] --> src/dghv/parameters.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parameters { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TINY` is never used [INFO] [stdout] --> src/dghv/parameters.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const TINY: Parameters = Parameters { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/dghv/parameters.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const SMALL: Parameters = Parameters { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MEDIUM` is never used [INFO] [stdout] --> src/dghv/parameters.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const MEDIUM: Parameters = Parameters { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGE` is never used [INFO] [stdout] --> src/dghv/parameters.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | pub const LARGE: Parameters = Parameters { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `max_multiplication_depth` is never used [INFO] [stdout] --> src/dghv/parameters.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Parameters { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn max_multiplication_depth(&self, log_f_norm: f64) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_rand_state` is never used [INFO] [stdout] --> src/dghv/random.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new_rand_state() -> RandState<'static> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Randomizer` is never constructed [INFO] [stdout] --> src/dghv/random.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Randomizer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next_usize` are never used [INFO] [stdout] --> src/dghv/random.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Randomizer { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 19 | /// Create a new random number generator. [INFO] [stdout] 20 | pub fn new() -> Randomizer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn next_usize(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bk_sampler` and `bk_val_sampler` are never read [INFO] [stdout] --> src/dghv/context.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | bk_sampler: SubsetSampler, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | /// Sampler used for the values of the bootstrapping keys. [INFO] [stdout] 24 | bk_val_sampler: BoostrapKeySampler, [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 `refresh_context`, `change_params`, and `bootstrap_key_sample` are never used [INFO] [stdout] --> src/dghv/context.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Context { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn refresh_context(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn change_params(&mut self, new_params: Parameters) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn bootstrap_key_sample(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sample_with_noise` is never used [INFO] [stdout] --> src/dghv/distribution.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PublicKeySampler { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn sample_with_noise(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sample_index_subset_with_size` is never used [INFO] [stdout] --> src/dghv/distribution.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl SubsetSampler { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn sample_index_subset_with_size(&mut self, subset_size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bound` and `rng` are never read [INFO] [stdout] --> src/dghv/distribution.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct BoostrapKeySampler { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 182 | /// Bound on the integer range. For the scheme is $2^{\kappa + 1}$. [INFO] [stdout] 183 | bound: Integer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 184 | /// Source of randomness. [INFO] [stdout] 185 | rng: RandState<'static>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_bound` and `sample` are never used [INFO] [stdout] --> src/dghv/distribution.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl BoostrapKeySampler { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_bound(&self) -> &Integer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn sample(&mut self) -> Integer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lambda` and `theta` are never read [INFO] [stdout] --> src/dghv/parameters.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parameters { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub lambda: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub theta: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/dghv/parameters.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const SMALL: Parameters = Parameters { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MEDIUM` is never used [INFO] [stdout] --> src/dghv/parameters.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const MEDIUM: Parameters = Parameters { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGE` is never used [INFO] [stdout] --> src/dghv/parameters.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | pub const LARGE: Parameters = Parameters { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 23s [INFO] running `Command { std: "docker" "inspect" "e79456535409141acc833390259d8df98f60e52f10e94b1188939caa1f96248e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e79456535409141acc833390259d8df98f60e52f10e94b1188939caa1f96248e", kill_on_drop: false }` [INFO] [stdout] e79456535409141acc833390259d8df98f60e52f10e94b1188939caa1f96248e