[INFO] fetching crate zksnark 0.0.2... [INFO] checking zksnark-0.0.2 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate zksnark 0.0.2 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate zksnark 0.0.2 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 47 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding byteorder v0.5.3 (latest: v1.5.0) [INFO] [stderr] Adding cloudabi v0.0.3 (latest: v0.1.0) [INFO] [stderr] Adding crunchy v0.1.6 (latest: v0.2.2) [INFO] [stderr] Adding env_logger v0.5.13 (latest: v0.11.5) [INFO] [stderr] Adding hermit-abi v0.1.19 (latest: v0.4.0) [INFO] [stderr] Adding humantime v1.3.0 (latest: v2.1.0) [INFO] [stderr] Adding itertools v0.6.5 (latest: v0.13.0) [INFO] [stderr] Adding quick-error v1.2.3 (latest: v2.0.1) [INFO] [stderr] Adding quickcheck v0.7.2 (latest: v1.0.3) [INFO] [stderr] Adding rand v0.3.23 (latest: v0.8.5) [INFO] [stderr] Adding rand v0.4.6 (latest: v0.8.5) [INFO] [stderr] Adding rand v0.5.6 (latest: v0.8.5) [INFO] [stderr] Adding rand_core v0.2.2 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bn v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c6128afcebcf774b92f7ed9ef58609e8ac50ca404bf019b582f865d0b82ecd5 [INFO] running `Command { std: "docker" "start" "-a" "7c6128afcebcf774b92f7ed9ef58609e8ac50ca404bf019b582f865d0b82ecd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c6128afcebcf774b92f7ed9ef58609e8ac50ca404bf019b582f865d0b82ecd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c6128afcebcf774b92f7ed9ef58609e8ac50ca404bf019b582f865d0b82ecd5", kill_on_drop: false }` [INFO] [stdout] 7c6128afcebcf774b92f7ed9ef58609e8ac50ca404bf019b582f865d0b82ecd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe3ce39567764dc486ac9b174044a48f99a027878152343c6cdbccdee02a9c82 [INFO] running `Command { std: "docker" "start" "-a" "fe3ce39567764dc486ac9b174044a48f99a027878152343c6cdbccdee02a9c82", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling crunchy v0.1.6 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking itertools v0.6.5 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking bigint v4.4.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking bn v0.4.3 [INFO] [stderr] Checking 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] [stderr] Checking regex-automata v0.4.7 [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] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking quickcheck v0.7.2 [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] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 14.99s [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" "fe3ce39567764dc486ac9b174044a48f99a027878152343c6cdbccdee02a9c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3ce39567764dc486ac9b174044a48f99a027878152343c6cdbccdee02a9c82", kill_on_drop: false }` [INFO] [stdout] fe3ce39567764dc486ac9b174044a48f99a027878152343c6cdbccdee02a9c82