[INFO] cloning repository https://github.com/HunterChan-SR/fk_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HunterChan-SR/fk_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHunterChan-SR%2Ffk_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHunterChan-SR%2Ffk_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72949bc072c3ca35b9841bd0a2c228df4e64a524 [INFO] checking HunterChan-SR/fk_rs/72949bc072c3ca35b9841bd0a2c228df4e64a524 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHunterChan-SR%2Ffk_rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HunterChan-SR/fk_rs on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HunterChan-SR/fk_rs [INFO] finished tweaking git repo https://github.com/HunterChan-SR/fk_rs [INFO] tweaked toml for git repo https://github.com/HunterChan-SR/fk_rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HunterChan-SR/fk_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e388c84339af5f5c41801358dd876e80f1306606930d5d33cbbf6a5a99a4ba57 [INFO] running `Command { std: "docker" "start" "-a" "e388c84339af5f5c41801358dd876e80f1306606930d5d33cbbf6a5a99a4ba57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e388c84339af5f5c41801358dd876e80f1306606930d5d33cbbf6a5a99a4ba57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e388c84339af5f5c41801358dd876e80f1306606930d5d33cbbf6a5a99a4ba57", kill_on_drop: false }` [INFO] [stdout] e388c84339af5f5c41801358dd876e80f1306606930d5d33cbbf6a5a99a4ba57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7df3679d3cd5716bc5f981b4bd1403ba409506059f600a1a9d7ac90d7fa28bb [INFO] running `Command { std: "docker" "start" "-a" "c7df3679d3cd5716bc5f981b4bd1403ba409506059f600a1a9d7ac90d7fa28bb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking ark-relations v0.4.0 [INFO] [stderr] Checking ark-snark v0.4.0 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking ark-r1cs-std v0.4.0 [INFO] [stderr] Checking ark-bls12-381 v0.4.0 [INFO] [stderr] Checking ark-ed-on-bls12-381 v0.4.0 [INFO] [stderr] Checking ark-crypto-primitives v0.4.0 [INFO] [stderr] Checking ark-groth16 v0.4.0 [INFO] [stderr] Checking fk_rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/constraints.rs (2 fixes) [INFO] [stderr] Fixed src/sha256_merkle.rs (3 fixes) [INFO] [stderr] Fixed src/poseidon_merkle.rs (4 fixes) [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/poseidon_merkle.rs:12:66 [INFO] [stdout] | [INFO] [stdout] 12 | use ark_relations::r1cs::{ConstraintSystem, ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CRHSchemeGadget` [INFO] [stdout] --> src/poseidon_merkle.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use ark_crypto_primitives::crh::{CRHScheme, CRHSchemeGadget}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/sha256_merkle.rs:7:66 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_relations::r1cs::{ConstraintSystem, ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poseidon_merkle.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sha256_merkle.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cs` [INFO] [stdout] --> src/constraints.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/sha256_merkle.rs (1 fix) [INFO] [stderr] Fixed src/constraints.rs (6 fixes) [INFO] [stderr] Fixed src/poseidon_merkle.rs (1 fix) [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/poseidon_merkle.rs:12:48 [INFO] [stdout] | [INFO] [stdout] 12 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CRHSchemeGadget` [INFO] [stdout] --> src/poseidon_merkle.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use ark_crypto_primitives::crh::{CRHScheme, CRHSchemeGadget}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/sha256_merkle.rs:7:48 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poseidon_merkle.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sha256_merkle.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerkleTree` is never constructed [INFO] [stdout] --> src/poseidon_merkle.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct MerkleTree { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleTree` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerklePath` is never constructed [INFO] [stdout] --> src/poseidon_merkle.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct MerklePath { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerklePath` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_root`, `get_h_leaf`, `get_poof`, and `zk_verify` are never used [INFO] [stdout] --> src/poseidon_merkle.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(depth: u8) -> MerkleTree { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn get_root(&self) -> Fr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_h_leaf(&self, index: usize) -> Fr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_poof(&self, index: u32) -> MerklePath { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn zk_verify(cs: ConstraintSystemRef, params: PoseidonConfig, root: Fr, h_leaf: Fr, poof: MerklePath) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes` is never read [INFO] [stdout] --> src/sha256_merkle.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct MerkleTree { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub nodes: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_root`, `get_h_leaf`, and `get_poof` are never used [INFO] [stdout] --> src/sha256_merkle.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(depth: u8) -> MerkleTree { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_root(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_h_leaf(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_poof(&self, index: u32) -> MerklePath { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.50s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking fk_rs v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/poseidon_merkle.rs:12:48 [INFO] [stdout] | [INFO] [stdout] 12 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CRHSchemeGadget` [INFO] [stdout] --> src/poseidon_merkle.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use ark_crypto_primitives::crh::{CRHScheme, CRHSchemeGadget}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/sha256_merkle.rs:7:48 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poseidon_merkle.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstraintSystem` [INFO] [stdout] --> src/poseidon_merkle.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ConstraintSystem` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 141 | let cs = ConstraintSystemRef::::new_ref(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_relations::r1cs::ConstraintSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstraintSystem` [INFO] [stdout] --> src/poseidon_merkle.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ConstraintSystem` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 149 | let cs = ConstraintSystemRef::::new_ref(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_relations::r1cs::ConstraintSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstraintSystem` [INFO] [stdout] --> src/sha256_merkle.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ConstraintSystem` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 119 | let cs = ConstraintSystemRef::::new_ref(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_relations::r1cs::ConstraintSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstraintSystem` [INFO] [stdout] --> src/sha256_merkle.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 127 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ConstraintSystem` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 127 | let cs = ConstraintSystemRef::::new_ref(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_relations::r1cs::ConstraintSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstraintSystem` [INFO] [stdout] --> src/constraints.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ConstraintSystem` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 | let cs = ConstraintSystemRef::::new_ref(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_relations::r1cs::ConstraintSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StdRng` in this scope [INFO] [stdout] --> src/constraints.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rng: StdRng = StdRng::from_entropy(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/string.rs:362:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 27 | let mut rng: String = StdRng::from_entropy(); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use rand::rngs::StdRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StdRng` [INFO] [stdout] --> src/constraints.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | let mut rng: StdRng = StdRng::from_entropy(); [INFO] [stdout] | ^^^^^^ use of undeclared type `StdRng` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 27 | let mut rng: StdRng = String::from_entropy(); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use rand::rngs::StdRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/constraints.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] 1 + use ark_std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/constraints.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | Groth16::::circuit_specific_setup(init_circuit.clone(), &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_groth16::Groth16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bls12_381` in this scope [INFO] [stdout] --> src/constraints.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | Groth16::::circuit_specific_setup(init_circuit.clone(), &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/constraints.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] 1 + use ark_std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/constraints.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let proof = Groth16::::prove(&pk, circuit, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_groth16::Groth16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bls12_381` in this scope [INFO] [stdout] --> src/constraints.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | let proof = Groth16::::prove(&pk, circuit, &mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/constraints.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] 1 + use ark_std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/constraints.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | let valid_proof = Groth16::::verify(&vk, &public_input, &proof).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use ark_groth16::Groth16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bls12_381` in this scope [INFO] [stdout] --> src/constraints.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | let valid_proof = Groth16::::verify(&vk, &public_input, &proof).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sha256_merkle.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerkleTree` is never constructed [INFO] [stdout] --> src/poseidon_merkle.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct MerkleTree { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleTree` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerklePath` is never constructed [INFO] [stdout] --> src/poseidon_merkle.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct MerklePath { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerklePath` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_root`, `get_h_leaf`, `get_poof`, and `zk_verify` are never used [INFO] [stdout] --> src/poseidon_merkle.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(depth: u8) -> MerkleTree { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn get_root(&self) -> Fr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_h_leaf(&self, index: usize) -> Fr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_poof(&self, index: u32) -> MerklePath { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn zk_verify(cs: ConstraintSystemRef, params: PoseidonConfig, root: Fr, h_leaf: Fr, poof: MerklePath) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes` is never read [INFO] [stdout] --> src/sha256_merkle.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct MerkleTree { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub nodes: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_root`, `get_h_leaf`, and `get_poof` are never used [INFO] [stdout] --> src/sha256_merkle.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(depth: u8) -> MerkleTree { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_root(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_h_leaf(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_poof(&self, index: u32) -> MerklePath { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/poseidon_merkle.rs:12:48 [INFO] [stdout] | [INFO] [stdout] 12 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CRHSchemeGadget` [INFO] [stdout] --> src/poseidon_merkle.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use ark_crypto_primitives::crh::{CRHScheme, CRHSchemeGadget}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/sha256_merkle.rs:7:48 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_relations::r1cs::{ConstraintSystemRef, Field}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poseidon_merkle.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sha256_merkle.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..leaf_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fk_rs` (bin "fk_rs" test) due to 17 previous errors; 5 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c7df3679d3cd5716bc5f981b4bd1403ba409506059f600a1a9d7ac90d7fa28bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7df3679d3cd5716bc5f981b4bd1403ba409506059f600a1a9d7ac90d7fa28bb", kill_on_drop: false }` [INFO] [stdout] c7df3679d3cd5716bc5f981b4bd1403ba409506059f600a1a9d7ac90d7fa28bb