[INFO] cloning repository https://github.com/VanhGer/simple_ecc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VanhGer/simple_ecc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVanhGer%2Fsimple_ecc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVanhGer%2Fsimple_ecc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b0ec4a48c385c5ad37290b917bdfffa34df2aa70 [INFO] testing VanhGer/simple_ecc/b0ec4a48c385c5ad37290b917bdfffa34df2aa70 against master#552a959051cebf8f88a8f558399baf733bec9ce0 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVanhGer%2Fsimple_ecc" "/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/VanhGer/simple_ecc on toolchain 552a959051cebf8f88a8f558399baf733bec9ce0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VanhGer/simple_ecc [INFO] finished tweaking git repo https://github.com/VanhGer/simple_ecc [INFO] tweaked toml for git repo https://github.com/VanhGer/simple_ecc written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VanhGer/simple_ecc 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" "+552a959051cebf8f88a8f558399baf733bec9ce0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/Plonky3/Plonky3.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded transpose v0.2.3 [INFO] [stderr] Downloaded nums v0.1.0 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5325f1b7ec95125a0934e760c3dddd0097114e162a8bec6a08c0fa3a8084ef0a [INFO] running `Command { std: "docker" "start" "-a" "5325f1b7ec95125a0934e760c3dddd0097114e162a8bec6a08c0fa3a8084ef0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5325f1b7ec95125a0934e760c3dddd0097114e162a8bec6a08c0fa3a8084ef0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5325f1b7ec95125a0934e760c3dddd0097114e162a8bec6a08c0fa3a8084ef0a", kill_on_drop: false }` [INFO] [stdout] 5325f1b7ec95125a0934e760c3dddd0097114e162a8bec6a08c0fa3a8084ef0a [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc59279434e1c2917196a98313df0178e457eb632a95bde7b7e6a27a471f2ef9 [INFO] running `Command { std: "docker" "start" "-a" "dc59279434e1c2917196a98313df0178e457eb632a95bde7b7e6a27a471f2ef9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling p3-maybe-rayon v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling strength_reduce v0.2.4 [INFO] [stderr] Compiling gcd v2.3.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling transpose v0.2.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling nums v0.1.0 [INFO] [stderr] Compiling p3-util v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-field v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-matrix v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-symmetric v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-dft v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-mds v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-poseidon2 v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling p3-goldilocks v0.1.0 (https://github.com/Plonky3/Plonky3.git#51c98987) [INFO] [stderr] Compiling simple_ecc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::errors::GeneralError` [INFO] [stdout] --> src/ecdh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::errors::GeneralError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `P` is never used [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const P: u64 = 0xFFFF_FFFF_0000_0001; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `none_point` is never used [INFO] [stdout] --> src/point.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Point { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn none_point() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double` is never used [INFO] [stdout] --> src/point.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn double(a: &Point, A: Goldilocks) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/point.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/point.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elliptic` is never constructed [INFO] [stdout] --> src/curve.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Elliptic { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `calculate`, and `sample` are never used [INFO] [stdout] --> src/curve.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Elliptic { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(g_x: Goldilocks, g_y: Goldilocks, a: Goldilocks, b: Goldilocks) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn generate(&self, k: Goldilocks) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn calculate(&self, xy: &Point, k: Goldilocks) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn sample() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncryptedMsg` is never constructed [INFO] [stdout] --> src/ecdh.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct EncryptedMsg { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ecdh` is never constructed [INFO] [stdout] --> src/ecdh.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Ecdh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `pub_key`, `calculate_encryption_key`, and `calculate_decryption_key` are never used [INFO] [stdout] --> src/ecdh.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ecdh { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(ec: Elliptic, private_key: Goldilocks) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn pub_key(&self) -> Point { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn calculate_encryption_key(&self, pub_key: &Point) -> (Point, Point) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn calculate_decryption_key(&self, ciphertext_pub_key: Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GeneralError` is never used [INFO] [stdout] --> src/errors.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum GeneralError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/point.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn double(a: &Point, A: Goldilocks) -> Point { [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: variable `A` should have a snake case name [INFO] [stdout] --> src/point.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [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/point.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.02s [INFO] running `Command { std: "docker" "inspect" "dc59279434e1c2917196a98313df0178e457eb632a95bde7b7e6a27a471f2ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc59279434e1c2917196a98313df0178e457eb632a95bde7b7e6a27a471f2ef9", kill_on_drop: false }` [INFO] [stdout] dc59279434e1c2917196a98313df0178e457eb632a95bde7b7e6a27a471f2ef9 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] daba3b2816698f679ca3d017cc1601f12e54af0e3b8607b603b7d3a31082e8e0 [INFO] running `Command { std: "docker" "start" "-a" "daba3b2816698f679ca3d017cc1601f12e54af0e3b8607b603b7d3a31082e8e0", kill_on_drop: false }` [INFO] [stderr] Compiling simple_ecc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::errors::GeneralError` [INFO] [stdout] --> src/ecdh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::errors::GeneralError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/point.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let a = Point::new(Goldilocks::from_canonical_u8(9), Goldilocks::from_canonical_u8(27)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `P` is never used [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const P: u64 = 0xFFFF_FFFF_0000_0001; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/point.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/point.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elliptic` is never constructed [INFO] [stdout] --> src/curve.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Elliptic { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `calculate`, and `sample` are never used [INFO] [stdout] --> src/curve.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Elliptic { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(g_x: Goldilocks, g_y: Goldilocks, a: Goldilocks, b: Goldilocks) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn generate(&self, k: Goldilocks) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn calculate(&self, xy: &Point, k: Goldilocks) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn sample() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EncryptedMsg` is never constructed [INFO] [stdout] --> src/ecdh.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct EncryptedMsg { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ecdh` is never constructed [INFO] [stdout] --> src/ecdh.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Ecdh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `pub_key`, `calculate_encryption_key`, and `calculate_decryption_key` are never used [INFO] [stdout] --> src/ecdh.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ecdh { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(ec: Elliptic, private_key: Goldilocks) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn pub_key(&self) -> Point { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn calculate_encryption_key(&self, pub_key: &Point) -> (Point, Point) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn calculate_decryption_key(&self, ciphertext_pub_key: Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GeneralError` is never used [INFO] [stdout] --> src/errors.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum GeneralError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/point.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn double(a: &Point, A: Goldilocks) -> Point { [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: variable `A` should have a snake case name [INFO] [stdout] --> src/point.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [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/point.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "daba3b2816698f679ca3d017cc1601f12e54af0e3b8607b603b7d3a31082e8e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "daba3b2816698f679ca3d017cc1601f12e54af0e3b8607b603b7d3a31082e8e0", kill_on_drop: false }` [INFO] [stdout] daba3b2816698f679ca3d017cc1601f12e54af0e3b8607b603b7d3a31082e8e0 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 833ec5845604fe6cbaf9ae3e4800ab6901bf1f43a5b7f81aa7aac8b7372f4bfb [INFO] running `Command { std: "docker" "start" "-a" "833ec5845604fe6cbaf9ae3e4800ab6901bf1f43a5b7f81aa7aac8b7372f4bfb", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::errors::GeneralError` [INFO] [stderr] --> src/ecdh.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::errors::GeneralError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/point.rs:128:9 [INFO] [stderr] | [INFO] [stderr] 128 | let a = Point::new(Goldilocks::from_canonical_u8(9), Goldilocks::from_canonical_u8(27)); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `P` is never used [INFO] [stderr] --> src/main.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | const P: u64 = 0xFFFF_FFFF_0000_0001; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `add` is never used [INFO] [stderr] --> src/point.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mul` is never used [INFO] [stderr] --> src/point.rs:109:8 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Elliptic` is never constructed [INFO] [stderr] --> src/curve.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Elliptic { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `generate`, `calculate`, and `sample` are never used [INFO] [stderr] --> src/curve.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl Elliptic { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 14 | pub fn new(g_x: Goldilocks, g_y: Goldilocks, a: Goldilocks, b: Goldilocks) -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn generate(&self, k: Goldilocks) -> Point { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn calculate(&self, xy: &Point, k: Goldilocks) -> Point { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn sample() -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EncryptedMsg` is never constructed [INFO] [stderr] --> src/ecdh.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct EncryptedMsg { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Ecdh` is never constructed [INFO] [stderr] --> src/ecdh.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct Ecdh { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `pub_key`, `calculate_encryption_key`, and `calculate_decryption_key` are never used [INFO] [stderr] --> src/ecdh.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 23 | impl Ecdh { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 24 | pub fn new(ec: Elliptic, private_key: Goldilocks) -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn pub_key(&self) -> Point { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn calculate_encryption_key(&self, pub_key: &Point) -> (Point, Point) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | pub fn calculate_decryption_key(&self, ciphertext_pub_key: Point) -> Point { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `GeneralError` is never used [INFO] [stderr] --> src/errors.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | pub enum GeneralError { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/point.rs:36:26 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn double(a: &Point, A: Goldilocks) -> Point { [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/point.rs:70:34 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn add(a: &Point, b: &Point, A: Goldilocks) -> Point { [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/point.rs:109:23 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn mul(a: &Point, A: Goldilocks, mut k: Goldilocks) -> Point { [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] [INFO] [stderr] warning: `simple_ecc` (bin "simple_ecc" test) generated 14 warnings (run `cargo fix --bin "simple_ecc" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/simple_ecc-e0fe9235f72eb9c2) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test point::test_point ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "833ec5845604fe6cbaf9ae3e4800ab6901bf1f43a5b7f81aa7aac8b7372f4bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "833ec5845604fe6cbaf9ae3e4800ab6901bf1f43a5b7f81aa7aac8b7372f4bfb", kill_on_drop: false }` [INFO] [stdout] 833ec5845604fe6cbaf9ae3e4800ab6901bf1f43a5b7f81aa7aac8b7372f4bfb