[INFO] fetching crate zksnark 0.0.2... [INFO] testing zksnark-0.0.2 against 1.85.0 for beta-1.86-1 [INFO] extracting crate zksnark 0.0.2 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate zksnark 0.0.2 on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zksnark 0.0.2 [INFO] finished tweaking crates.io crate zksnark 0.0.2 [INFO] tweaked toml for crates.io crate zksnark 0.0.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 46 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.6.5 (available: v0.14.0) [INFO] [stderr] Adding quickcheck v0.7.2 (available: v1.0.3) [INFO] [stderr] Adding rand v0.3.23 (available: v0.9.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quickcheck v0.7.2 [INFO] [stderr] Downloaded bigint v4.4.3 [INFO] [stderr] Downloaded crunchy v0.1.6 [INFO] [stderr] Downloaded itertools v0.6.5 [INFO] [stderr] Downloaded bn v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7e4ad7c57915e55750490051df64f043271682aec90445228f52001ac1d6dd2 [INFO] running `Command { std: "docker" "start" "-a" "a7e4ad7c57915e55750490051df64f043271682aec90445228f52001ac1d6dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7e4ad7c57915e55750490051df64f043271682aec90445228f52001ac1d6dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7e4ad7c57915e55750490051df64f043271682aec90445228f52001ac1d6dd2", kill_on_drop: false }` [INFO] [stdout] a7e4ad7c57915e55750490051df64f043271682aec90445228f52001ac1d6dd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1908ea526e5a590419986463e64d7b9da137b08935005355bbf0d8d345d38922 [INFO] running `Command { std: "docker" "start" "-a" "1908ea526e5a590419986463e64d7b9da137b08935005355bbf0d8d345d38922", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling crunchy v0.1.6 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling either v1.14.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling itertools v0.6.5 [INFO] [stderr] Compiling bigint v4.4.3 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling bn v0.4.3 [INFO] [stderr] Compiling zksnark v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/circuit/mod.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 155 | fn try_parse(&str) -> Result; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn exp_encrypted_g1(self, Self::G1) -> Self::G1; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn exp_encrypted_g2(self, Self::G2) -> Self::G2; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `encrypt` and `random` are never used [INFO] [stdout] --> src/encryption.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Encryptable { [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn encrypt(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | fn random() -> Self; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `detect_root` and `valid` are never used [INFO] [stdout] --> src/encryption.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait EncryptProperties { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 14 | fn detect_root(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | fn valid(&self) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chinese_remainder` is never used [INFO] [stdout] --> src/field/mod.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn chinese_remainder(rems: &[T], moduli: &[T]) -> T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/groth16/circuit/builder/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SubCircuitConnections { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | output: WireId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubCircuitConnections` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/groth16/circuit/mod.rs:497:20 [INFO] [stdout] | [INFO] [stdout] 497 | panic!("Under constained or malformed inputs".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 497 | panic!("{}", "Under constained or malformed inputs".to_string()); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 7.14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3, bn v0.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "1908ea526e5a590419986463e64d7b9da137b08935005355bbf0d8d345d38922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1908ea526e5a590419986463e64d7b9da137b08935005355bbf0d8d345d38922", kill_on_drop: false }` [INFO] [stdout] 1908ea526e5a590419986463e64d7b9da137b08935005355bbf0d8d345d38922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48f72c7a350eb6b61a99973f67908017fdc74a4998f1f82862aca3232b4fc338 [INFO] running `Command { std: "docker" "start" "-a" "48f72c7a350eb6b61a99973f67908017fdc74a4998f1f82862aca3232b4fc338", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/circuit/mod.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 155 | fn try_parse(&str) -> Result; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn exp_encrypted_g1(self, Self::G1) -> Self::G1; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn exp_encrypted_g2(self, Self::G2) -> Self::G2; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `encrypt` and `random` are never used [INFO] [stdout] --> src/encryption.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Encryptable { [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn encrypt(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | fn random() -> Self; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `detect_root` and `valid` are never used [INFO] [stdout] --> src/encryption.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait EncryptProperties { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 14 | fn detect_root(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | fn valid(&self) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chinese_remainder` is never used [INFO] [stdout] --> src/field/mod.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn chinese_remainder(rems: &[T], moduli: &[T]) -> T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/groth16/circuit/builder/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SubCircuitConnections { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | output: WireId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubCircuitConnections` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/groth16/circuit/mod.rs:497:20 [INFO] [stdout] | [INFO] [stdout] 497 | panic!("Under constained or malformed inputs".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 497 | panic!("{}", "Under constained or malformed inputs".to_string()); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling quickcheck v0.7.2 [INFO] [stderr] Compiling zksnark v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/field/mod.rs:457:28 [INFO] [stdout] | [INFO] [stdout] 457 | return (degree == poly.degree()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - return (degree == poly.degree()); [INFO] [stdout] 457 + return degree == poly.degree(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitAnd`, `BitOr`, and `BitXor` [INFO] [stdout] --> src/groth16/circuit/builder/tests.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{BitAnd, BitOr, BitXor}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/circuit/mod.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 155 | fn try_parse(&str) -> Result; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn exp_encrypted_g1(self, Self::G1) -> Self::G1; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn exp_encrypted_g2(self, Self::G2) -> Self::G2; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/groth16/mod.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt` is never used [INFO] [stdout] --> src/encryption.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Encryptable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn encrypt(self) -> Self::Output; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `detect_root` and `valid` are never used [INFO] [stdout] --> src/encryption.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait EncryptProperties { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 14 | fn detect_root(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | fn valid(&self) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/groth16/circuit/builder/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SubCircuitConnections { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | output: WireId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubCircuitConnections` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/groth16/circuit/mod.rs:497:20 [INFO] [stdout] | [INFO] [stdout] 497 | panic!("Under constained or malformed inputs".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 497 | panic!("{}", "Under constained or malformed inputs".to_string()); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 33.54s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3, bn v0.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "48f72c7a350eb6b61a99973f67908017fdc74a4998f1f82862aca3232b4fc338", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f72c7a350eb6b61a99973f67908017fdc74a4998f1f82862aca3232b4fc338", kill_on_drop: false }` [INFO] [stdout] 48f72c7a350eb6b61a99973f67908017fdc74a4998f1f82862aca3232b4fc338 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 30945a78715f3ce4c2ae85b452b67ef22c3384b3359752e5bcdc2f49e9591d29 [INFO] running `Command { std: "docker" "start" "-a" "30945a78715f3ce4c2ae85b452b67ef22c3384b3359752e5bcdc2f49e9591d29", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/groth16/circuit/mod.rs:155:18 [INFO] [stderr] | [INFO] [stderr] 155 | fn try_parse(&str) -> Result; [INFO] [stderr] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/groth16/mod.rs:43:31 [INFO] [stderr] | [INFO] [stderr] 43 | fn exp_encrypted_g1(self, Self::G1) -> Self::G1; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/groth16/mod.rs:48:31 [INFO] [stderr] | [INFO] [stderr] 48 | fn exp_encrypted_g2(self, Self::G2) -> Self::G2; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/groth16/mod.rs:50:16 [INFO] [stderr] | [INFO] [stderr] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G1` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/groth16/mod.rs:50:26 [INFO] [stderr] | [INFO] [stderr] 50 | fn pairing(Self::G1, Self::G2) -> Self::GT; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::G2` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: associated items `encrypt` and `random` are never used [INFO] [stderr] --> src/encryption.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub trait Encryptable { [INFO] [stderr] | ----------- associated items in this trait [INFO] [stderr] ... [INFO] [stderr] 9 | fn encrypt(self) -> Self::Output; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 10 | fn random() -> Self; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `detect_root` and `valid` are never used [INFO] [stderr] --> src/encryption.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub trait EncryptProperties { [INFO] [stderr] | ----------------- methods in this trait [INFO] [stderr] 14 | fn detect_root(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 15 | fn valid(&self) -> bool; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `chinese_remainder` is never used [INFO] [stderr] --> src/field/mod.rs:274:4 [INFO] [stderr] | [INFO] [stderr] 274 | fn chinese_remainder(rems: &[T], moduli: &[T]) -> T [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `output` is never read [INFO] [stderr] --> src/groth16/circuit/builder/mod.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct SubCircuitConnections { [INFO] [stderr] | --------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 21 | output: WireId, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SubCircuitConnections` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/groth16/circuit/mod.rs:497:20 [INFO] [stderr] | [INFO] [stderr] 497 | panic!("Under constained or malformed inputs".to_string()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: add a "{}" format string to `Display` the message [INFO] [stderr] | [INFO] [stderr] 497 | panic!("{}", "Under constained or malformed inputs".to_string()); [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: `zksnark` (lib) generated 10 warnings (run `cargo fix --lib -p zksnark` to apply 6 suggestions) [INFO] [stderr] warning: unnecessary parentheses around `return` value [INFO] [stderr] --> src/field/mod.rs:457:28 [INFO] [stderr] | [INFO] [stderr] 457 | return (degree == poly.degree()); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 457 - return (degree == poly.degree()); [INFO] [stderr] 457 + return degree == poly.degree(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BitAnd`, `BitOr`, and `BitXor` [INFO] [stderr] --> src/groth16/circuit/builder/tests.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use std::ops::{BitAnd, BitOr, BitXor}; [INFO] [stderr] | ^^^^^^ ^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `encrypt` is never used [INFO] [stderr] --> src/encryption.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub trait Encryptable { [INFO] [stderr] | ----------- method in this trait [INFO] [stderr] ... [INFO] [stderr] 9 | fn encrypt(self) -> Self::Output; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `zksnark` (lib test) generated 11 warnings (8 duplicates) (run `cargo fix --lib -p zksnark --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3, bn v0.4.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zksnark-e15e4df2f07cc177) [INFO] [stdout] [INFO] [stdout] running 55 tests [INFO] [stdout] test field::tests::dft_test ... ok [INFO] [stdout] test field::tests::polynomial_division_test ... ok [INFO] [stdout] test field::tests::degree_test ... ok [INFO] [stdout] test field::tests::idft_test ... ok [INFO] [stdout] test field::z251::tests::z251_add ... ok [INFO] [stdout] test groth16::circuit::ast::tests::tokenlist_from_string ... ok [INFO] [stdout] test groth16::circuit::ast::tests::variable_order_test ... ok [INFO] [stdout] test field::tests::powers_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::and_test ... ok [INFO] [stdout] test field::z251::tests::crt ... ok [INFO] [stdout] test groth16::circuit::ast::tests::split_at_char_test ... ok [INFO] [stdout] test groth16::circuit::ast::tests::parse_token_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::bitwise_op_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::xor_test ... ok [INFO] [stdout] test groth16::circuit::tests::weights_test ... ok [INFO] [stdout] test groth16::circuit::tests::evaluate_test ... ok [INFO] [stdout] test field::z251::tests::z251_mul_inv ... ok [INFO] [stdout] test groth16::circuit::ast::tests::parse_expression_test ... ok [INFO] [stdout] test groth16::circuit::ast::tests::next_group_test ... ok [INFO] [stdout] test field::z251::tests::z251_neg ... ok [INFO] [stdout] test groth16::circuit::builder::tests::fan_in_xor_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::not_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::or_test ... ok [INFO] [stdout] test groth16::circuit::builder::tests::bit_checker_test ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_add ... ok [INFO] [stdout] test field::tests::prop_polynomial_evaluate ... ok [INFO] [stdout] test groth16::circuit::builder::tests::fan_in_and_test ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_div ... ok [INFO] [stdout] test groth16::circuit::tests::try_parse_impl_test ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_from_roots ... ok [INFO] [stdout] test field::tests::prop_degree ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_mul ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_scalar_mul ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_neg ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_root_poly ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_sub ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_sum ... ok [INFO] [stdout] test groth16::coefficient_poly::tests::dummy_lagrange ... ok [INFO] [stdout] test groth16::tests::qap_from_ast ... ok [INFO] [stdout] test groth16::circuit::builder::tests::fan_in_or_test ... ok [INFO] [stdout] test groth16::tests::quadratic_share_honest ... ok [INFO] [stdout] test groth16::tests::single_mult_honest ... ok [INFO] [stdout] test groth16::tests::qap_from_file ... ok [INFO] [stdout] test groth16::tests::qap_from_roots ... ok [INFO] [stdout] test groth16::tests::single_mult_random_proof ... ok [INFO] [stdout] test groth16::tests::quadratic_share_random_proof ... ok [INFO] [stdout] test field::tests::polynomial_divisionby0_test - should panic ... ok [INFO] [stdout] test tests::circuit_builder_test ... ok [INFO] [stdout] test tests::simple_circuit_test ... ok [INFO] [stdout] test groth16::fr::tests::single_mult_honest_bn ... ok [INFO] [stdout] test tests::comparator_8bit_test ... ok [INFO] [stdout] test groth16::fr::tests::bn_encrypt_cubic_test ... ok [INFO] [stdout] test groth16::fr::tests::bn_encrypt_quad_test ... ok [INFO] [stdout] test groth16::fr::tests::exp_encrypted_test ... ok [INFO] [stdout] test groth16::fr::tests::bn_encrypt_deg_15_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 55 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.76s [INFO] [stdout] [INFO] [stderr] Doc-tests zksnark [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/groth16/circuit/builder/mod.rs - groth16::circuit::builder::Circuit (line 59) ... ok [INFO] [stdout] test src/field/mod.rs - field::Polynomial::degree (line 153) ... ok [INFO] [stdout] test src/groth16/circuit/builder/mod.rs - groth16::circuit::builder::Circuit (line 75) ... ok [INFO] [stdout] test src/field/mod.rs - field::Polynomial::evaluate (line 192) ... ok [INFO] [stdout] test src/field/mod.rs - field::polynomial_division (line 302) ... ok [INFO] [stdout] test src/field/mod.rs - field (line 19) ... ok [INFO] [stdout] test src/groth16/circuit/builder/mod.rs - groth16::circuit::builder::Circuit (line 114) ... ok [INFO] [stdout] test src/field/mod.rs - field::Polynomial::coefficients (line 130) ... ok [INFO] [stdout] test src/field/mod.rs - field::Polynomial (line 107) ... ok [INFO] [stdout] test src/field/mod.rs - field::powers (line 360) ... ok [INFO] [stdout] test src/lib.rs - (line 80) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.89s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "30945a78715f3ce4c2ae85b452b67ef22c3384b3359752e5bcdc2f49e9591d29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30945a78715f3ce4c2ae85b452b67ef22c3384b3359752e5bcdc2f49e9591d29", kill_on_drop: false }` [INFO] [stdout] 30945a78715f3ce4c2ae85b452b67ef22c3384b3359752e5bcdc2f49e9591d29