[INFO] cloning repository https://github.com/SwaroopReddyBasireddy/halo2-examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SwaroopReddyBasireddy/halo2-examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwaroopReddyBasireddy%2Fhalo2-examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwaroopReddyBasireddy%2Fhalo2-examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d939cdeaaebdcf4c88fd20fe4ec766faa041cb13 [INFO] checking SwaroopReddyBasireddy/halo2-examples against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwaroopReddyBasireddy%2Fhalo2-examples" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SwaroopReddyBasireddy/halo2-examples [INFO] finished tweaking git repo https://github.com/SwaroopReddyBasireddy/halo2-examples [INFO] tweaked toml for git repo https://github.com/SwaroopReddyBasireddy/halo2-examples written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SwaroopReddyBasireddy/halo2-examples on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SwaroopReddyBasireddy/halo2-examples 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5 [INFO] running `Command { std: "docker" "start" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking arrayref v0.3.8 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking halo2 v0.0.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking ff v0.12.1 [INFO] [stderr] Checking group v0.12.1 [INFO] [stderr] Checking pasta_curves v0.4.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking halo2_proofs v0.2.0 [INFO] [stderr] Checking gadget v0.1.0 (/opt/rustwide/workdir/gadget/IsZero) [INFO] [stderr] Checking fibonacci v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `group::ff::Field` [INFO] [stdout] --> src/arithmetic/example2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use group::ff::Field; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/arithmetic/example3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `group::ff::Field` [INFO] [stdout] --> src/arithmetic/example3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use group::ff::Field; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AssignedCell` [INFO] [stdout] --> src/arithmetic/example3.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use halo2_proofs::circuit::{AssignedCell, Value}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/arithmetic/example3.rs:236:65 [INFO] [stdout] | [INFO] [stdout] 236 | config.constant.clone(), 2, || Value::known((F::from(5))))?; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - config.constant.clone(), 2, || Value::known((F::from(5))))?; [INFO] [stdout] 236 + config.constant.clone(), 2, || Value::known(F::from(5)))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `*`, `plonk::*`, `poly::Rotation`, and `self` [INFO] [stdout] --> src/range_check/example1.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | ...dExt, circuit::{self, *}, dev::{FailureLocation, MockProver, VerifyFailure}, pasta::Fp, plonk::*, poly::Rotation [INFO] [stdout] | ^^^^ ^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `group::ff::Field` [INFO] [stdout] --> src/arithmetic/example2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use group::ff::Field; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/arithmetic/example3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `group::ff::Field` [INFO] [stdout] --> src/arithmetic/example3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use group::ff::Field; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AssignedCell` [INFO] [stdout] --> src/arithmetic/example3.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use halo2_proofs::circuit::{AssignedCell, Value}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/arithmetic/example3.rs:236:65 [INFO] [stdout] | [INFO] [stdout] 236 | config.constant.clone(), 2, || Value::known((F::from(5))))?; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - config.constant.clone(), 2, || Value::known((F::from(5))))?; [INFO] [stdout] 236 + config.constant.clone(), 2, || Value::known(F::from(5)))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/arithmetic/example2.rs:209:57 [INFO] [stdout] | [INFO] [stdout] 209 | fn load_private(&self, _layouter: impl Layouter, a: Cell) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layouter` [INFO] [stdout] --> src/arithmetic/example2.rs:213:29 [INFO] [stdout] | [INFO] [stdout] 213 | fn load_constant(&self, layouter: impl Layouter, constant: F) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layouter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/arithmetic/example2.rs:213:57 [INFO] [stdout] | [INFO] [stdout] 213 | fn load_constant(&self, layouter: impl Layouter, constant: F) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:22 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1` [INFO] [stdout] --> src/arithmetic/example2.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | let (a1, b1, _c1) = arith_chip.raw_multiply(&mut layouter, || y.map(|y| (y,y,y*y)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/arithmetic/example2.rs:314:18 [INFO] [stdout] | [INFO] [stdout] 314 | let (a1, b1, _c1) = arith_chip.raw_multiply(&mut layouter, || y.map(|y| (y,y,y*y)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/arithmetic/example3.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let constant = Fp::from(7); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionConfig` is never constructed [INFO] [stdout] --> src/example_iszero.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct FunctionConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionChip` is never constructed [INFO] [stdout] --> src/example_iszero.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct FunctionChip { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `construct`, `configure`, and `assign` are never used [INFO] [stdout] --> src/example_iszero.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl FunctionChip { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn construct (config: FunctionConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn configure(meta: &mut ConstraintSystem) -> FunctionConfig{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn assign( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionCircuit` is never constructed [INFO] [stdout] --> src/example_iszero.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct FunctionCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/example_iszero.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RnageCheckConfig` is never constructed [INFO] [stdout] --> src/range_check/example1.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct RnageCheckConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `configure` and `assign` are never used [INFO] [stdout] --> src/range_check/example1.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl RnageCheckConfig { [INFO] [stdout] | ----------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 20 | fn configure( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn assign( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ACell` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ACell(AssignedCell); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `construct`, `configure`, `assign_add`, `assign_mul`, and `expose_public` are never used [INFO] [stdout] --> src/arithmetic/example1.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ArithmeticChip{ [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 24 | pub fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn configure( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn assign_add ( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn assign_mul ( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn expose_public( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct ArithmeticCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example1.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ArithmeticInstructions` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait ArithmeticInstructions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `construct` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl ArithmeticChip { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] 97 | fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Number` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Number(AssignedCell); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | struct ArithmeticCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `construct` and `configure` are never used [INFO] [stdout] --> src/arithmetic/example3.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl ArithmeticChip { [INFO] [stdout] | ----------------------------------- associated functions in this implementation [INFO] [stdout] 32 | fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn configure( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | struct MyCircuit { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example3.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PI` should have a snake case name [INFO] [stdout] --> src/arithmetic/example2.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | PI: Column, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/arithmetic/example2.rs:209:57 [INFO] [stdout] | [INFO] [stdout] 209 | fn load_private(&self, _layouter: impl Layouter, a: Cell) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layouter` [INFO] [stdout] --> src/arithmetic/example2.rs:213:29 [INFO] [stdout] | [INFO] [stdout] 213 | fn load_constant(&self, layouter: impl Layouter, constant: F) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layouter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/arithmetic/example2.rs:213:57 [INFO] [stdout] | [INFO] [stdout] 213 | fn load_constant(&self, layouter: impl Layouter, constant: F) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c0` [INFO] [stdout] --> src/arithmetic/example2.rs:311:22 [INFO] [stdout] | [INFO] [stdout] 311 | let (a0, b0, c0) = arith_chip.raw_multiply(&mut layouter, || x.map(|x| (x,x,x*x)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1` [INFO] [stdout] --> src/arithmetic/example2.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | let (a1, b1, _c1) = arith_chip.raw_multiply(&mut layouter, || y.map(|y| (y,y,y*y)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/arithmetic/example2.rs:314:18 [INFO] [stdout] | [INFO] [stdout] 314 | let (a1, b1, _c1) = arith_chip.raw_multiply(&mut layouter, || y.map(|y| (y,y,y*y)))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/arithmetic/example3.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let constant = Fp::from(7); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/example_iszero.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ACell` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ACell(AssignedCell); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `construct`, `configure`, `assign_add`, `assign_mul`, and `expose_public` are never used [INFO] [stdout] --> src/arithmetic/example1.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ArithmeticChip{ [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 24 | pub fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn configure( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn assign_add ( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn assign_mul ( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn expose_public( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example1.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct ArithmeticCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example1.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ArithmeticInstructions` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait ArithmeticInstructions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `construct` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl ArithmeticChip { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] 97 | fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Number` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Number(AssignedCell); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example2.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | struct ArithmeticCircuit { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example2.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticConfig` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct ArithmeticConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArithmeticChip` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct ArithmeticChip { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `construct` and `configure` are never used [INFO] [stdout] --> src/arithmetic/example3.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl ArithmeticChip { [INFO] [stdout] | ----------------------------------- associated functions in this implementation [INFO] [stdout] 32 | fn construct(config: ArithmeticConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn configure( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyCircuit` is never constructed [INFO] [stdout] --> src/arithmetic/example3.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | struct MyCircuit { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/arithmetic/example3.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Fp` [INFO] [stdout] --> src/range_check/example1.rs:112:33 [INFO] [stdout] | [INFO] [stdout] 112 | value: Value::known(Fp::from(i as u64).into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 112 - value: Value::known(Fp::from(i as u64).into()), [INFO] [stdout] 112 + value: Value::known(Fp::from(i as u64)), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 112 - value: Value::known(Fp::from(i as u64).into()), [INFO] [stdout] 112 + value: Value::known(>::into(Fp::from(i as u64))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Fp` [INFO] [stdout] --> src/range_check/example1.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | value: Value::known(Fp::from(RANGE as u64).into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 121 - value: Value::known(Fp::from(RANGE as u64).into()), [INFO] [stdout] 121 + value: Value::known(Fp::from(RANGE as u64)), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 121 - value: Value::known(Fp::from(RANGE as u64).into()), [INFO] [stdout] 121 + value: Value::known(>::into(Fp::from(RANGE as u64))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PI` should have a snake case name [INFO] [stdout] --> src/arithmetic/example2.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | PI: Column, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fibonacci` (lib test) due to 2 previous errors; 35 warnings emitted [INFO] [stderr] warning: unused dependency `halo2` [INFO] [stderr] --> Cargo.toml:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | halo2 = "0.0.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `halo2` [INFO] [stderr] warning: `fibonacci` (manifest) generated 1 warning [INFO] running `Command { std: "docker" "inspect" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5", kill_on_drop: false }` [INFO] [stdout] 8388787e2f46b1e85d5b202dd009ceb61829a8720419d3bb539f0d1b16d6e0e5