[INFO] cloning repository https://github.com/CleanPegasus/modular_arithmetic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CleanPegasus/modular_arithmetic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCleanPegasus%2Fmodular_arithmetic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCleanPegasus%2Fmodular_arithmetic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 668f382f0eae3eb058eefc0743b42ebef9b46eec [INFO] building CleanPegasus/modular_arithmetic against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCleanPegasus%2Fmodular_arithmetic" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CleanPegasus/modular_arithmetic on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CleanPegasus/modular_arithmetic [INFO] finished tweaking git repo https://github.com/CleanPegasus/modular_arithmetic [INFO] tweaked toml for git repo https://github.com/CleanPegasus/modular_arithmetic written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CleanPegasus/modular_arithmetic 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded parity-scale-codec-derive v3.6.9 [INFO] [stderr] Downloaded parity-scale-codec v3.6.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdb5e0944b89694cd63d36a54174919c38b0c7ff259b76af0a6b0d52b619c56c [INFO] running `Command { std: "docker" "start" "-a" "bdb5e0944b89694cd63d36a54174919c38b0c7ff259b76af0a6b0d52b619c56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdb5e0944b89694cd63d36a54174919c38b0c7ff259b76af0a6b0d52b619c56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdb5e0944b89694cd63d36a54174919c38b0c7ff259b76af0a6b0d52b619c56c", kill_on_drop: false }` [INFO] [stdout] bdb5e0944b89694cd63d36a54174919c38b0c7ff259b76af0a6b0d52b619c56c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26cd07be421f6cbe902fc43f01068e97284d5ab34463956efbe6e6de991b1e3d [INFO] running `Command { std: "docker" "start" "-a" "26cd07be421f6cbe902fc43f01068e97284d5ab34463956efbe6e6de991b1e3d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling modular_math v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mod_math/mod_math.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | while (m < r) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 285 - while (m < r) { [INFO] [stdout] 285 + while m < r { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModMath` [INFO] [stdout] --> src/galois_field/galois_field.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/galois_field/galois_field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/curves/elliptical_curve.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoU256` [INFO] [stdout] --> src/curves/elliptical_curve.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coefficients` [INFO] [stdout] --> src/galois_field/galois_field.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn poly(&self, coefficients: Vec) -> GaloisFieldPolynomial { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coefficients` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `polynomial` is never read [INFO] [stdout] --> src/galois_field/galois_field.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GaloisFieldPolynomial { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 13 | polynomial: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GaloisFieldError` is never used [INFO] [stdout] --> src/galois_field/galois_field.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum GaloisFieldError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `b` is never read [INFO] [stdout] --> src/curves/elliptical_curve.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Curve { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | b: U256, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` is never used [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | pub G: ECPoint // Generator Point [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:75:72 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn new(a: U256, b: U256, field_modulus: U256, curve_order: U256, G: ECPoint) -> Self { [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BN128` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn BN128() -> Curve { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `bn128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let G = ECPoint::new(U256::from(1), U256::from(2)); [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `secp256k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | let G = ECPoint::new(U256::from_dec_str("55066263022277343669578718895168534326250603453777594175500187360389116729240").unwrap(), [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.38s [INFO] running `Command { std: "docker" "inspect" "26cd07be421f6cbe902fc43f01068e97284d5ab34463956efbe6e6de991b1e3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26cd07be421f6cbe902fc43f01068e97284d5ab34463956efbe6e6de991b1e3d", kill_on_drop: false }` [INFO] [stdout] 26cd07be421f6cbe902fc43f01068e97284d5ab34463956efbe6e6de991b1e3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e84494f97c94e2d6d7f335f944e4f248fd8c5c749ce2f4a9bb2ad5c2da9f4599 [INFO] running `Command { std: "docker" "start" "-a" "e84494f97c94e2d6d7f335f944e4f248fd8c5c749ce2f4a9bb2ad5c2da9f4599", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mod_math/mod_math.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | while (m < r) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 285 - while (m < r) { [INFO] [stdout] 285 + while m < r { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModMath` [INFO] [stdout] --> src/galois_field/galois_field.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/galois_field/galois_field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/curves/elliptical_curve.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoU256` [INFO] [stdout] --> src/curves/elliptical_curve.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coefficients` [INFO] [stdout] --> src/galois_field/galois_field.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn poly(&self, coefficients: Vec) -> GaloisFieldPolynomial { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coefficients` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `polynomial` is never read [INFO] [stdout] --> src/galois_field/galois_field.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GaloisFieldPolynomial { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 13 | polynomial: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GaloisFieldError` is never used [INFO] [stdout] --> src/galois_field/galois_field.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum GaloisFieldError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `b` is never read [INFO] [stdout] --> src/curves/elliptical_curve.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Curve { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | b: U256, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` is never used [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | pub G: ECPoint // Generator Point [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:75:72 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn new(a: U256, b: U256, field_modulus: U256, curve_order: U256, G: ECPoint) -> Self { [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BN128` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn BN128() -> Curve { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `bn128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let G = ECPoint::new(U256::from(1), U256::from(2)); [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `secp256k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling modular_math v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | let G = ECPoint::new(U256::from_dec_str("55066263022277343669578718895168534326250603453777594175500187360389116729240").unwrap(), [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/mod_math/mod_math.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | while (m < r) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 285 - while (m < r) { [INFO] [stdout] 285 + while m < r { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModMath` [INFO] [stdout] --> src/galois_field/galois_field.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/galois_field/galois_field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `primitive_types::U256` [INFO] [stdout] --> src/galois_field/galois_field_test.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | use primitive_types::U256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `primitive_types::U256` [INFO] [stdout] --> src/number_mod/number_mod_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use primitive_types::U256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RngCore` and `rngs::OsRng` [INFO] [stdout] --> src/curves/elliptical_curve.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{rngs::OsRng, RngCore}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoU256` [INFO] [stdout] --> src/curves/elliptical_curve.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::mod_math::{ModMath, IntoU256}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/mod_math/mod_math_test.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let num = U256::from_dec_str("32670510020758816978083085130507043184471273380659243275938904335757337482424").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coefficients` [INFO] [stdout] --> src/galois_field/galois_field.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn poly(&self, coefficients: Vec) -> GaloisFieldPolynomial { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coefficients` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `G` [INFO] [stdout] --> src/curves/bn128_test.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let G = bn128.G; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_G` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `polynomial` is never read [INFO] [stdout] --> src/galois_field/galois_field.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GaloisFieldPolynomial { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 13 | polynomial: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GaloisFieldError` is never used [INFO] [stdout] --> src/galois_field/galois_field.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum GaloisFieldError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `b` is never read [INFO] [stdout] --> src/curves/elliptical_curve.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Curve { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | b: U256, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` is never used [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `GF7` should have a snake case name [INFO] [stdout] --> src/galois_field/galois_field_test.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let GF7 = GaloisField::new(7).unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `gf7` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | pub G: ECPoint // Generator Point [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/elliptical_curve.rs:75:72 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn new(a: U256, b: U256, field_modulus: U256, curve_order: U256, G: ECPoint) -> Self { [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BN128` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn BN128() -> Curve { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `bn128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let G = ECPoint::new(U256::from(1), U256::from(2)); [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Secp256k1` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn Secp256k1() -> Curve { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `secp256k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/curves.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | let G = ECPoint::new(U256::from_dec_str("55066263022277343669578718895168534326250603453777594175500187360389116729240").unwrap(), [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/bn128_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let G = bn128.G; [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `double_G` should have a snake case name [INFO] [stdout] --> src/curves/bn128_test.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let double_G = bn128.add_points(&G, &G); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `double_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `triple_G` should have a snake case name [INFO] [stdout] --> src/curves/bn128_test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let triple_G = bn128.add_points(&double_G, &G); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `triple_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `G` should have a snake case name [INFO] [stdout] --> src/curves/bn128_test.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let G = bn128.G; [INFO] [stdout] | ^ help: convert the identifier to snake case: `g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `double_G` should have a snake case name [INFO] [stdout] --> src/curves/bn128_test.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let double_G = bn128.scalar_multiply_generator(U256::from(2)); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `double_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "e84494f97c94e2d6d7f335f944e4f248fd8c5c749ce2f4a9bb2ad5c2da9f4599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e84494f97c94e2d6d7f335f944e4f248fd8c5c749ce2f4a9bb2ad5c2da9f4599", kill_on_drop: false }` [INFO] [stdout] e84494f97c94e2d6d7f335f944e4f248fd8c5c749ce2f4a9bb2ad5c2da9f4599