[INFO] cloning repository https://github.com/ammatsui/crystals-kyber [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ammatsui/crystals-kyber" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammatsui%2Fcrystals-kyber", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammatsui%2Fcrystals-kyber'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 974372b83c3348194490cf560b6d48f0c63088fa [INFO] checking ammatsui/crystals-kyber against try#8a0378607d6b34c242e3bfa75554871be641864b for pr-143028 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammatsui%2Fcrystals-kyber" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ammatsui/crystals-kyber [INFO] finished tweaking git repo https://github.com/ammatsui/crystals-kyber [INFO] tweaked toml for git repo https://github.com/ammatsui/crystals-kyber written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ammatsui/crystals-kyber on toolchain 8a0378607d6b34c242e3bfa75554871be641864b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a0378607d6b34c242e3bfa75554871be641864b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ammatsui/crystals-kyber 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" "+8a0378607d6b34c242e3bfa75554871be641864b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a0378607d6b34c242e3bfa75554871be641864b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b1a226920314d305713538571f3d336a6332d06d1383c2de1a36b6c05e2a906 [INFO] running `Command { std: "docker" "start" "-a" "7b1a226920314d305713538571f3d336a6332d06d1383c2de1a36b6c05e2a906", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b1a226920314d305713538571f3d336a6332d06d1383c2de1a36b6c05e2a906", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b1a226920314d305713538571f3d336a6332d06d1383c2de1a36b6c05e2a906", kill_on_drop: false }` [INFO] [stdout] 7b1a226920314d305713538571f3d336a6332d06d1383c2de1a36b6c05e2a906 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a0378607d6b34c242e3bfa75554871be641864b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43973bb9d3cd3d83f3f8b8291ab075a441bc2fc812938f1517d717364ec3347f [INFO] running `Command { std: "docker" "start" "-a" "43973bb9d3cd3d83f3f8b8291ab075a441bc2fc812938f1517d717364ec3347f", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking keccak v0.1.4 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking getrandom v0.2.10 [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 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 crystal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::Q` [INFO] [stdout] --> src/params/mode768.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::Q; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `params::*` [INFO] [stdout] --> src/ntt.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, utils::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packing::*` [INFO] [stdout] --> src/sample.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, poly::*, utils::*, packing::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `packing::*` and `poly::*` [INFO] [stdout] --> src/ccakem.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, sample::*, poly::*, packing::*}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Q` [INFO] [stdout] --> src/params/mode768.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::Q; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `params::*` [INFO] [stdout] --> src/ntt.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, utils::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packing::*` [INFO] [stdout] --> src/sample.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, poly::*, utils::*, packing::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `packing::*` and `poly::*` [INFO] [stdout] --> src/ccakem.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{params::*, sample::*, poly::*, packing::*}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut t = a; [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/sample.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut res = hasher.finalize(); [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/cpapke.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut A = get_matrix(&mut rho); [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/cpapke.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut tmp = Compress(&u, Du as i16); [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/cpapke.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut tmp = compress(&v, Dv as i16); [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/ccakem.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | let (mut shk, r) = res.split_at(SEEDBYTES); [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/ccakem.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | let (mut shkp, r) = res.split_at(SEEDBYTES); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Du` should have an upper case name [INFO] [stdout] --> src/params/mode768.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const Du: usize = 10; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `DU` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Dv` should have an upper case name [INFO] [stdout] --> src/params/mode768.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const Dv: usize = 4; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `DV` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 147 - pub struct VecPoly [INFO] [stdout] 147 + pub struct VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct VecPoly [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl Default for VecPoly<{l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 153 - impl Default for VecPoly<{l}> [INFO] [stdout] 153 + impl Default for VecPoly<{l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut t = a; [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: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 162 - pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] 162 + pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 177 - pub struct Mat [INFO] [stdout] 177 + pub struct Mat [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:38 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl Default for Mat<{k}, {l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 183 - impl Default for Mat<{k}, {l}> [INFO] [stdout] 183 + impl Default for Mat<{k}, {l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:183:28 [INFO] [stdout] | [INFO] [stdout] 183 | impl Default for Mat<{k}, {l}> [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 191 - pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] 191 + pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:191:37 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 191 - pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] 191 + pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:191:47 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:212:24 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 212 - pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] 212 + pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Ntt` should have a snake case name [INFO] [stdout] --> src/poly.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ntt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_Ntt` should have a snake case name [INFO] [stdout] --> src/poly.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn inv_Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `inv_ntt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:233:22 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn inv_Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Neg` should have a snake case name [INFO] [stdout] --> src/poly.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:244:18 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 244 - pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 244 + pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sMult` should have a snake case name [INFO] [stdout] --> src/poly.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `s_mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:254:20 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 254 - pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 254 + pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:265:20 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 265 - pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] 265 + pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 277 - pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] 277 + pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:289:23 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 289 - pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 289 + pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:303:23 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 303 - pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] 303 + pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:317:23 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 317 - pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] 317 + pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:317:38 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:317:47 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:328:23 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:328:38 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 328 - pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] 328 + pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:328:65 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Caddq` should have a snake case name [INFO] [stdout] --> src/poly.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `caddq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 365 - pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] 365 + pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:375:19 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 375 - pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] 375 + pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Compress` should have a snake case name [INFO] [stdout] --> src/poly.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | pub fn Compress(r: &VecPoly, d: i16) -> VecPoly [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `compress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Decompress` should have a snake case name [INFO] [stdout] --> src/poly.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 420 | pub fn Decompress(r: &VecPoly, d: i16) -> VecPoly [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decompress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `H` should have a snake case name [INFO] [stdout] --> src/sample.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn H(seed: &[u8], out: &mut [u8]) [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `G` should have a snake case name [INFO] [stdout] --> src/sample.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn G(seed: &[u8], out: &mut [u8]) [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load32_LE` should have a snake case name [INFO] [stdout] --> src/sample.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn load32_LE(x: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `load32_le` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load24_LE` should have a snake case name [INFO] [stdout] --> src/sample.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn load24_LE(x: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `load24_le` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CBD` should have a snake case name [INFO] [stdout] --> src/sample.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CBD(b: &[u8], ETA: usize) -> Poly [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `cbd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ETA` should have a snake case name [INFO] [stdout] --> src/sample.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CBD(b: &[u8], ETA: usize) -> Poly [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `eta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/sample.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut A: Mat = Mat::::default(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Encode` should have a snake case name [INFO] [stdout] --> src/packing.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn Encode(r: &mut [u8], a: &VecPoly, d: usize) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Decode` should have a snake case name [INFO] [stdout] --> src/packing.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn Decode(r: &mut VecPoly, a: &[u8], d: usize) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keyGen` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn keyGen() -> ([u8; PK_BYTES], [u8; SK_BYTES]) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `key_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = get_matrix(&rho); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut A = get_matrix(&mut rho); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keyGen` should have a snake case name [INFO] [stdout] --> src/ccakem.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn keyGen() -> ([u8; KEMPK_BYTES], [u8; KEMSK_BYTES]) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `key_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sample.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut res = hasher.finalize(); [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/cpapke.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut A = get_matrix(&mut rho); [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/cpapke.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut tmp = Compress(&u, Du as i16); [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/cpapke.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut tmp = compress(&v, Dv as i16); [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/ccakem.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | let (mut shk, r) = res.split_at(SEEDBYTES); [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/ccakem.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | let (mut shkp, r) = res.split_at(SEEDBYTES); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Du` should have an upper case name [INFO] [stdout] --> src/params/mode768.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const Du: usize = 10; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `DU` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Dv` should have an upper case name [INFO] [stdout] --> src/params/mode768.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const Dv: usize = 4; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `DV` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 147 - pub struct VecPoly [INFO] [stdout] 147 + pub struct VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct VecPoly [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl Default for VecPoly<{l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 153 - impl Default for VecPoly<{l}> [INFO] [stdout] 153 + impl Default for VecPoly<{l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 162 - pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] 162 + pub fn inf_norm(p: &VecPoly<{k}>) -> i16 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 177 - pub struct Mat [INFO] [stdout] 177 + pub struct Mat [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:38 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct Mat [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl Default for Mat<{k}, {l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 183 - impl Default for Mat<{k}, {l}> [INFO] [stdout] 183 + impl Default for Mat<{k}, {l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:183:28 [INFO] [stdout] | [INFO] [stdout] 183 | impl Default for Mat<{k}, {l}> [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 191 - pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] 191 + pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:191:37 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 191 - pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] 191 + pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:191:47 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn transp(A: &Mat<{k}, {l}>) -> Mat<{l}, {k}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:212:24 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 212 - pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] 212 + pub fn vb_reduce(a: &mut VecPoly<{k}>) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Ntt` should have a snake case name [INFO] [stdout] --> src/poly.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ntt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inv_Ntt` should have a snake case name [INFO] [stdout] --> src/poly.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn inv_Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `inv_ntt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:233:22 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn inv_Ntt(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Neg` should have a snake case name [INFO] [stdout] --> src/poly.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `neg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:244:18 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 244 - pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 244 + pub fn Neg(a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sMult` should have a snake case name [INFO] [stdout] --> src/poly.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `s_mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:254:20 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 254 - pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 254 + pub fn sMult(s: i16, a: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:265:20 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 265 - pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] 265 + pub fn v_add(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 277 - pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] 277 + pub fn v_sub(a: &VecPoly, b: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:289:23 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 289 - pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] 289 + pub fn p_mult_v(p: &Poly, v: &VecPoly<{k}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:303:23 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 303 - pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] 303 + pub fn v_mult_v(v: &VecPoly<{k}>, u: &VecPoly<{k}>) -> Poly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:317:23 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 317 - pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] 317 + pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:317:38 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to upper case: `L` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:317:47 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn m_mult_v(A: &Mat<{k}, {l}>, s: &VecPoly<{l}>) -> VecPoly<{k}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:328:23 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `l` should have an upper case name [INFO] [stdout] --> src/poly.rs:328:38 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 328 - pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] 328 + pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/poly.rs:328:65 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn v_mult_m(s: &VecPoly<{k}>, A: &Mat<{k}, {l}>) -> VecPoly<{l}> [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Caddq` should have a snake case name [INFO] [stdout] --> src/poly.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `caddq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 365 - pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] 365 + pub fn Caddq(a: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `k` should have an upper case name [INFO] [stdout] --> src/poly.rs:375:19 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 375 - pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] 375 + pub fn modq(a: &VecPoly) -> VecPoly [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Compress` should have a snake case name [INFO] [stdout] --> src/poly.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | pub fn Compress(r: &VecPoly, d: i16) -> VecPoly [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `compress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Decompress` should have a snake case name [INFO] [stdout] --> src/poly.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 420 | pub fn Decompress(r: &VecPoly, d: i16) -> VecPoly [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `decompress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `H` should have a snake case name [INFO] [stdout] --> src/sample.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn H(seed: &[u8], out: &mut [u8]) [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `G` should have a snake case name [INFO] [stdout] --> src/sample.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn G(seed: &[u8], out: &mut [u8]) [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load32_LE` should have a snake case name [INFO] [stdout] --> src/sample.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn load32_LE(x: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `load32_le` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load24_LE` should have a snake case name [INFO] [stdout] --> src/sample.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn load24_LE(x: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `load24_le` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CBD` should have a snake case name [INFO] [stdout] --> src/sample.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CBD(b: &[u8], ETA: usize) -> Poly [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `cbd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ETA` should have a snake case name [INFO] [stdout] --> src/sample.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CBD(b: &[u8], ETA: usize) -> Poly [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `eta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/sample.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut A: Mat = Mat::::default(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Encode` should have a snake case name [INFO] [stdout] --> src/packing.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn Encode(r: &mut [u8], a: &VecPoly, d: usize) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Decode` should have a snake case name [INFO] [stdout] --> src/packing.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn Decode(r: &mut VecPoly, a: &[u8], d: usize) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keyGen` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn keyGen() -> ([u8; PK_BYTES], [u8; SK_BYTES]) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `key_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let A = get_matrix(&rho); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/cpapke.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut A = get_matrix(&mut rho); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keyGen` should have a snake case name [INFO] [stdout] --> src/ccakem.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn keyGen() -> ([u8; KEMPK_BYTES], [u8; KEMSK_BYTES]) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `key_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.03s [INFO] running `Command { std: "docker" "inspect" "43973bb9d3cd3d83f3f8b8291ab075a441bc2fc812938f1517d717364ec3347f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43973bb9d3cd3d83f3f8b8291ab075a441bc2fc812938f1517d717364ec3347f", kill_on_drop: false }` [INFO] [stdout] 43973bb9d3cd3d83f3f8b8291ab075a441bc2fc812938f1517d717364ec3347f