[INFO] cloning repository https://github.com/sbnair/Substrate_ZeroknowledgeProof [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sbnair/Substrate_ZeroknowledgeProof" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbnair%2FSubstrate_ZeroknowledgeProof", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbnair%2FSubstrate_ZeroknowledgeProof'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f96f4285c60ef056d404801eea7e21462b0ff131 [INFO] testing sbnair/Substrate_ZeroknowledgeProof against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbnair%2FSubstrate_ZeroknowledgeProof" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sbnair/Substrate_ZeroknowledgeProof on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sbnair/Substrate_ZeroknowledgeProof [INFO] finished tweaking git repo https://github.com/sbnair/Substrate_ZeroknowledgeProof [INFO] tweaked toml for git repo https://github.com/sbnair/Substrate_ZeroknowledgeProof written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/sbnair/Substrate_ZeroknowledgeProof already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ab2b53fb1ff87489c2d4ab4dd2116c96d727bcc085dbed29a21dd207ec594c2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7ab2b53fb1ff87489c2d4ab4dd2116c96d727bcc085dbed29a21dd207ec594c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ab2b53fb1ff87489c2d4ab4dd2116c96d727bcc085dbed29a21dd207ec594c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ab2b53fb1ff87489c2d4ab4dd2116c96d727bcc085dbed29a21dd207ec594c2", kill_on_drop: false }` [INFO] [stdout] 7ab2b53fb1ff87489c2d4ab4dd2116c96d727bcc085dbed29a21dd207ec594c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8aef713d7c05f62745b702ff1721d7e6fc95386aed8cfa3efb5508f87ea25ff0 [INFO] running `Command { std: "docker" "start" "-a" "8aef713d7c05f62745b702ff1721d7e6fc95386aed8cfa3efb5508f87ea25ff0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling cc v1.0.29 [INFO] [stderr] Compiling serde v1.0.87 [INFO] [stderr] Compiling subtle v2.0.0 [INFO] [stderr] Compiling proc-macro-hack-impl v0.4.1 [INFO] [stderr] Compiling hash-db v0.11.0 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling crunchy v0.1.6 [INFO] [stderr] Compiling rustc-demangle v0.1.13 [INFO] [stderr] Compiling environmental v1.0.0 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling bit-vec v0.5.0 (https://github.com/osuketh/bit-vec#656d1139) [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling block-padding v0.1.3 [INFO] [stderr] Compiling backtrace v0.3.13 [INFO] [stderr] Compiling trie-root v0.11.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling smallvec v0.6.8 [INFO] [stderr] Compiling sr-std v0.1.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stderr] Compiling sr-io v0.1.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stderr] Compiling generic-array v0.12.0 [INFO] [stderr] Compiling generic-array v0.8.3 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling blake2-rfc v0.2.18 [INFO] [stderr] Compiling elastic-array v0.10.0 [INFO] [stderr] Compiling memory-db v0.11.0 [INFO] [stderr] Compiling hash256-std-hasher v0.11.0 [INFO] [stderr] Compiling digest v0.7.6 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling digest v0.8.0 [INFO] [stderr] Compiling proc-macro-hack v0.4.1 [INFO] [stderr] Compiling digest v0.6.2 [INFO] [stderr] Compiling crypto-mac v0.4.0 [INFO] [stderr] Compiling block-buffer v0.2.0 [INFO] [stderr] Compiling tiny-keccak v1.4.2 [INFO] [stderr] Compiling hmac v0.4.2 [INFO] [stderr] Compiling hex-literal-impl v0.1.1 [INFO] [stderr] Compiling sha2 v0.6.0 [INFO] [stderr] Compiling block-buffer v0.7.0 [INFO] [stderr] Compiling parity-wasm v0.31.3 [INFO] [stderr] Compiling uint v0.6.1 [INFO] [stderr] Compiling blake2-rfc v0.2.18 (https://github.com/gtank/blake2-rfc?rev=7a5b5fc99ae483a0043db7547fb79a6fa44b88a9#7a5b5fc9) [INFO] [stderr] Compiling hmac-drbg v0.1.2 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling sha3 v0.8.1 [INFO] [stderr] Compiling clear_on_drop v0.2.3 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling ring v0.14.6 [INFO] [stderr] Compiling rand_os v0.1.2 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling hex-literal v0.1.2 [INFO] [stderr] Compiling libsecp256k1 v0.2.2 [INFO] [stderr] Compiling fixed-hash v0.3.0 [INFO] [stderr] Compiling wasmi v0.4.3 [INFO] [stderr] Compiling substrate-panic-handler v0.1.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stderr] Compiling merlin v1.0.2 [INFO] [stderr] Compiling twox-hash v1.1.2 [INFO] [stderr] Compiling trie-db v0.11.0 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling curve25519-dalek v1.0.3 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling parity-codec-derive v3.0.0 [INFO] [stderr] Compiling serde_derive v1.0.87 [INFO] [stderr] Compiling parity-codec v3.0.0 [INFO] [stderr] Compiling impl-serde v0.1.1 [INFO] [stderr] Compiling ed25519-dalek v1.0.0-pre.1 [INFO] [stderr] Compiling schnorrkel v0.0.0 [INFO] [stderr] Compiling impl-codec v0.2.0 [INFO] [stderr] Compiling substrate-trie v0.4.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stderr] Compiling primitive-types v0.2.1 [INFO] [stderr] Compiling substrate-primitives v0.1.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stderr] Compiling pairing v0.14.2 (/opt/rustwide/workdir/pairing) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/bls12_381/fq.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | try!(write!(f, "0x")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/bls12_381/fq.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | try!(write!(f, "{:016x}", *i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/bls12_381/fr.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | try!(write!(f, "0x")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/bls12_381/fr.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | try!(write!(f, "{:016x}", *i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/utils.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> pairing/src/utils.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> pairing/src/lib.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | fn final_exponentiation(&Self::Fqk) -> Option; [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self::Fqk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [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] --> pairing/src/lib.rs:675:18 [INFO] [stdout] | [INFO] [stdout] 675 | fn from_repr(Self::Repr) -> Result; [INFO] [stdout] | ^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::Repr` [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: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> pairing/src/lib.rs:422:39 [INFO] [stdout] | [INFO] [stdout] 422 | _ => write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> pairing/src/lib.rs:621:39 [INFO] [stdout] | [INFO] [stdout] 621 | _ => write!(f, "{}", self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> pairing/src/lib.rs:373:32 [INFO] [stdout] | [INFO] [stdout] 373 | IoError::Group(ref err) => write!(f, "GroupDecodingError"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> pairing/src/lib.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | fn from(e: IoError) -> GroupDecodingError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> pairing/src/lib.rs:602:13 [INFO] [stdout] | [INFO] [stdout] 602 | fn from(e: Result<(), GroupDecodingError>) -> IoError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling substrate-state-machine v0.1.0 (https://github.com/paritytech/substrate#3a9b1e47) [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> pairing/src/lib.rs:123:62 [INFO] [stdout] | [INFO] [stdout] 123 | [(&(p.into().prepare()), &(q.into().prepare()))].into_iter(), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 123 | [(&(p.into().prepare()), &(q.into().prepare()))].iter(), [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 123 | IntoIterator::into_iter([(&(p.into().prepare()), &(q.into().prepare()))]), [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jubjub v0.1.0 (/opt/rustwide/workdir/jubjub) [INFO] [stderr] Compiling bellman-verifier v0.1.0 (/opt/rustwide/workdir/bellman-verifier) [INFO] [stdout] warning: unused import: `Output` [INFO] [stdout] --> bellman-verifier/src/dummy_engine.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | use parity_codec::{Encode, Decode, Input, Output}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Write` [INFO] [stdout] --> jubjub/src/jubjub/edwards.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | utils::{Write, Read}, [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bellman-verifier/src/lib.rs:307:34 [INFO] [stdout] | [INFO] [stdout] 307 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> bellman-verifier/src/dummy_engine.rs:29:55 [INFO] [stdout] | [INFO] [stdout] 29 | fn using_encoded R>(&self, f: F) -> R { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> bellman-verifier/src/dummy_engine.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn decode(input: &mut I) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> bellman-verifier/src/verifier.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | ].into_iter()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 62 | ].iter()) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 58 ~ &E::miller_loop(IntoIterator::into_iter([ [INFO] [stdout] 59 | (&proof.a.prepare(), &proof.b.prepare()), [INFO] [stdout] 60 | (&acc.into_affine().prepare(), &pvk.neg_gamma_g2), [INFO] [stdout] 61 | (&proof.c.prepare(), &pvk.neg_delta_g2) [INFO] [stdout] 62 ~ ])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> jubjub/src/jubjub/mod.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | for mut gen in tmp_params.pedersen_hash_generators.iter().cloned() { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bellman v0.1.0 (/opt/rustwide/workdir/bellman) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> bellman/src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> bellman/src/groth16/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | use byteorder::{BigEndian, ByteOrder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> bellman/src/multiexp.rs:159:10 [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 159 - ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] 159 + ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> bellman/src/multiexp.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 253 - ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] 253 + ) -> Box::Projective, Error=SynthesisError>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> bellman/src/lib.rs:256:34 [INFO] [stdout] | [INFO] [stdout] 256 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> bellman/src/groth16/mod.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | use byteorder::{BigEndian, ByteOrder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> bellman/src/groth16/verifier.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | ].into_iter()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 64 | ].iter()) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 60 ~ &E::miller_loop(IntoIterator::into_iter([ [INFO] [stdout] 61 | (&proof.a.prepare(), &proof.b.prepare()), [INFO] [stdout] 62 | (&acc.into_affine().prepare(), &pvk.neg_gamma_g2), [INFO] [stdout] 63 | (&proof.c.prepare(), &pvk.neg_delta_g2) [INFO] [stdout] 64 ~ ])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sapling-crypto v0.0.1 (/opt/rustwide/workdir/sapling-crypto) [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> sapling-crypto/src/jubjub/fs.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | try!(write!(f, "0x")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> sapling-crypto/src/jubjub/fs.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | try!(write!(f, "{:016x}", *i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> sapling-crypto/src/jubjub/mod.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 136 | fn circuit_generators(&self, FixedGenerators) -> &[Vec<(E::Fr, E::Fr)>]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: FixedGenerators` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [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] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/jubjub/edwards.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn read( [INFO] [stdout] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 107 | y_repr.read_le(reader)?; [INFO] [stdout] | ^^^^^^ expected `&[u8]`, found type parameter `R` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found type parameter `R` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `std::io::Error` [INFO] [stdout] --> sapling-crypto/src/jubjub/edwards.rs:107:31 [INFO] [stdout] | [INFO] [stdout] 107 | y_repr.read_le(reader)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/jubjub/edwards.rs:213:25 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn write( [INFO] [stdout] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 213 | y_repr.write_le(writer) [INFO] [stdout] | ^^^^^^ expected `&mut [u8]`, found type parameter `W` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [u8]` [INFO] [stdout] found type parameter `W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/jubjub/edwards.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 201 | ) -> io::Result<()> [INFO] [stdout] | -------------- expected `Result<(), std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 213 | y_repr.write_le(writer) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found enum `pairing::IoError` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, std::io::Error>` [INFO] [stdout] found enum `Result<_, pairing::IoError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/jubjub/fs.rs:274:53 [INFO] [stdout] | [INFO] [stdout] 274 | Err(PrimeFieldDecodingError::NotInField(format!("{}", r.0))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `&str`, found struct `String` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/redjubjub.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_scalar(reader: R) -> io::Result { [INFO] [stdout] | - this type parameter [INFO] [stdout] 15 | let mut s_repr = ::Repr::default(); [INFO] [stdout] 16 | s_repr.read_le(reader)?; [INFO] [stdout] | ^^^^^^ expected `&[u8]`, found type parameter `R` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found type parameter `R` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `std::io::Error` [INFO] [stdout] --> sapling-crypto/src/redjubjub.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 14 | fn read_scalar(reader: R) -> io::Result { [INFO] [stdout] | ----------------- expected `std::io::Error` because of this [INFO] [stdout] 15 | let mut s_repr = ::Repr::default(); [INFO] [stdout] 16 | s_repr.read_le(reader)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result<::Fs, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/redjubjub.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_scalar(s: &E::Fs, writer: W) -> io::Result<()> { [INFO] [stdout] | - this type parameter [INFO] [stdout] 28 | s.into_repr().write_le(writer) [INFO] [stdout] | ^^^^^^ expected `&mut [u8]`, found type parameter `W` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut [u8]` [INFO] [stdout] found type parameter `W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sapling-crypto/src/redjubjub.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_scalar(s: &E::Fs, writer: W) -> io::Result<()> { [INFO] [stdout] | -------------- expected `Result<(), std::io::Error>` because of return type [INFO] [stdout] 28 | s.into_repr().write_le(writer) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found enum `pairing::IoError` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, std::io::Error>` [INFO] [stdout] found enum `Result<_, pairing::IoError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sapling-crypto` due to 10 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8aef713d7c05f62745b702ff1721d7e6fc95386aed8cfa3efb5508f87ea25ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8aef713d7c05f62745b702ff1721d7e6fc95386aed8cfa3efb5508f87ea25ff0", kill_on_drop: false }` [INFO] [stdout] 8aef713d7c05f62745b702ff1721d7e6fc95386aed8cfa3efb5508f87ea25ff0