[INFO] fetching crate rlpx 0.4.1... [INFO] checking rlpx-0.4.1 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] extracting crate rlpx 0.4.1 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate rlpx 0.4.1 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rlpx 0.4.1 [INFO] finished tweaking crates.io crate rlpx 0.4.1 [INFO] tweaked toml for crates.io crate rlpx 0.4.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 93 packages to latest compatible versions [INFO] [stderr] Adding bytes v0.4.12 (available: v1.8.0) [INFO] [stderr] Adding env_logger v0.3.5 (available: v0.11.5) [INFO] [stderr] Adding futures v0.1.31 (available: v0.3.31) [INFO] [stderr] Adding libsecp256k1 v0.1.3 (available: v0.1.15) [INFO] [stderr] Adding log v0.3.9 (available: v0.4.22) [INFO] [stderr] Adding mio v0.6.23 (available: v1.0.2) [INFO] [stderr] Adding rand v0.4.6 (available: v0.8.5) [INFO] [stderr] Adding sha2 v0.6.0 (available: v0.10.8) [INFO] [stderr] Adding sha3 v0.6.0 (available: v0.10.8) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bede8a38ecada66fabb7211a4d8bd84826f69076246f15186f2d44542da0555f [INFO] running `Command { std: "docker" "start" "-a" "bede8a38ecada66fabb7211a4d8bd84826f69076246f15186f2d44542da0555f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bede8a38ecada66fabb7211a4d8bd84826f69076246f15186f2d44542da0555f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bede8a38ecada66fabb7211a4d8bd84826f69076246f15186f2d44542da0555f", kill_on_drop: false }` [INFO] [stdout] bede8a38ecada66fabb7211a4d8bd84826f69076246f15186f2d44542da0555f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 33868bb1713eec09a5504e47d98b4ff81056cd91e447634a99ae590009327c3e [INFO] running `Command { std: "docker" "start" "-a" "33868bb1713eec09a5504e47d98b4ff81056cd91e447634a99ae590009327c3e", 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.164 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Checking elastic-array-plus v0.9.1 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking ethereum-hexutil v0.2.3 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking generic-array v0.8.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking digest v0.6.1 [INFO] [stderr] Checking block-buffer v0.2.0 [INFO] [stderr] Checking ethereum-rlp v0.2.3 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking sha3 v0.6.0 [INFO] [stderr] Checking ethereum-bigint v0.2.9 [INFO] [stderr] Checking sha2 v0.6.0 [INFO] [stderr] Checking libsecp256k1 v0.1.3 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking env_logger v0.3.5 [INFO] [stderr] Checking rlpx v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `secp256k1::SharedSecret` [INFO] [stdout] --> src/ecies/algorithm.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use secp256k1::{self, Message, Signature, RecoveryId, SharedSecret, PublicKey, SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^ no `SharedSecret` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `secp256k1::SharedSecret` [INFO] [stdout] --> src/ecies/algorithm.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use secp256k1::{self, Message, Signature, RecoveryId, SharedSecret, PublicKey, SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^ no `SharedSecret` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `secp256k1::SharedSecret` [INFO] [stdout] --> src/ecies/algorithm.rs:450:30 [INFO] [stdout] | [INFO] [stdout] 450 | use secp256k1::{Message, SharedSecret, PublicKey, SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^ no `SharedSecret` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] ecies::algorithm::SharedSecret [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/util.rs:42:56 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn id2pk(id: H512) -> Result { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 42 - pub fn id2pk(id: H512) -> Result { [INFO] [stdout] 42 + pub fn id2pk(id: H512) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sign` in crate `secp256k1` [INFO] [stdout] --> src/ecies/algorithm.rs:187:37 [INFO] [stdout] | [INFO] [stdout] 187 | let (sig, rec) = secp256k1::sign(&msg, &self.ephemeral_secret_key)?; [INFO] [stdout] | ^^^^ not found in `secp256k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | SECP256K1(secp256k1::Error), [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - SECP256K1(secp256k1::Error), [INFO] [stdout] 7 + SECP256K1(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for ECIESError { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 33 - impl From for ECIESError { [INFO] [stdout] 33 + impl From for ECIESError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(error: secp256k1::Error) -> ECIESError { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 34 - fn from(error: secp256k1::Error) -> ECIESError { [INFO] [stdout] 34 + fn from(error: Error) -> ECIESError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/util.rs:42:56 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn id2pk(id: H512) -> Result { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 42 - pub fn id2pk(id: H512) -> Result { [INFO] [stdout] 42 + pub fn id2pk(id: H512) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sign` in crate `secp256k1` [INFO] [stdout] --> src/ecies/algorithm.rs:187:37 [INFO] [stdout] | [INFO] [stdout] 187 | let (sig, rec) = secp256k1::sign(&msg, &self.ephemeral_secret_key)?; [INFO] [stdout] | ^^^^ not found in `secp256k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | SECP256K1(secp256k1::Error), [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - SECP256K1(secp256k1::Error), [INFO] [stdout] 7 + SECP256K1(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for ECIESError { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 33 - impl From for ECIESError { [INFO] [stdout] 33 + impl From for ECIESError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `secp256k1` [INFO] [stdout] --> src/errors.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(error: secp256k1::Error) -> ECIESError { [INFO] [stdout] | ^^^^^ not found in `secp256k1` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use io::Error; [INFO] [stdout] | [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 34 - fn from(error: secp256k1::Error) -> ECIESError { [INFO] [stdout] 34 + fn from(error: Error) -> ECIESError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: method `len` is private [INFO] [stdout] --> src/util.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | debug_assert!(v.len() == 65); [INFO] [stdout] | ^^^ private method [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:772:5 [INFO] [stdout] | [INFO] [stdout] = note: private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: method `len` is private [INFO] [stdout] --> src/util.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | debug_assert!(v.len() == 65); [INFO] [stdout] | ^^^ private method [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/option.rs:772:5 [INFO] [stdout] | [INFO] [stdout] = note: private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `Option<[u8; 65]>` [INFO] [stdout] --> src/util.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | H512::from(&v[1..]) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `Option<[u8; 65]>` [INFO] [stdout] --> src/util.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | H512::from(&v[1..]) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/util.rs:60:33 [INFO] [stdout] | [INFO] [stdout] 60 | let prikey = SecretKey::random(&mut OsRng::new().unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | let ephemeral_secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:99:47 [INFO] [stdout] | [INFO] [stdout] 99 | let ephemeral_secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | let ephemeral_secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | let secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:99:47 [INFO] [stdout] | [INFO] [stdout] 99 | let ephemeral_secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | let secret_key = SecretKey::random(&mut OsRng::new()?); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ecies/algorithm.rs:142:36 [INFO] [stdout] | [INFO] [stdout] 142 | ret[0..65].copy_from_slice(&public_key.serialize()); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `&Option<[u8; 65]>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&Option<[u8; 65]>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/slice/mod.rs:3669:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/ecies/algorithm.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 149 | fn decrypt_message(&self, encrypted: &[u8]) -> Result, ECIESError> { [INFO] [stdout] | -------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 154 | let public_key = PublicKey::parse(&pub_raw)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result, ECIESError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ECIESError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ecies/algorithm.rs:142:36 [INFO] [stdout] | [INFO] [stdout] 142 | ret[0..65].copy_from_slice(&public_key.serialize()); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `&Option<[u8; 65]>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&Option<[u8; 65]>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/slice/mod.rs:3669:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/ecies/algorithm.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 149 | fn decrypt_message(&self, encrypted: &[u8]) -> Result, ECIESError> { [INFO] [stdout] | -------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 154 | let public_key = PublicKey::parse(&pub_raw)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result, ECIESError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ECIESError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `RecoveryId` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:212:31 [INFO] [stdout] | [INFO] [stdout] 212 | let rec = RecoveryId::parse(data[64])?; [INFO] [stdout] | ^^^^^ function or associated item not found in `RecoveryId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `RecoveryId` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:212:31 [INFO] [stdout] | [INFO] [stdout] 212 | let rec = RecoveryId::parse(data[64])?; [INFO] [stdout] | ^^^^^ function or associated item not found in `RecoveryId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/ecies/algorithm.rs:228:49 [INFO] [stdout] | [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&msg, &sig, &rec)?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---- ---- argument #2 of type `&RecoveryId` is missing [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 of type `&Message` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn recover(signature: &Signature, recovery_id: &RecoveryId, message: &Message) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: did you mean [INFO] [stdout] | [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&sig, /* &RecoveryId */, &rec)?); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/ecies/algorithm.rs:228:49 [INFO] [stdout] | [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&msg, &sig, &rec)?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---- ---- argument #2 of type `&RecoveryId` is missing [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 of type `&Message` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn recover(signature: &Signature, recovery_id: &RecoveryId, message: &Message) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: did you mean [INFO] [stdout] | [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&sig, /* &RecoveryId */, &rec)?); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/ecies/algorithm.rs:228:85 [INFO] [stdout] | [INFO] [stdout] 206 | fn parse_auth_unencrypted(&mut self, data: [u8; AUTH_LEN]) -> Result<(), ECIESError> { [INFO] [stdout] | ------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&msg, &sig, &rec)?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), ECIESError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), ECIESError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/ecies/algorithm.rs:228:85 [INFO] [stdout] | [INFO] [stdout] 206 | fn parse_auth_unencrypted(&mut self, data: [u8; AUTH_LEN]) -> Result<(), ECIESError> { [INFO] [stdout] | ------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 228 | self.remote_ephemeral_public_key = Some(secp256k1::recover(&msg, &sig, &rec)?); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), ECIESError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), ECIESError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:457:44 [INFO] [stdout] | [INFO] [stdout] 457 | let server_secret_key = SecretKey::random(&mut OsRng::new().unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `random` found for struct `SecretKey` in the current scope [INFO] [stdout] --> src/ecies/algorithm.rs:459:44 [INFO] [stdout] | [INFO] [stdout] 459 | let client_secret_key = SecretKey::random(&mut OsRng::new().unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item not found in `SecretKey` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SecretKey`, consider using `SecretKey::parse` which returns `Option` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.1.3/src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn parse(p: &[u8; 32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0599, E0608, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0599, E0608, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rlpx` (lib) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rlpx` (lib test) due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "33868bb1713eec09a5504e47d98b4ff81056cd91e447634a99ae590009327c3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33868bb1713eec09a5504e47d98b4ff81056cd91e447634a99ae590009327c3e", kill_on_drop: false }` [INFO] [stdout] 33868bb1713eec09a5504e47d98b4ff81056cd91e447634a99ae590009327c3e