[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] d2fc1a59ac6a3edde21bf7db4c0c345aabbd917d [INFO] checking mark-jardine/falcon_rs against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mark-jardine/falcon_rs on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-3-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 135351dbf6695970908b6c647a0d6bb1913884dff89768f6398effd214943d78 [INFO] running `Command { std: "docker" "start" "-a" "135351dbf6695970908b6c647a0d6bb1913884dff89768f6398effd214943d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "135351dbf6695970908b6c647a0d6bb1913884dff89768f6398effd214943d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "135351dbf6695970908b6c647a0d6bb1913884dff89768f6398effd214943d78", kill_on_drop: false }` [INFO] [stdout] 135351dbf6695970908b6c647a0d6bb1913884dff89768f6398effd214943d78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d5f7c5c9cb1be84c5c7e123419338e77c945fd36a7f6c701b9e376b29dd924d [INFO] running `Command { std: "docker" "start" "-a" "8d5f7c5c9cb1be84c5c7e123419338e77c945fd36a7f6c701b9e376b29dd924d", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling generic-array v0.14.7 [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 rand v0.8.5 [INFO] [stderr] Checking rayon v1.10.0 [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 crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking falcon_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Signature_KAT` should have an upper camel case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SignatureKat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/falcon/falcon.rs:604:9 [INFO] [stdout] | [INFO] [stdout] 604 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Signature_KAT` should have an upper camel case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SignatureKat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [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: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:28 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [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: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:28 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deg` [INFO] [stdout] --> src/falcon/polynomial.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let deg = f_ntt.coefficients.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_deg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EncodingError` is never used [INFO] [stdout] --> src/falcon/encoding.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum EncodingError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/falcon/encoding.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn compress(v: &[i32], slen: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompress` is never used [INFO] [stdout] --> src/falcon/encoding.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | pub(crate) fn decompress(x: &[u8], slen: usize, n: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n`, `sigma`, `sigmin`, `sig_bound`, and `sig_bytelen` are never read [INFO] [stdout] --> src/falcon/falcon.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct FalconParams { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 42 | n: usize, [INFO] [stdout] | ^ [INFO] [stdout] 43 | sigma: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | sigmin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | sig_bound: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | sig_bytelen: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FalconParams` 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 `key_gen` is never used [INFO] [stdout] --> src/falcon/falcon.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn key_gen(params: FalconParams) -> Result<(PublicKey, SecretKey), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/falcon/falcon.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn sign(message: &[u8], sk: &SecretKey) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/falcon/falcon.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEAD_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const HEAD_LEN: usize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SALT_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const SALT_LEN: usize = 40; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const SEED_LEN: usize = 56; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalise_tree` is never used [INFO] [stdout] --> src/falcon/falcon.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn normalise_tree(tree: &mut Tree, sigma: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FalconSignature` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct FalconSignature { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/falcon/falcon.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl FalconSignature { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 155 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecurityLevel` is never used [INFO] [stdout] --> src/falcon/falcon.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum SecurityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_degree` is never used [INFO] [stdout] --> src/falcon/falcon.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 169 | impl SecurityLevel { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 170 | pub fn from_degree(n: usize) -> FalconParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicKey` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct PublicKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `verify` are never used [INFO] [stdout] --> src/falcon/falcon.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl PublicKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | pub fn new(sk: &SecretKey) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub(crate) fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecretKey` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct SecretKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sample_preimage`, `hash_to_point`, and `sign` are never used [INFO] [stdout] --> src/falcon/falcon.rs:276:19 [INFO] [stdout] | [INFO] [stdout] 275 | impl SecretKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 276 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | fn sample_preimage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub(crate) fn hash_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub(crate) fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) enum Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `print_tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn print_tree(tree: &Tree, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:162:4 [INFO] [stdout] | [INFO] [stdout] 162 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) fn ffldl(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:259:15 [INFO] [stdout] | [INFO] [stdout] 259 | pub(crate) fn ffldl_fft(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:419:15 [INFO] [stdout] | [INFO] [stdout] 419 | pub(crate) fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FftError` is never used [INFO] [stdout] --> src/falcon/fft.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum FftError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) 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:15 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) fn merge_fft( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | pub(crate) 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:135:15 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) fn inv_fft(f_fft: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NtruError` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) enum NtruError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitsize` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) 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:15 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) 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:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | 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:252:15 [INFO] [stdout] | [INFO] [stdout] 252 | pub(crate) fn ntru_gen( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NttError` is never used [INFO] [stdout] --> src/falcon/ntt.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) enum NttError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `I2` is never used [INFO] [stdout] --> src/falcon/ntt.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | 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:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | 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:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn split_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn merge_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn ntt( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | pub(crate) fn inv_ntt( [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`, `lift`, and `neg` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 84 | / impl Polynomial [INFO] [stdout] 85 | | where [INFO] [stdout] 86 | | T: Clone [INFO] [stdout] 87 | | + Default [INFO] [stdout] ... | [INFO] [stdout] 93 | | + AddAssign [INFO] [stdout] 94 | | + Debug, [INFO] [stdout] | |________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn field_norm(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub(crate) fn sqnorm(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub(crate) fn galois_conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub(crate) fn lift(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub(crate) fn neg(&self) -> Polynomial { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/falcon/polynomial.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 204 | impl Polynomial { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | pub(crate) fn split( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub(crate) fn merge(f_vec: Vec>) -> Polynomial { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub(crate) fn div_ntt( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub(crate) fn div_zq( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub(crate) fn mul_zq( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub(crate) fn neg_zq(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub(crate) fn add_zq(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub(crate) fn sub_zq(&self, other: &Self) -> Self { [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:324:19 [INFO] [stdout] | [INFO] [stdout] 318 | impl Polynomial { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 324 | pub(crate) fn split_fp( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub(crate) fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub(crate) fn adjoint_fft(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub(crate) 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:408:19 [INFO] [stdout] | [INFO] [stdout] 402 | impl Polynomial { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 408 | pub(crate) fn merge_fp(f0: Polynomial, f1: Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub(crate) fn map_to_complex(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | pub(crate) fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub(crate) fn mul( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub(crate) fn div( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karatsuba` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:519:15 [INFO] [stdout] | [INFO] [stdout] 519 | pub(crate) 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:588:15 [INFO] [stdout] | [INFO] [stdout] 588 | pub(crate) 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:617:19 [INFO] [stdout] | [INFO] [stdout] 599 | impl Polynomial { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 617 | pub(crate) 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:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | 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:15 [INFO] [stdout] | [INFO] [stdout] 169 | pub(crate) fn samplerz(mu: f64, sigmin: f64, sigma: f64, rng: &mut R) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Signature_KAT` is never constructed [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` is never used [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sign_KAT` should have a snake case name [INFO] [stdout] --> src/falcon/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod sign_KAT; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sign_kat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` should have an upper case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SIGN_KAT512` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deg` [INFO] [stdout] --> src/falcon/polynomial.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let deg = f_ntt.coefficients.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_deg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_gen` is never used [INFO] [stdout] --> src/falcon/falcon.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn key_gen(params: FalconParams) -> Result<(PublicKey, SecretKey), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/falcon/falcon.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn sign(message: &[u8], sk: &SecretKey) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/falcon/falcon.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const SEED_LEN: usize = 56; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `salt` are never read [INFO] [stdout] --> src/falcon/falcon.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct FalconSignature { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 150 | header: [u8; 8], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 151 | salt: [u8; 40], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/falcon/falcon.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl FalconSignature { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 155 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Falcon512` and `Falcon1024` are never constructed [INFO] [stdout] --> src/falcon/falcon.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum SecurityLevel { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 166 | Falcon512(FalconParams), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 167 | Falcon1024(FalconParams), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n` and `sig_bound` are never read [INFO] [stdout] --> src/falcon/falcon.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct PublicKey { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 186 | n: usize, [INFO] [stdout] | ^ [INFO] [stdout] 187 | h: Polynomial, [INFO] [stdout] 188 | sig_bound: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `f`, `g`, `capf`, and `capg` are never read [INFO] [stdout] --> src/falcon/falcon.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct SecretKey { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 265 | params: FalconParams, [INFO] [stdout] 266 | f: Polynomial, [INFO] [stdout] | ^ [INFO] [stdout] 267 | g: Polynomial, [INFO] [stdout] | ^ [INFO] [stdout] 268 | capf: Polynomial, [INFO] [stdout] | ^^^^ [INFO] [stdout] 269 | capg: Polynomial, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `print_tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn print_tree(tree: &Tree, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) fn ffldl(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/falcon/fft.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Other(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `FailedToSplitPolynomial`, and `FailedToMergePolynomial` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) 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] | [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: variants `DivisionError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) 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:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_ffe` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:429:19 [INFO] [stdout] | [INFO] [stdout] 402 | impl Polynomial { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 429 | pub(crate) fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nonce`, `seed`, `s2`, and `sig` are never read [INFO] [stdout] --> src/falcon/sign_KAT.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub(crate) nonce: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub(crate) seed: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pub(crate) s2: &'static [i16], [INFO] [stdout] | ^^ [INFO] [stdout] 10 | pub(crate) sig: &'static str, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sign_KAT` should have a snake case name [INFO] [stdout] --> src/falcon/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod sign_KAT; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sign_kat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` should have an upper case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SIGN_KAT512` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.91s [INFO] running `Command { std: "docker" "inspect" "8d5f7c5c9cb1be84c5c7e123419338e77c945fd36a7f6c701b9e376b29dd924d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d5f7c5c9cb1be84c5c7e123419338e77c945fd36a7f6c701b9e376b29dd924d", kill_on_drop: false }` [INFO] [stdout] 8d5f7c5c9cb1be84c5c7e123419338e77c945fd36a7f6c701b9e376b29dd924d [INFO] checking mark-jardine/falcon_rs against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmark-jardine%2Ffalcon_rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mark-jardine/falcon_rs on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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-3-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b672881c008282a4bf15594bb5fd833589669fc7be71af9c7f613d0233a56117 [INFO] running `Command { std: "docker" "start" "-a" "b672881c008282a4bf15594bb5fd833589669fc7be71af9c7f613d0233a56117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b672881c008282a4bf15594bb5fd833589669fc7be71af9c7f613d0233a56117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b672881c008282a4bf15594bb5fd833589669fc7be71af9c7f613d0233a56117", kill_on_drop: false }` [INFO] [stdout] b672881c008282a4bf15594bb5fd833589669fc7be71af9c7f613d0233a56117 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60a8564944aef225a9f483190816ed4af7269b9e221d6bbd385b75d15bc1be39 [INFO] running `Command { std: "docker" "start" "-a" "60a8564944aef225a9f483190816ed4af7269b9e221d6bbd385b75d15bc1be39", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling generic-array v0.14.7 [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 block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking falcon_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Signature_KAT` should have an upper camel case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SignatureKat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/falcon/falcon.rs:604:9 [INFO] [stdout] | [INFO] [stdout] 604 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Signature_KAT` should have an upper camel case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SignatureKat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [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: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:28 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [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: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:28 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/falcon/falcon.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | let (mut f, mut g, mut capf, mut capg): ( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deg` [INFO] [stdout] --> src/falcon/polynomial.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let deg = f_ntt.coefficients.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_deg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EncodingError` is never used [INFO] [stdout] --> src/falcon/encoding.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum EncodingError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/falcon/encoding.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn compress(v: &[i32], slen: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompress` is never used [INFO] [stdout] --> src/falcon/encoding.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | pub(crate) fn decompress(x: &[u8], slen: usize, n: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n`, `sigma`, `sigmin`, `sig_bound`, and `sig_bytelen` are never read [INFO] [stdout] --> src/falcon/falcon.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct FalconParams { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 42 | n: usize, [INFO] [stdout] | ^ [INFO] [stdout] 43 | sigma: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | sigmin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | sig_bound: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | sig_bytelen: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FalconParams` 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 `key_gen` is never used [INFO] [stdout] --> src/falcon/falcon.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn key_gen(params: FalconParams) -> Result<(PublicKey, SecretKey), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/falcon/falcon.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn sign(message: &[u8], sk: &SecretKey) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/falcon/falcon.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEAD_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const HEAD_LEN: usize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SALT_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | const SALT_LEN: usize = 40; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const SEED_LEN: usize = 56; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalise_tree` is never used [INFO] [stdout] --> src/falcon/falcon.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn normalise_tree(tree: &mut Tree, sigma: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FalconSignature` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct FalconSignature { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/falcon/falcon.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl FalconSignature { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 155 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecurityLevel` is never used [INFO] [stdout] --> src/falcon/falcon.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum SecurityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_degree` is never used [INFO] [stdout] --> src/falcon/falcon.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 169 | impl SecurityLevel { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 170 | pub fn from_degree(n: usize) -> FalconParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicKey` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct PublicKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `verify` are never used [INFO] [stdout] --> src/falcon/falcon.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl PublicKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | pub fn new(sk: &SecretKey) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub(crate) fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecretKey` is never constructed [INFO] [stdout] --> src/falcon/falcon.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct SecretKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sample_preimage`, `hash_to_point`, and `sign` are never used [INFO] [stdout] --> src/falcon/falcon.rs:276:19 [INFO] [stdout] | [INFO] [stdout] 275 | impl SecretKey { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 276 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | fn sample_preimage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub(crate) fn hash_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub(crate) fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) enum Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `print_tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn print_tree(tree: &Tree, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gram` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub(crate) fn gram(b: &[Polynomial; 4]) -> Result<[Polynomial; 4], FftError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:162:4 [INFO] [stdout] | [INFO] [stdout] 162 | fn ldl_fft( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) fn ffldl(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:259:15 [INFO] [stdout] | [INFO] [stdout] 259 | pub(crate) fn ffldl_fft(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffsampling_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:419:15 [INFO] [stdout] | [INFO] [stdout] 419 | pub(crate) fn ffsampling_fft( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FftError` is never used [INFO] [stdout] --> src/falcon/fft.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum FftError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) 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:15 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) fn merge_fft( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fft` is never used [INFO] [stdout] --> src/falcon/fft.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | pub(crate) 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:135:15 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) fn inv_fft(f_fft: Polynomial) -> Result, FftError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NtruError` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) enum NtruError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitsize` is never used [INFO] [stdout] --> src/falcon/ntrugen.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) 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:15 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) 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:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | 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:252:15 [INFO] [stdout] | [INFO] [stdout] 252 | pub(crate) fn ntru_gen( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NttError` is never used [INFO] [stdout] --> src/falcon/ntt.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) enum NttError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `I2` is never used [INFO] [stdout] --> src/falcon/ntt.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | 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:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | 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:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn split_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn merge_ntt( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn ntt( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_ntt` is never used [INFO] [stdout] --> src/falcon/ntt.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | pub(crate) fn inv_ntt( [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`, `lift`, and `neg` are never used [INFO] [stdout] --> src/falcon/polynomial.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 84 | / impl Polynomial [INFO] [stdout] 85 | | where [INFO] [stdout] 86 | | T: Clone [INFO] [stdout] 87 | | + Default [INFO] [stdout] ... | [INFO] [stdout] 93 | | + AddAssign [INFO] [stdout] 94 | | + Debug, [INFO] [stdout] | |________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn field_norm(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub(crate) fn sqnorm(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub(crate) fn galois_conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub(crate) fn lift(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub(crate) fn neg(&self) -> Polynomial { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/falcon/polynomial.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 204 | impl Polynomial { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | pub(crate) fn split( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub(crate) fn merge(f_vec: Vec>) -> Polynomial { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub(crate) fn div_ntt( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub(crate) fn div_zq( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub(crate) fn mul_zq( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub(crate) fn neg_zq(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub(crate) fn add_zq(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub(crate) fn sub_zq(&self, other: &Self) -> Self { [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:324:19 [INFO] [stdout] | [INFO] [stdout] 318 | impl Polynomial { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 324 | pub(crate) fn split_fp( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub(crate) fn map_to_fp(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub(crate) fn adjoint_fft(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub(crate) 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:408:19 [INFO] [stdout] | [INFO] [stdout] 402 | impl Polynomial { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 408 | pub(crate) fn merge_fp(f0: Polynomial, f1: Polynomial) -> Polynomial { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub(crate) fn map_to_complex(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | pub(crate) fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub(crate) fn mul( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub(crate) fn div( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `karatsuba` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:519:15 [INFO] [stdout] | [INFO] [stdout] 519 | pub(crate) 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:588:15 [INFO] [stdout] | [INFO] [stdout] 588 | pub(crate) 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:617:19 [INFO] [stdout] | [INFO] [stdout] 599 | impl Polynomial { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 617 | pub(crate) 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:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | 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:15 [INFO] [stdout] | [INFO] [stdout] 169 | pub(crate) fn samplerz(mu: f64, sigmin: f64, sigma: f64, rng: &mut R) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Signature_KAT` is never constructed [INFO] [stdout] --> src/falcon/sign_KAT.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` is never used [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sign_KAT` should have a snake case name [INFO] [stdout] --> src/falcon/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod sign_KAT; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sign_kat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/falcon.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 52 | let sk = SecretKey::new(params.n, None)?; [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 53 | let pk = PublicKey::new(&sk); [INFO] [stdout] 54 | Ok((pk, sk)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/falcon.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 371 | let mut tree_fft = ffldl_fft(&g0_fft.try_into().unwrap())?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 389 | Ok(SecretKey { [INFO] [stdout] | ____________^ [INFO] [stdout] 390 | | params: FalconParams { [INFO] [stdout] 391 | | n, [INFO] [stdout] 392 | | sigma, [INFO] [stdout] ... | [INFO] [stdout] 403 | | h, [INFO] [stdout] 404 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 73 | fn mul(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | Polynomial::new( [INFO] [stdout] 75 | / self.coefficients [INFO] [stdout] 76 | | .iter() [INFO] [stdout] 77 | | .zip(rhs.coefficients) [INFO] [stdout] 78 | | .map(|(s, r)| s.to_owned() * r) [INFO] [stdout] 79 | | .collect(), [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | .map(|(s, r)| s.to_owned() * r) [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:198:31 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|coeff| -(coeff.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:595:38 [INFO] [stdout] | [INFO] [stdout] 595 | let abr: Vec = (0..n).map(|i| ab[i].clone() - ab[i + n].clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:595:54 [INFO] [stdout] | [INFO] [stdout] 595 | let abr: Vec = (0..n).map(|i| ab[i].clone() - ab[i + n].clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` should have an upper case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SIGN_KAT512` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deg` [INFO] [stdout] --> src/falcon/polynomial.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let deg = f_ntt.coefficients.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_deg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `falcon_rs` (lib) due to 8 previous errors; 77 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `key_gen` is never used [INFO] [stdout] --> src/falcon/falcon.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn key_gen(params: FalconParams) -> Result<(PublicKey, SecretKey), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/falcon/falcon.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn sign(message: &[u8], sk: &SecretKey) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify` is never used [INFO] [stdout] --> src/falcon/falcon.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_LEN` is never used [INFO] [stdout] --> src/falcon/falcon.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | const SEED_LEN: usize = 56; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `salt` are never read [INFO] [stdout] --> src/falcon/falcon.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct FalconSignature { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 150 | header: [u8; 8], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 151 | salt: [u8; 40], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/falcon/falcon.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl FalconSignature { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 155 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Falcon512` and `Falcon1024` are never constructed [INFO] [stdout] --> src/falcon/falcon.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum SecurityLevel { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 166 | Falcon512(FalconParams), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 167 | Falcon1024(FalconParams), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `n` and `sig_bound` are never read [INFO] [stdout] --> src/falcon/falcon.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct PublicKey { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 186 | n: usize, [INFO] [stdout] | ^ [INFO] [stdout] 187 | h: Polynomial, [INFO] [stdout] 188 | sig_bound: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `f`, `g`, `capf`, and `capg` are never read [INFO] [stdout] --> src/falcon/falcon.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct SecretKey { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 265 | params: FalconParams, [INFO] [stdout] 266 | f: Polynomial, [INFO] [stdout] | ^ [INFO] [stdout] 267 | g: Polynomial, [INFO] [stdout] | ^ [INFO] [stdout] 268 | capf: Polynomial, [INFO] [stdout] | ^^^^ [INFO] [stdout] 269 | capg: Polynomial, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `print_tree` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn print_tree(tree: &Tree, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn ldl( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffldl` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) fn ffldl(g: &[Polynomial; 4]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:311:4 [INFO] [stdout] | [INFO] [stdout] 311 | fn ffnp( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ffnp_fft` is never used [INFO] [stdout] --> src/falcon/ffsampling.rs:363:4 [INFO] [stdout] | [INFO] [stdout] 363 | fn ffnp_fft( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/falcon/fft.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | Other(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Other(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ZeroLengthPolynomial`, `FailedToSplitPolynomial`, and `FailedToMergePolynomial` are never constructed [INFO] [stdout] --> src/falcon/fft.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) 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] | [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: variants `DivisionError`, `ReductionError`, and `Other` are never constructed [INFO] [stdout] --> src/falcon/ntrugen.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) 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:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn gen_polynomial(n: i32) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_to_ffe` is never used [INFO] [stdout] --> src/falcon/polynomial.rs:429:19 [INFO] [stdout] | [INFO] [stdout] 402 | impl Polynomial { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 429 | pub(crate) fn map_to_ffe(&self) -> Polynomial { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nonce`, `seed`, `s2`, and `sig` are never read [INFO] [stdout] --> src/falcon/sign_KAT.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Signature_KAT { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub(crate) nonce: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub(crate) seed: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pub(crate) s2: &'static [i16], [INFO] [stdout] | ^^ [INFO] [stdout] 10 | pub(crate) sig: &'static str, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `sign_KAT` should have a snake case name [INFO] [stdout] --> src/falcon/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod sign_KAT; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `sign_kat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/falcon.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 52 | let sk = SecretKey::new(params.n, None)?; [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 53 | let pk = PublicKey::new(&sk); [INFO] [stdout] 54 | Ok((pk, sk)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/falcon.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 371 | let mut tree_fft = ffldl_fft(&g0_fft.try_into().unwrap())?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 389 | Ok(SecretKey { [INFO] [stdout] | ____________^ [INFO] [stdout] 390 | | params: FalconParams { [INFO] [stdout] 391 | | n, [INFO] [stdout] 392 | | sigma, [INFO] [stdout] ... | [INFO] [stdout] 403 | | h, [INFO] [stdout] 404 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 73 | fn mul(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | Polynomial::new( [INFO] [stdout] 75 | / self.coefficients [INFO] [stdout] 76 | | .iter() [INFO] [stdout] 77 | | .zip(rhs.coefficients) [INFO] [stdout] 78 | | .map(|(s, r)| s.to_owned() * r) [INFO] [stdout] 79 | | .collect(), [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | .map(|(s, r)| s.to_owned() * r) [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:198:31 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|coeff| -(coeff.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:595:38 [INFO] [stdout] | [INFO] [stdout] 595 | let abr: Vec = (0..n).map(|i| ab[i].clone() - ab[i + n].clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/falcon/polynomial.rs:595:54 [INFO] [stdout] | [INFO] [stdout] 595 | let abr: Vec = (0..n).map(|i| ab[i].clone() - ab[i + n].clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sign_KAT512` should have an upper case name [INFO] [stdout] --> src/falcon/sign_KAT.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub (crate) const sign_KAT512: [Signature_KAT; 12] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `SIGN_KAT512` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `falcon_rs` (lib test) due to 8 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "60a8564944aef225a9f483190816ed4af7269b9e221d6bbd385b75d15bc1be39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60a8564944aef225a9f483190816ed4af7269b9e221d6bbd385b75d15bc1be39", kill_on_drop: false }` [INFO] [stdout] 60a8564944aef225a9f483190816ed4af7269b9e221d6bbd385b75d15bc1be39