[INFO] cloning repository https://github.com/ArielElb/FactorizationCircuit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ArielElb/FactorizationCircuit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArielElb%2FFactorizationCircuit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArielElb%2FFactorizationCircuit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0caf866fb694fe9d4b3fdf21ea07146d65e359fd [INFO] checking ArielElb/FactorizationCircuit/0caf866fb694fe9d4b3fdf21ea07146d65e359fd against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArielElb%2FFactorizationCircuit" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ArielElb/FactorizationCircuit 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/ArielElb/FactorizationCircuit [INFO] finished tweaking git repo https://github.com/ArielElb/FactorizationCircuit [INFO] tweaked toml for git repo https://github.com/ArielElb/FactorizationCircuit written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ArielElb/FactorizationCircuit 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93fe7aa41b32cb44fd4d3aed3e1d8a0abf3e7a672ceaae7377d4920feb86bc67 [INFO] running `Command { std: "docker" "start" "-a" "93fe7aa41b32cb44fd4d3aed3e1d8a0abf3e7a672ceaae7377d4920feb86bc67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93fe7aa41b32cb44fd4d3aed3e1d8a0abf3e7a672ceaae7377d4920feb86bc67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93fe7aa41b32cb44fd4d3aed3e1d8a0abf3e7a672ceaae7377d4920feb86bc67", kill_on_drop: false }` [INFO] [stdout] 93fe7aa41b32cb44fd4d3aed3e1d8a0abf3e7a672ceaae7377d4920feb86bc67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2a78d974c2d0d9adbad3b4942a246701f6eb0690cc127b501dd76cdd51f0a38 [INFO] running `Command { std: "docker" "start" "-a" "c2a78d974c2d0d9adbad3b4942a246701f6eb0690cc127b501dd76cdd51f0a38", 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.84 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling num-traits v0.2.19 [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 v2.0.66 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling num-bigint v0.4.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [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-crypto-primitives v0.4.0 [INFO] [stderr] Checking ark-groth16 v0.4.0 [INFO] [stderr] Checking ark-ed-on-bls12-381 v0.4.0 [INFO] [stderr] Checking shamir v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/quadraticequationcircuit.rs (3 fixes) [INFO] [stderr] Fixed src/LinearEquationCircuit.rs (3 fixes) [INFO] [stderr] Fixed src/perfectsquare.rs (5 fixes) [INFO] [stdout] warning: unused import: `ark_r1cs_std::fields::FieldVar` [INFO] [stdout] --> src/LinearEquationCircuit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_r1cs_std::fields::FieldVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_std::Zero` [INFO] [stdout] --> src/LinearEquationCircuit.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use ark_std::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LinearEquationCircuit` should have a snake case name [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod LinearEquationCircuit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `linear_equation_circuit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/perfectsquare.rs (5 fixes) [INFO] [stderr] Fixed src/LinearEquationCircuit.rs (5 fixes) [INFO] [stderr] Fixed src/quadraticequationcircuit.rs (4 fixes) [INFO] [stdout] warning: unused import: `ark_r1cs_std::fields::FieldVar` [INFO] [stdout] --> src/LinearEquationCircuit.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ark_r1cs_std::fields::FieldVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_std::Zero` [INFO] [stdout] --> src/LinearEquationCircuit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_std::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinearEquationCircuit` is never constructed [INFO] [stdout] --> src/LinearEquationCircuit.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LinearEquationCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LinearEquationCircuit` should have a snake case name [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod LinearEquationCircuit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `linear_equation_circuit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.21s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking shamir v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `ark_r1cs_std::fields::FieldVar` [INFO] [stdout] --> src/LinearEquationCircuit.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ark_r1cs_std::fields::FieldVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_std::Zero` [INFO] [stdout] --> src/LinearEquationCircuit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_std::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinearEquationCircuit` is never constructed [INFO] [stdout] --> src/LinearEquationCircuit.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LinearEquationCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `LinearEquationCircuit` should have a snake case name [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod LinearEquationCircuit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `linear_equation_circuit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/perfectsquare.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | Groth16::::circuit_specific_setup(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] 32 + 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/perfectsquare.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | Groth16::::circuit_specific_setup(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] 32 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/perfectsquare.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 32 + 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/perfectsquare.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 32 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/perfectsquare.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | let is_valid = Groth16::::verify(&vk, &vec![n], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 32 + 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/perfectsquare.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let is_valid = Groth16::::verify(&vk, &vec![n], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 32 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/LinearEquationCircuit.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/ops/function.rs:76:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 54 | let cs = ConstraintSystem::::new_ref(); [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/LinearEquationCircuit.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | let a: Vec> = vec![ [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/ops/function.rs:76:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 56 | let a: Vec> = vec![ [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | vec![Fr::from(2u32), Fr::from(1u32)], [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 57 | vec![Fn::from(2u32), Fr::from(1u32)], [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | vec![Fr::from(2u32), Fr::from(1u32)], [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 57 | vec![Fr::from(2u32), Fn::from(1u32)], [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | vec![Fr::from(1u32), Fr::from(3u32)], [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 58 | vec![Fn::from(1u32), Fr::from(3u32)], [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | vec![Fr::from(1u32), Fr::from(3u32)], [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 58 | vec![Fr::from(1u32), Fn::from(3u32)], [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/LinearEquationCircuit.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fr::from(3u32), Fr::from(4u32)]; [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/ops/function.rs:76:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fr::from(3u32), Fr::from(4u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fr::from(3u32), Fr::from(4u32)]; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fn::from(3u32), Fr::from(4u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:62:47 [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fr::from(3u32), Fr::from(4u32)]; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 62 | let b: Vec = vec![Fr::from(3u32), Fn::from(4u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/LinearEquationCircuit.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | let mut public_input: Vec = vec![]; [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/ops/function.rs:76:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 63 | let mut public_input: Vec = vec![]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Fr` in this scope [INFO] [stdout] --> src/LinearEquationCircuit.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fr::from(1u32), Fr::from(1u32)]; [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/core/src/ops/function.rs:76:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Fn` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fr::from(1u32), Fr::from(1u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fr::from(1u32), Fr::from(1u32)]; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fn::from(1u32), Fr::from(1u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fr` [INFO] [stdout] --> src/LinearEquationCircuit.rs:78:47 [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fr::from(1u32), Fr::from(1u32)]; [INFO] [stdout] | ^^ use of undeclared type `Fr` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 | let x: Vec = vec![Fr::from(1u32), Fn::from(1u32)]; [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] 48 + use ark_ed_on_bls12_381::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StdRng` [INFO] [stdout] --> src/LinearEquationCircuit.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | let mut rng = StdRng::seed_from_u64(0u64); [INFO] [stdout] | ^^^^^^ use of undeclared type `StdRng` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 96 | let mut rng = String::seed_from_u64(0u64); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 48 + use rand::rngs::StdRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/LinearEquationCircuit.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | Groth16::::circuit_specific_setup(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] 48 + 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/LinearEquationCircuit.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | Groth16::::circuit_specific_setup(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] 48 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/LinearEquationCircuit.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let proof = Groth16::::prove(&pk, 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] 48 + 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/LinearEquationCircuit.rs:101:31 [INFO] [stdout] | [INFO] [stdout] 101 | let proof = Groth16::::prove(&pk, 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] 48 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/LinearEquationCircuit.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | let is_correct = Groth16::::verify(&vk, &public_input[1..], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 48 + 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/LinearEquationCircuit.rs:109:36 [INFO] [stdout] | [INFO] [stdout] 109 | let is_correct = Groth16::::verify(&vk, &public_input[1..], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 48 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/quadraticequationcircuit.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | Groth16::::circuit_specific_setup(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] 46 + 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/quadraticequationcircuit.rs:68:23 [INFO] [stdout] | [INFO] [stdout] 68 | Groth16::::circuit_specific_setup(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] 46 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/quadraticequationcircuit.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | 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] 46 + 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/quadraticequationcircuit.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | 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] 46 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Groth16` [INFO] [stdout] --> src/quadraticequationcircuit.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | let is_valid = Groth16::::verify(&vk, &[a, b, c], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Groth16` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 46 + 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/quadraticequationcircuit.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | let is_valid = Groth16::::verify(&vk, &[a, b, c], &proof).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 46 + use ark_bls12_381::Bls12_381; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `seed_from_u64` found for struct `StdRng` in the current scope [INFO] [stdout] --> src/perfectsquare.rs:37:52 [INFO] [stdout] | [INFO] [stdout] 37 | let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u64()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `seed_from_u64` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 32 + use ark_std::rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next_u64` found for opaque type `impl Rng` in the current scope [INFO] [stdout] --> src/perfectsquare.rs:37:77 [INFO] [stdout] | [INFO] [stdout] 37 | let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u64()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.6.4/src/lib.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn next_u64(&mut self) -> u64; [INFO] [stdout] | -------- the method is available for `impl Rng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `RngCore` which provides `next_u64` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 32 + use ark_std::rand::RngCore; [INFO] [stdout] | [INFO] [stdout] help: there is a method `next_u32` with a similar name [INFO] [stdout] | [INFO] [stdout] 37 | let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u32()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `seed_from_u64` found for struct `StdRng` in the current scope [INFO] [stdout] --> src/quadraticequationcircuit.rs:52:52 [INFO] [stdout] | [INFO] [stdout] 52 | let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u64()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `StdRng` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SeedableRng` which provides `seed_from_u64` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 46 + use ark_std::rand::SeedableRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_r1cs_std::fields::FieldVar` [INFO] [stdout] --> src/LinearEquationCircuit.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ark_r1cs_std::fields::FieldVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_std::Zero` [INFO] [stdout] --> src/LinearEquationCircuit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ark_std::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 35 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shamir` (lib test) due to 36 previous errors; 2 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" "c2a78d974c2d0d9adbad3b4942a246701f6eb0690cc127b501dd76cdd51f0a38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2a78d974c2d0d9adbad3b4942a246701f6eb0690cc127b501dd76cdd51f0a38", kill_on_drop: false }` [INFO] [stdout] c2a78d974c2d0d9adbad3b4942a246701f6eb0690cc127b501dd76cdd51f0a38