[INFO] fetching crate tentacle-secio 0.4.4... [INFO] checking tentacle-secio-0.4.4 against master#4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 for pr-81174 [INFO] extracting crate tentacle-secio 0.4.4 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate tentacle-secio 0.4.4 on toolchain 4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate tentacle-secio 0.4.4 [INFO] finished tweaking crates.io crate tentacle-secio 0.4.4 [INFO] tweaked toml for crates.io crate tentacle-secio 0.4.4 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate crates.io crate tentacle-secio 0.4.4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29a9b676095bd64dab6e84339c3605c2b52b81356a0e646dd06850231081144c [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" "29a9b676095bd64dab6e84339c3605c2b52b81356a0e646dd06850231081144c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29a9b676095bd64dab6e84339c3605c2b52b81356a0e646dd06850231081144c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a9b676095bd64dab6e84339c3605c2b52b81356a0e646dd06850231081144c", kill_on_drop: false }` [INFO] [stdout] 29a9b676095bd64dab6e84339c3605c2b52b81356a0e646dd06850231081144c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04464a79e613810e44594609efa45040d76b071e6c6cdfe240e6114de6201a48 [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" "04464a79e613810e44594609efa45040d76b071e6c6cdfe240e6114de6201a48", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling tentacle-secio v0.4.4 (/opt/rustwide/workdir) [INFO] [stderr] Checking unsigned-varint v0.3.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling secp256k1-sys v0.3.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking ring v0.16.19 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.9.1 [INFO] [stderr] Checking bstr v0.2.14 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking poly1305 v0.6.2 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking hmac v0.9.0 [INFO] [stderr] Checking criterion-plot v0.4.3 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking secp256k1 v0.19.0 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking tinytemplate v1.2.0 [INFO] [stderr] Checking csv v1.1.5 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking rayon-core v1.9.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling zeroize_derive v1.0.1 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking chacha20 v0.6.0 [INFO] [stderr] Checking curve25519-dalek v3.0.0 [INFO] [stderr] Checking chacha20poly1305 v0.7.1 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking x25519-dalek v1.1.0 [INFO] [stderr] Checking criterion v0.3.3 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stdout] error: Please choose a serialization format via feature. Possible choices: flatc, molc [INFO] [stdout] --> src/handshake/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | compile_error!("Please choose a serialization format via feature. Possible choices: flatc, molc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Please choose a serialization format via feature. Possible choices: flatc, molc [INFO] [stdout] --> src/handshake/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | compile_error!("Please choose a serialization format via feature. Possible choices: flatc, molc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/procedure.rs:118:37 [INFO] [stdout] | [INFO] [stdout] 118 | let local_exchanges = exchanges.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/procedure.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 135 | let remote_exchanges = match Exchange::decode(&raw_exchanges) { [INFO] [stdout] | ^^^^^^ function or associated item not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- function or associated item `decode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:94:41 [INFO] [stdout] | [INFO] [stdout] 94 | proposition.pubkey = encode_key.encode(); [INFO] [stdout] | ^^^^^^ method not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | let proposition_bytes = proposition.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Propose` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/procedure.rs:118:37 [INFO] [stdout] | [INFO] [stdout] 118 | let local_exchanges = exchanges.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:136:38 [INFO] [stdout] | [INFO] [stdout] 136 | let propose = match Propose::decode(&remote_bytes) { [INFO] [stdout] | ^^^^^^ function or associated item not found in `Propose` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ function or associated item `decode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:147:43 [INFO] [stdout] | [INFO] [stdout] 147 | let public_key = match PublicKey::decode(&propose.pubkey) { [INFO] [stdout] | ^^^^^^ variant or associated item not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ variant or associated item `decode` not found here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/procedure.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 135 | let remote_exchanges = match Exchange::decode(&raw_exchanges) { [INFO] [stdout] | ^^^^^^ function or associated item not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- function or associated item `decode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handshake/handshake_context.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | nonce, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found slice `[u8]` [INFO] [stdout] | help: try using a conversion method: `nonce: nonce.to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found slice `[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:94:41 [INFO] [stdout] | [INFO] [stdout] 94 | proposition.pubkey = encode_key.encode(); [INFO] [stdout] | ^^^^^^ method not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | let proposition_bytes = proposition.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Propose` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:136:38 [INFO] [stdout] | [INFO] [stdout] 136 | let propose = match Propose::decode(&remote_bytes) { [INFO] [stdout] | ^^^^^^ function or associated item not found in `Propose` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ function or associated item `decode` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_context.rs:147:43 [INFO] [stdout] | [INFO] [stdout] 147 | let public_key = match PublicKey::decode(&propose.pubkey) { [INFO] [stdout] | ^^^^^^ variant or associated item not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] ::: src/handshake/handshake_struct.rs:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ variant or associated item `decode` not found here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tentacle-secio` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handshake/handshake_context.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | nonce, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found slice `[u8]` [INFO] [stdout] | help: try using a conversion method: `nonce: nonce.to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found slice `[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:317:36 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ variant or associated item `decode` not found here [INFO] [stdout] ... [INFO] [stdout] 317 | assert_eq!(raw, PublicKey::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ variant or associated item not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for enum `handshake_struct::PublicKey` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:317:49 [INFO] [stdout] | [INFO] [stdout] 208 | pub enum PublicKey { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] ... [INFO] [stdout] 317 | assert_eq!(raw, PublicKey::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ method not found in `handshake_struct::PublicKey` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:329:34 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ function or associated item `decode` not found for this [INFO] [stdout] ... [INFO] [stdout] 329 | assert_eq!(raw, Propose::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ function or associated item not found in `Propose` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Propose` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:329:47 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Propose { [INFO] [stdout] | ------------------ method `encode` not found for this [INFO] [stdout] ... [INFO] [stdout] 329 | assert_eq!(raw, Propose::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ method not found in `Propose` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `decode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:340:35 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- function or associated item `decode` not found for this [INFO] [stdout] ... [INFO] [stdout] 340 | assert_eq!(raw, Exchange::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ function or associated item not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Exchange` in the current scope [INFO] [stdout] --> src/handshake/handshake_struct.rs:340:48 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct Exchange { [INFO] [stdout] | ------------------- method `encode` not found for this [INFO] [stdout] ... [INFO] [stdout] 340 | assert_eq!(raw, Exchange::decode(&byte.encode()).unwrap()) [INFO] [stdout] | ^^^^^^ method not found in `Exchange` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `encode`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encoder` [INFO] [stdout] candidate #2: `RsaEncoding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "04464a79e613810e44594609efa45040d76b071e6c6cdfe240e6114de6201a48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04464a79e613810e44594609efa45040d76b071e6c6cdfe240e6114de6201a48", kill_on_drop: false }` [INFO] [stdout] 04464a79e613810e44594609efa45040d76b071e6c6cdfe240e6114de6201a48