[INFO] cloning repository https://github.com/Janmajayamall/Onion-PIR [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Janmajayamall/Onion-PIR" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJanmajayamall%2FOnion-PIR", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJanmajayamall%2FOnion-PIR'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d013b8a476a292f74f91d23cac25d9d038dc40ce [INFO] checking Janmajayamall/Onion-PIR/d013b8a476a292f74f91d23cac25d9d038dc40ce against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJanmajayamall%2FOnion-PIR" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Janmajayamall/Onion-PIR on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Janmajayamall/Onion-PIR [INFO] finished tweaking git repo https://github.com/Janmajayamall/Onion-PIR [INFO] tweaked toml for git repo https://github.com/Janmajayamall/Onion-PIR written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Janmajayamall/Onion-PIR 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f837212a6c632b218b5e1b405e1f467765765970fa6602024d5893606800b610 [INFO] running `Command { std: "docker" "start" "-a" "f837212a6c632b218b5e1b405e1f467765765970fa6602024d5893606800b610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f837212a6c632b218b5e1b405e1f467765765970fa6602024d5893606800b610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f837212a6c632b218b5e1b405e1f467765765970fa6602024d5893606800b610", kill_on_drop: false }` [INFO] [stdout] f837212a6c632b218b5e1b405e1f467765765970fa6602024d5893606800b610 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec8d4377558447abf0f4406a1835aac5f6acab9d73ffe41378c00cbaa8348eee [INFO] running `Command { std: "docker" "start" "-a" "ec8d4377558447abf0f4406a1835aac5f6acab9d73ffe41378c00cbaa8348eee", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling libc v0.2.133 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking cpufeatures v0.2.5 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crypto-bigint v0.4.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking digest v0.10.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking onion-pir v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/ntt.rs (1 fix) [INFO] [stderr] Fixed src/evaluations.rs (4 fixes) [INFO] [stderr] Fixed src/ksk.rs (4 fixes) [INFO] [stderr] Fixed src/rns.rs (1 fix) [INFO] [stderr] Fixed src/pvw.rs (2 fixes) [INFO] [stderr] Fixed src/utils.rs (3 fixes) [INFO] [stderr] Fixed src/bfv.rs (10 fixes) [INFO] [stderr] Fixed src/omr.rs (1 fix) [INFO] [stderr] Fixed src/rgsw.rs (8 fixes) [INFO] [stderr] Fixed src/rq.rs (7 fixes) [INFO] [stdout] warning: unused import: `rand_distr::Distribution` [INFO] [stdout] --> src/utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand_distr::Distribution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bfv_params` [INFO] [stdout] --> src/evaluations.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | bfv_params: &Arc, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bfv_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk` [INFO] [stdout] --> src/evaluations.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | sk: &SecretKey, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim_index` [INFO] [stdout] --> src/evaluations.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 190 | .for_each(|(dim_index, dim_rgsws)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dim_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row_index` [INFO] [stdout] --> src/evaluations.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | .map(|(row_index, db_chunk_cts)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `representation` is never read [INFO] [stdout] --> src/rq.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | representation = Representation::Ntt; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decomposed` [INFO] [stdout] --> src/rq.rs:328:25 [INFO] [stdout] | [INFO] [stdout] 328 | let decomposed = decompose_bits(*v, parent_bits as usize, base_bits); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decomposed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/rq.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let g = poly.slice_mut(s![row_index, col_index, ..]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rq.rs:333:50 [INFO] [stdout] | [INFO] [stdout] 333 | izip!(cq.outer_iter()).for_each(|c| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/rq.rs:368:21 [INFO] [stdout] | [INFO] [stdout] 368 | let p = self.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poly` [INFO] [stdout] --> src/rq.rs:503:13 [INFO] [stdout] | [INFO] [stdout] 503 | let poly = Poly::zero(ctx, Representation::PowerBasis); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_poly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecretKey` is never constructed [INFO] [stdout] --> src/bfv.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct SecretKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecretKey` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bfv.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 278 | impl SecretKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 279 | pub fn generate(params: &Arc) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn new(coeffs: Vec, params: &Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn encrypt_poly(&self, pt: &Poly) -> BfvCipherText { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn encrypt(&self, pt: &Plaintext) -> BfvCipherText { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn decrypt_trial(&self, ct0: &Poly, ct1: &Poly) -> Poly { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn decrypt(&self, ct: &BfvCipherText) -> Plaintext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn measure_noise(&self, ct: &BfvCipherText) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BfvCiphertext` is never constructed [INFO] [stdout] --> src/bfv.rs:413:12 [INFO] [stdout] | [INFO] [stdout] 413 | pub struct BfvCiphertext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BfvCiphertext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply_with_strategy` is never used [INFO] [stdout] --> src/bfv.rs:657:8 [INFO] [stdout] | [INFO] [stdout] 657 | pub fn multiply_with_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GaliosKey` is never constructed [INFO] [stdout] --> src/bfv.rs:700:12 [INFO] [stdout] | [INFO] [stdout] 700 | pub struct GaliosKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `relinearize` are never used [INFO] [stdout] --> src/bfv.rs:707:12 [INFO] [stdout] | [INFO] [stdout] 706 | impl GaliosKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 707 | pub fn new(sk: &SecretKey, i: &Substitution, galios_level: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 725 | pub fn relinearize(&self, ct: &BfvCipherText) -> BfvCipherText { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RelinearizationKey` is never constructed [INFO] [stdout] --> src/bfv.rs:743:12 [INFO] [stdout] | [INFO] [stdout] 743 | pub struct RelinearizationKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `relinearize_poly` are never used [INFO] [stdout] --> src/bfv.rs:749:12 [INFO] [stdout] | [INFO] [stdout] 748 | impl RelinearizationKey { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 749 | pub fn new(sk: &SecretKey, level: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 762 | pub fn relinearize_poly(&self, p: &Poly) -> (Poly, Poly) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first_dim` and `dim` are never read [INFO] [stdout] --> src/evaluations.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Client { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 16 | first_dim: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | dim: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `encode` are never used [INFO] [stdout] --> src/evaluations.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Client { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(first_dim: usize, dim: usize) -> Client { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn encode( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/evaluations.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `no_of_cts`, and `decode` are never used [INFO] [stdout] --> src/evaluations.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Server { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 71 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn no_of_cts(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn decode( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Evaluation` is never constructed [INFO] [stdout] --> src/evaluations.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | struct Evaluation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `build`, `unpack`, and `gen_x_pows` are never used [INFO] [stdout] --> src/evaluations.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl Evaluation { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 233 | pub fn build(sk: &SecretKey, params: &Arc) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn unpack(&self, mut ct: BfvCipherText) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn gen_x_pows(n: usize, ctx: &Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ksk` is never constructed [INFO] [stdout] --> src/ksk.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Ksk { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ksk` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `KskType` is never used [INFO] [stdout] --> src/ksk.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | enum KskType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_pt`, `new`, `key_switch`, and `try_from_decomposed_rlwes` are never used [INFO] [stdout] --> src/ksk.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Ksk { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 35 | pub fn new_with_pt( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn new(sk: &SecretKey, from: &Poly, ct_level: usize, ksk_level: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn key_switch(&self, poly: &Poly) -> (Poly, Poly) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn try_from_decomposed_rlwes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_product` is never used [INFO] [stdout] --> src/omr.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn inner_product(cts: &Vec, polys: &Vec) -> BfvCipherText { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process` is never used [INFO] [stdout] --> src/omr.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n`, `ell`, `m`, `q`, and `variance` are never read [INFO] [stdout] --> src/pvw.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PvwParams { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 11 | pub n: usize, [INFO] [stdout] | ^ [INFO] [stdout] 12 | pub ell: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub m: usize, [INFO] [stdout] | ^ [INFO] [stdout] 14 | pub q: u64, [INFO] [stdout] | ^ [INFO] [stdout] 15 | pub variance: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PvwParams` 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 function `new` is never used [INFO] [stdout] --> src/pvw.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl PvwParams { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new() -> PvwParams { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PvwSk` is never constructed [INFO] [stdout] --> src/pvw.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PvwSk(Vec>); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `gen_sk`, `gen_pk`, and `decrypt` are never used [INFO] [stdout] --> src/pvw.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PvwSk { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 39 | pub fn gen_sk(params: &PvwParams) -> PvwSk { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn gen_pk(&self, params: &PvwParams) -> PvwPk { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn decrypt(&self, params: &PvwParams, ct: &PvwCiphertext) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PvwPk` is never constructed [INFO] [stdout] --> src/pvw.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct PvwPk(Vec); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt` is never used [INFO] [stdout] --> src/pvw.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl PvwPk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 119 | pub fn encrypt(&self, params: &PvwParams, m: Vec) -> PvwCiphertext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PvwCiphertext` is never constructed [INFO] [stdout] --> src/pvw.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct PvwCiphertext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PvwCiphertext` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGSW` is never constructed [INFO] [stdout] --> src/rgsw.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RGSW { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RgswCt` is never constructed [INFO] [stdout] --> src/rgsw.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RgswCt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RgswCt` 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 functions `encrypt_poly`, `encrypt`, `external_product`, and `try_from_ksks` are never used [INFO] [stdout] --> src/rgsw.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl RgswCt { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 22 | pub fn encrypt_poly(sk: &SecretKey, m: &Poly) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn encrypt(sk: &SecretKey, m: &Plaintext) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn external_product(rgsw: &RgswCt, bfv: &BfvCipherText) -> (Poly, Poly) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn try_from_ksks(ksk0: &Ksk, ksk1: &Ksk) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rq.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl BitDecomposition { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 66 | fn new(base: usize, l: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_inverse` is never used [INFO] [stdout] --> src/utils.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn mod_inverse(v: u64, q: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `D` should have a snake case name [INFO] [stdout] --> src/omr.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let D = 64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Modulus` [INFO] [stdout] --> src/evaluations.rs:389:14 [INFO] [stdout] | [INFO] [stdout] 389 | &Modulus::new(params.plaintext_modulus_u64).random_vec(degree, &mut rng), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Modulus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::modulus::Modulus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/evaluations.rs:391:13 [INFO] [stdout] | [INFO] [stdout] 391 | Encoding::Poly, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 316 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/evaluations.rs:433:68 [INFO] [stdout] | [INFO] [stdout] 433 | .map(|i| Plaintext::new(¶ms, &vec![i, i, i, i], 0, Encoding::Poly)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 316 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/evaluations.rs:442:74 [INFO] [stdout] | [INFO] [stdout] 442 | let query_first_dim = Plaintext::new(¶ms, &query_encoded, 0, Encoding::Poly); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 316 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/evaluations.rs:486:53 [INFO] [stdout] | [INFO] [stdout] 486 | let pt = Plaintext::new(¶ms, &query, 0, Encoding::Poly); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 316 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/evaluations.rs:565:66 [INFO] [stdout] | [INFO] [stdout] 565 | let ct = sk.encrypt(&Plaintext::new(¶ms, &values, 0, Encoding::Poly)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 316 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/ksk.rs:188:76 [INFO] [stdout] | [INFO] [stdout] 188 | let mut one_enc = sk.encrypt(&Plaintext::new(¶ms, &vec![1], 0, Encoding::Poly)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 158 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 158 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/ksk.rs:206:55 [INFO] [stdout] | [INFO] [stdout] 206 | let pt = Plaintext::new(¶ms, &vec![5], 0, Encoding::Poly); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 158 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 158 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PvwParams` [INFO] [stdout] --> src/pvw.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | let params = PvwParams::default(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PvwParams` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 161 + use crate::pvw::PvwParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PvwSk` [INFO] [stdout] --> src/pvw.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | let sk = PvwSk::gen_sk(¶ms); [INFO] [stdout] | ^^^^^ use of undeclared type `PvwSk` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 161 + use crate::pvw::PvwSk; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/pvw.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 161 + use crate::pvw::thread_rng; [INFO] [stdout] | [INFO] [stdout] 161 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> src/pvw.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | let distr = Uniform::from(0..2); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 161 + use crate::pvw::Uniform; [INFO] [stdout] | [INFO] [stdout] 161 + use rand::distributions::Uniform; [INFO] [stdout] | [INFO] [stdout] 161 + use rand_distr::Uniform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/rgsw.rs:123:62 [INFO] [stdout] | [INFO] [stdout] 123 | let pt_one = Plaintext::new(¶ms, &vec![1u64], 0, Encoding::Poly); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 84 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 84 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/rgsw.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | encoding: Encoding::Poly, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 84 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 84 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/rgsw.rs:252:59 [INFO] [stdout] | [INFO] [stdout] 252 | let mut m = &Plaintext::new(¶ms, &vec![2], 0, Encoding::Poly); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 84 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 84 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/rgsw.rs:257:51 [INFO] [stdout] | [INFO] [stdout] 257 | &Plaintext::new(¶ms, &vec![2], 0, Encoding::Poly), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 84 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 84 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Encoding` [INFO] [stdout] --> src/rgsw.rs:306:70 [INFO] [stdout] | [INFO] [stdout] 306 | let bfv_ct = sk.encrypt(&Plaintext::new(¶ms, &v1, 0, Encoding::Poly)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Encoding` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 84 + use crate::bfv::Encoding; [INFO] [stdout] | [INFO] [stdout] 84 + use crypto_bigint::Encoding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/rq.rs:697:27 [INFO] [stdout] | [INFO] [stdout] 697 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 676 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/rq.rs:710:23 [INFO] [stdout] | [INFO] [stdout] 710 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 676 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/rq.rs:727:23 [INFO] [stdout] | [INFO] [stdout] 727 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 676 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decompose_bits` in this scope [INFO] [stdout] --> src/utils.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | let decomposed = decompose_bits(value, 64, 4); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 294 + use crate::utils::decompose_bits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bit_vector` in this scope [INFO] [stdout] --> src/utils.rs:310:20 [INFO] [stdout] | [INFO] [stdout] 310 | let bits = bit_vector(64, m); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 294 + use crate::utils::bit_vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::generate_prime` [INFO] [stdout] --> src/evaluations.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | utils::generate_prime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto_bigint::rand_core::le` [INFO] [stdout] --> src/evaluations.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | use crypto_bigint::rand_core::le; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Axis` [INFO] [stdout] --> src/evaluations.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use ndarray::Axis; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::FromPrimitive` [INFO] [stdout] --> src/evaluations.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 325 | use num_traits::FromPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/rq.rs:677:37 [INFO] [stdout] | [INFO] [stdout] 677 | use crate::bfv::{BfvParameters, SecretKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `num_bigint::BigUint` in the current scope [INFO] [stdout] --> src/ksk.rs:185:65 [INFO] [stdout] | [INFO] [stdout] 185 | Poly::try_from_bigint(¶ms.q_ctxs[0], &[BigUint::from_usize(10000).unwrap()]); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `BigUint` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `num_bigint::BigUint` consider using one of the following associated functions: [INFO] [stdout] num_bigint::BigUint::new [INFO] [stdout] num_bigint::BigUint::from_slice [INFO] [stdout] num_bigint::BigUint::from_bytes_be [INFO] [stdout] num_bigint::BigUint::from_bytes_le [INFO] [stdout] and 3 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.3/src/biguint.rs:523:5 [INFO] [stdout] | [INFO] [stdout] 523 | pub fn new(digits: Vec) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 542 | pub fn from_slice(slice: &[u32]) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 583 | pub fn from_bytes_be(bytes: &[u8]) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 597 | pub fn from_bytes_le(bytes: &[u8]) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromPrimitive` which provides `from_usize` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 158 + use num_traits::FromPrimitive; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_isize` with a similar name [INFO] [stdout] | [INFO] [stdout] 185 | Poly::try_from_bigint(¶ms.q_ctxs[0], &[BigUint::from_isize(10000).unwrap()]); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect_vec` found for struct `Map` in the current scope [INFO] [stdout] --> src/rgsw.rs:219:14 [INFO] [stdout] | [INFO] [stdout] 203 | let upper_half = izip!(b_ksk.c0.iter(), b_ksk.c1.iter()) [INFO] [stdout] | __________________________- [INFO] [stdout] 204 | | .map(|(c0, c1)| { [INFO] [stdout] 205 | | RgswCt::external_product( [INFO] [stdout] 206 | | &sk_rgsw, [INFO] [stdout] ... | [INFO] [stdout] 218 | | }) [INFO] [stdout] 219 | | .collect_vec(); [INFO] [stdout] | |_____________-^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/itertools-0.10.5/src/lib.rs:1982:8 [INFO] [stdout] | [INFO] [stdout] 1982 | fn collect_vec(self) -> Vec [INFO] [stdout] | ----------- the method is available for `Map, std::slice::Iter<'_, rq::Poly>>, {closure@src/rgsw.rs:204:18: 204:28}>, {closure@src/rgsw.rs:214:18: 214:28}>` here [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/onion_pir-2cc5dd95c575a66d.long-type-10034829024259862842.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Itertools` which provides `collect_vec` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 84 + use itertools::Itertools; [INFO] [stdout] | [INFO] [stdout] help: there is a method `collect` with a similar name [INFO] [stdout] | [INFO] [stdout] 219 | .collect(); [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_distr::Distribution` [INFO] [stdout] --> src/utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand_distr::Distribution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/bfv.rs:809:13 [INFO] [stdout] | [INFO] [stdout] 809 | let rng = thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bfv_params` [INFO] [stdout] --> src/evaluations.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | bfv_params: &Arc, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bfv_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk` [INFO] [stdout] --> src/evaluations.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | sk: &SecretKey, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dim_index` [INFO] [stdout] --> src/evaluations.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 190 | .for_each(|(dim_index, dim_rgsws)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dim_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row_index` [INFO] [stdout] --> src/evaluations.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | .map(|(row_index, db_chunk_cts)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/evaluations.rs:501:13 [INFO] [stdout] | [INFO] [stdout] 501 | let mut rng = thread_rng(); [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: `root` [INFO] [stdout] --> src/ntt.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let root = primitive_root(size, &moduli); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `representation` is never read [INFO] [stdout] --> src/rq.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | representation = Representation::Ntt; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decomposed` [INFO] [stdout] --> src/rq.rs:328:25 [INFO] [stdout] | [INFO] [stdout] 328 | let decomposed = decompose_bits(*v, parent_bits as usize, base_bits); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decomposed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/rq.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let g = poly.slice_mut(s![row_index, col_index, ..]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rq.rs:333:50 [INFO] [stdout] | [INFO] [stdout] 333 | izip!(cq.outer_iter()).for_each(|c| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/rq.rs:368:21 [INFO] [stdout] | [INFO] [stdout] 368 | let p = self.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poly` [INFO] [stdout] --> src/rq.rs:503:13 [INFO] [stdout] | [INFO] [stdout] 503 | let poly = Poly::zero(ctx, Representation::PowerBasis); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_poly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `onion-pir` (lib test) due to 25 previous errors; 19 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "ec8d4377558447abf0f4406a1835aac5f6acab9d73ffe41378c00cbaa8348eee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec8d4377558447abf0f4406a1835aac5f6acab9d73ffe41378c00cbaa8348eee", kill_on_drop: false }` [INFO] [stdout] ec8d4377558447abf0f4406a1835aac5f6acab9d73ffe41378c00cbaa8348eee