[INFO] cloning repository https://github.com/mark-jardine/falcon_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mark-jardine/falcon_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20241295731cc3b3464454e37e899cf56581e9f2 [INFO] checking mark-jardine/falcon_rs against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mark-jardine/falcon_rs on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mark-jardine/falcon_rs [INFO] finished tweaking git repo https://github.com/mark-jardine/falcon_rs [INFO] tweaked toml for git repo https://github.com/mark-jardine/falcon_rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mark-jardine/falcon_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a958ede13e9cfa224e5abff97124fc239098fdfd43bf81f43366872b3fbc306 [INFO] running `Command { std: "docker" "start" "-a" "3a958ede13e9cfa224e5abff97124fc239098fdfd43bf81f43366872b3fbc306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a958ede13e9cfa224e5abff97124fc239098fdfd43bf81f43366872b3fbc306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a958ede13e9cfa224e5abff97124fc239098fdfd43bf81f43366872b3fbc306", kill_on_drop: false }` [INFO] [stdout] 3a958ede13e9cfa224e5abff97124fc239098fdfd43bf81f43366872b3fbc306 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa76335709e2b2ec64002580d28dee2dc8c67d2b9ea35a0c354ab2608fe243d6 [INFO] running `Command { std: "docker" "start" "-a" "aa76335709e2b2ec64002580d28dee2dc8c67d2b9ea35a0c354ab2608fe243d6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking falcon_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn ffldl(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn ffldl_fft(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `InvalidRootIndex`, `FailedToSplitPolynomial`, `FailedToMergePolynomial`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum FftError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 27 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidRootIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToMergePolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FftError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn split_fft( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn merge_fft(f_vec_fft: Vec>) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn fft(f: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn inv_fft(f_fft: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `neg` is never used [INFO] [stdout] --> src/falcon/finite_field_element.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl FiniteFieldElem { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn neg(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionError`, `XgcdError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum NtruError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | DivisionError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | XgcdError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | ReductionError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 37 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NtruError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitsize` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn bitsize(a: BigInt) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xgcd` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn xgcd(mut b: BigInt, mut n: BigInt) -> (BigInt, BigInt, BigInt) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntru_solve` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn ntru_solve( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gs_norm` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn gs_norm(f: &Polynomial, g: &Polynomial, q: i32) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial_parallel` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn gen_polynomial_parallel(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntru_gen` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn ntru_gen( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `InvalidRootIndex`, `FailedToSplitPolynomial`, and `InvNttFailed` are never constructed [INFO] [stdout] --> src/falcon/ntt.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum NttError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 28 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | InvalidRootIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | InvNttFailed, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NttError` 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 `I2` is never used [INFO] [stdout] --> src/falcon/ntt.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const I2: u16 = 6145; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQRT_1` is never used [INFO] [stdout] --> src/falcon/ntt.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | const SQRT_1: u32 = 1479; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn split_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn merge_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn ntt(f: &Polynomial) -> Result, NttError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn inv_ntt(f_ntt: &Polynomial) -> Result, NttError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_MOD_Q` is never used [INFO] [stdout] --> src/falcon/ntt_consts.rs:248:11 [INFO] [stdout] | [INFO] [stdout] 248 | pub const INV_MOD_Q: [i32; 12289] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `field_norm`, `sqnorm`, `galois_conjugate`, and `lift` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 82 | / impl Polynomial [INFO] [stdout] 83 | | where [INFO] [stdout] 84 | | T: Clone [INFO] [stdout] 85 | | + Default [INFO] [stdout] ... | [INFO] [stdout] 91 | | + AddAssign [INFO] [stdout] 92 | | + Debug, [INFO] [stdout] | |________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn field_norm(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn sqnorm(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn galois_conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn lift(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `split` and `merge` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl Polynomial { [INFO] [stdout] | -------------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn split( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn merge(f_vec: Vec>) -> Polynomial { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `split_fp`, `map_to_fp`, `adjoint_fft`, and `adjoint` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl Polynomial { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn split_fp(f: &Polynomial) -> (Polynomial, Polynomial) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn adjoint_fft(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn adjoint(&self) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `merge_fp`, `map_to_complex`, `map_to_ffe`, `mul`, and `div` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl Polynomial { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn merge_fp(f0: Polynomial, f1: Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn map_to_complex(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | pub fn mul(lhs: &Polynomial, rhs: &Polynomial) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn div(lhs: &Polynomial, rhs: &Polynomial) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karatsuba` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:436:8 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn karatsuba(a: &[T], b: &[T]) -> Vec [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karamul` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:505:8 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn karamul(a: &[T], b: &[T]) -> Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reduce` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:534:12 [INFO] [stdout] | [INFO] [stdout] 516 | impl Polynomial { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 534 | pub fn reduce( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIGMA` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_SIGMA: f64 = 1.8205; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_2SIGMA2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const INV_2SIGMA2: f64 = 1.0 / (2.0 * MAX_SIGMA * MAX_SIGMA); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LN2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const LN2: f64 = std::f64::consts::LN_2; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILN2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const ILN2: f64 = std::f64::consts::LOG2_E; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCDT` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const RCDT: [u128; 18] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | const C: [u64; 13] = [ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base_sampler` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn base_sampler(bytes: &[u8; 9]) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approxexp` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn approxexp(x: f64, ccs: f64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `berexp` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn berexp(x: f64, ccs: f64, rand_bytes: &[u8; 7]) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `samplerz` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn samplerz(mu: f64, sigmin: f64, sigma: f64, rng: &mut R) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/falcon/polynomial.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | for (i, (f_vals, g_vals, capf_vals, capg_vals, expected_capf_vals, expected_capg_vals)) in [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn ffldl(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn ffldl_fft(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `FailedToSplitPolynomial`, `FailedToMergePolynomial`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum FftError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 27 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidRootIndex, [INFO] [stdout] 29 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToMergePolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FftError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `neg` is never used [INFO] [stdout] --> src/falcon/finite_field_element.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl FiniteFieldElem { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn neg(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum NtruError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | DivisionError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | XgcdError, [INFO] [stdout] 36 | ReductionError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 37 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NtruError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_fp` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl Polynomial { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_ffe` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl Polynomial { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.24s [INFO] running `Command { std: "docker" "inspect" "aa76335709e2b2ec64002580d28dee2dc8c67d2b9ea35a0c354ab2608fe243d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa76335709e2b2ec64002580d28dee2dc8c67d2b9ea35a0c354ab2608fe243d6", kill_on_drop: false }` [INFO] [stdout] aa76335709e2b2ec64002580d28dee2dc8c67d2b9ea35a0c354ab2608fe243d6 [INFO] checking mark-jardine/falcon_rs against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs" "/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/mark-jardine/falcon_rs on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mark-jardine/falcon_rs [INFO] finished tweaking git repo https://github.com/mark-jardine/falcon_rs [INFO] tweaked toml for git repo https://github.com/mark-jardine/falcon_rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mark-jardine/falcon_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e235c80e3b8c6ccec8344532ed2c085d96f51993899f67de18de358ee9589634 [INFO] running `Command { std: "docker" "start" "-a" "e235c80e3b8c6ccec8344532ed2c085d96f51993899f67de18de358ee9589634", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e235c80e3b8c6ccec8344532ed2c085d96f51993899f67de18de358ee9589634", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e235c80e3b8c6ccec8344532ed2c085d96f51993899f67de18de358ee9589634", kill_on_drop: false }` [INFO] [stdout] e235c80e3b8c6ccec8344532ed2c085d96f51993899f67de18de358ee9589634 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8428c5942c5d7215093c730d11b2dd42d144acbb19a35e410eca3267af3755b0 [INFO] running `Command { std: "docker" "start" "-a" "8428c5942c5d7215093c730d11b2dd42d144acbb19a35e410eca3267af3755b0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking falcon_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn ffldl(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn ffldl_fft(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `InvalidRootIndex`, `FailedToSplitPolynomial`, `FailedToMergePolynomial`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum FftError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 27 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidRootIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToMergePolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FftError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn split_fft( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn merge_fft(f_vec_fft: Vec>) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn fft(f: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn inv_fft(f_fft: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `neg` is never used [INFO] [stdout] --> src/falcon/finite_field_element.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl FiniteFieldElem { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn neg(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionError`, `XgcdError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum NtruError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | DivisionError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | XgcdError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | ReductionError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 37 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NtruError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitsize` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn bitsize(a: BigInt) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xgcd` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn xgcd(mut b: BigInt, mut n: BigInt) -> (BigInt, BigInt, BigInt) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntru_solve` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn ntru_solve( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gs_norm` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn gs_norm(f: &Polynomial, g: &Polynomial, q: i32) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial_parallel` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn gen_polynomial_parallel(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntru_gen` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn ntru_gen( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `InvalidRootIndex`, `FailedToSplitPolynomial`, and `InvNttFailed` are never constructed [INFO] [stdout] --> src/falcon/ntt.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum NttError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 28 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | InvalidRootIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | InvNttFailed, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NttError` 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 `I2` is never used [INFO] [stdout] --> src/falcon/ntt.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const I2: u16 = 6145; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SQRT_1` is never used [INFO] [stdout] --> src/falcon/ntt.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | const SQRT_1: u32 = 1479; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn split_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn merge_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn ntt(f: &Polynomial) -> Result, NttError> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn inv_ntt(f_ntt: &Polynomial) -> Result, NttError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_MOD_Q` is never used [INFO] [stdout] --> src/falcon/ntt_consts.rs:248:11 [INFO] [stdout] | [INFO] [stdout] 248 | pub const INV_MOD_Q: [i32; 12289] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `field_norm`, `sqnorm`, `galois_conjugate`, and `lift` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 82 | / impl Polynomial [INFO] [stdout] 83 | | where [INFO] [stdout] 84 | | T: Clone [INFO] [stdout] 85 | | + Default [INFO] [stdout] ... | [INFO] [stdout] 91 | | + AddAssign [INFO] [stdout] 92 | | + Debug, [INFO] [stdout] | |________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn field_norm(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn sqnorm(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn galois_conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn lift(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `split` and `merge` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl Polynomial { [INFO] [stdout] | -------------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn split( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn merge(f_vec: Vec>) -> Polynomial { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `split_fp`, `map_to_fp`, `adjoint_fft`, and `adjoint` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl Polynomial { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn split_fp(f: &Polynomial) -> (Polynomial, Polynomial) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn adjoint_fft(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn adjoint(&self) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `merge_fp`, `map_to_complex`, `map_to_ffe`, `mul`, and `div` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl Polynomial { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn merge_fp(f0: Polynomial, f1: Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn map_to_complex(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | pub fn mul(lhs: &Polynomial, rhs: &Polynomial) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | pub fn div(lhs: &Polynomial, rhs: &Polynomial) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karatsuba` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:436:8 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn karatsuba(a: &[T], b: &[T]) -> Vec [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karamul` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:505:8 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn karamul(a: &[T], b: &[T]) -> Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reduce` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:534:12 [INFO] [stdout] | [INFO] [stdout] 516 | impl Polynomial { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 534 | pub fn reduce( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIGMA` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_SIGMA: f64 = 1.8205; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INV_2SIGMA2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const INV_2SIGMA2: f64 = 1.0 / (2.0 * MAX_SIGMA * MAX_SIGMA); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LN2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const LN2: f64 = std::f64::consts::LN_2; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILN2` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const ILN2: f64 = std::f64::consts::LOG2_E; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCDT` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const RCDT: [u128; 18] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | const C: [u64; 13] = [ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base_sampler` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn base_sampler(bytes: &[u8; 9]) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approxexp` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn approxexp(x: f64, ccs: f64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `berexp` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn berexp(x: f64, ccs: f64, rand_bytes: &[u8; 7]) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `samplerz` is never used [INFO] [stdout] --> src/falcon/samplerz.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn samplerz(mu: f64, sigmin: f64, sigma: f64, rng: &mut R) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/falcon/polynomial.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | for (i, (f_vals, g_vals, capf_vals, capg_vals, expected_capf_vals, expected_capg_vals)) in [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn ffldl(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn ffldl_fft(g: &[Polynomial; 4]) -> Result>, FftError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:383:4 [INFO] [stdout] | [INFO] [stdout] 383 | fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `FailedToSplitPolynomial`, `FailedToMergePolynomial`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum FftError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 27 | ZeroLengthPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | InvalidRootIndex, [INFO] [stdout] 29 | FailedToSplitPolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | FailedToMergePolynomial, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FftError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `neg` is never used [INFO] [stdout] --> src/falcon/finite_field_element.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl FiniteFieldElem { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn neg(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum NtruError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | DivisionError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | XgcdError, [INFO] [stdout] 36 | ReductionError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 37 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NtruError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_polynomial` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_fp` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl Polynomial { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_ffe` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl Polynomial { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.70s [INFO] running `Command { std: "docker" "inspect" "8428c5942c5d7215093c730d11b2dd42d144acbb19a35e410eca3267af3755b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8428c5942c5d7215093c730d11b2dd42d144acbb19a35e410eca3267af3755b0", kill_on_drop: false }` [INFO] [stdout] 8428c5942c5d7215093c730d11b2dd42d144acbb19a35e410eca3267af3755b0