[INFO] fetching crate tdn_permission 0.2.0... [INFO] checking tdn_permission-0.2.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate tdn_permission 0.2.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate tdn_permission 0.2.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tdn_permission 0.2.0 [INFO] finished tweaking crates.io crate tdn_permission 0.2.0 [INFO] tweaked toml for crates.io crate tdn_permission 0.2.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate tdn_permission 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha2 v0.9.1 [INFO] [stderr] Downloaded blocking v1.0.0 [INFO] [stderr] Downloaded tungstenite v0.10.1 [INFO] [stderr] Downloaded async-tungstenite v0.4.2 [INFO] [stderr] Downloaded wepoll-sys-stjepang v1.0.8 [INFO] [stderr] Downloaded futures-lite v1.4.0 [INFO] [stderr] Downloaded ed25519 v1.0.2 [INFO] [stderr] Downloaded subtle v2.3.0 [INFO] [stderr] Downloaded async-rwlock v1.1.0 [INFO] [stderr] Downloaded async-fs v1.3.0 [INFO] [stderr] Downloaded ed25519-dalek v1.0.0 [INFO] [stderr] Downloaded block-modes v0.6.1 [INFO] [stderr] Downloaded rckad v0.0.6 [INFO] [stderr] Downloaded async-executor v1.1.1 [INFO] [stderr] Downloaded curve25519-dalek v3.0.0 [INFO] [stderr] Downloaded async-barrier v1.0.1 [INFO] [stderr] Downloaded polling v1.0.2 [INFO] [stderr] Downloaded cc v1.0.48 [INFO] [stderr] Downloaded sled v0.34.4 [INFO] [stderr] Downloaded async-task v3.0.0 [INFO] [stderr] Downloaded chamomile v0.2.0 [INFO] [stderr] Downloaded tdn v0.2.0 [INFO] [stderr] Downloaded async-lock v2.1.3 [INFO] [stderr] Downloaded async-process v1.0.0 [INFO] [stderr] Downloaded async-semaphore v1.1.0 [INFO] [stderr] Downloaded tdn_types v0.2.0 [INFO] [stderr] Downloaded zeroize v1.1.1 [INFO] [stderr] Downloaded postcard v0.5.1 [INFO] [stderr] Downloaded async-mutex v1.3.0 [INFO] [stderr] Downloaded async-net v1.3.0 [INFO] [stderr] Downloaded fastrand v1.3.5 [INFO] [stderr] Downloaded smol v1.0.1 [INFO] [stderr] Downloaded event-listener v2.4.0 [INFO] [stderr] Downloaded async-io v1.1.1 [INFO] [stderr] Downloaded aes-soft v0.5.0 [INFO] [stderr] Downloaded block-cipher v0.8.0 [INFO] [stderr] Downloaded async-channel v1.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec3de45c0f9074ebd0864efbb1615ac11198bd3bc8cf968e7eba3ee22e58b553 [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" "ec3de45c0f9074ebd0864efbb1615ac11198bd3bc8cf968e7eba3ee22e58b553", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec3de45c0f9074ebd0864efbb1615ac11198bd3bc8cf968e7eba3ee22e58b553", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec3de45c0f9074ebd0864efbb1615ac11198bd3bc8cf968e7eba3ee22e58b553", kill_on_drop: false }` [INFO] [stdout] ec3de45c0f9074ebd0864efbb1615ac11198bd3bc8cf968e7eba3ee22e58b553 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12ce5743e410cba202af571f55840fecedc1a06d5e2a3a72c5b3034c28c6a5c7 [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" "12ce5743e410cba202af571f55840fecedc1a06d5e2a3a72c5b3034c28c6a5c7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking event-listener v2.4.0 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking fastrand v1.3.5 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking subtle v2.3.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Checking postcard-cobs v0.1.5-pre [INFO] [stderr] Checking signature v1.2.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking async-task v3.0.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking bit-vec v0.6.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking async-mutex v1.3.0 [INFO] [stderr] Checking async-semaphore v1.1.0 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking ed25519 v1.0.2 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking async-rwlock v1.1.0 [INFO] [stderr] Checking async-barrier v1.0.1 [INFO] [stderr] Checking async-channel v1.4.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking futures-lite v1.4.0 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking async-lock v2.1.3 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking block-cipher v0.8.0 [INFO] [stderr] Checking block-modes v0.6.1 [INFO] [stderr] Checking aes-soft v0.5.0 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Checking polling v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.2.1 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking signal-hook v0.1.16 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking async-io v1.1.1 [INFO] [stderr] Checking blocking v1.0.0 [INFO] [stderr] Checking async-executor v1.1.1 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking sled v0.34.4 [INFO] [stderr] Checking async-fs v1.3.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking async-process v1.0.0 [INFO] [stderr] Checking async-net v1.3.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking smol v1.0.1 [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling zeroize_derive v1.0.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Checking zeroize v1.1.1 [INFO] [stderr] Checking curve25519-dalek v3.0.0 [INFO] [stderr] Checking x25519-dalek v1.1.0 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking async-tungstenite v0.4.2 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking chamomile_types v0.2.0 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking postcard v0.5.1 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking ed25519-dalek v1.0.0 [INFO] [stderr] Checking rckad v0.0.6 [INFO] [stderr] Checking chamomile v0.2.0 [INFO] [stderr] Checking tdn_types v0.2.0 [INFO] [stderr] Checking tdn_permission v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tdn v0.2.0 [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Serialize, Deserialize, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | #[derive(Serialize, Deserialize, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:168:33 [INFO] [stdout] | [INFO] [stdout] 168 | #[derive(Clone, Default, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | #[derive(Clone, Default, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:176:10 [INFO] [stdout] | [INFO] [stdout] 176 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | json! ({ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] tdn_types::primitive::json [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DiskDatabase` [INFO] [stdout] --> examples/vote_permissioned.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | let db = DiskDatabase::new(Some(path.clone())); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `DiskDatabase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DiskStorageActor` [INFO] [stdout] --> examples/vote_permissioned.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | let storage = DiskStorageActor::run(Some(path)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `DiskStorageActor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bincode` [INFO] [stdout] --> examples/vote_permissioned.rs:189:37 [INFO] [stdout] | [INFO] [stdout] 189 | let pkc = P::sign(ca_psk, &(bincode::serialize(&pk).unwrap())); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `bincode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `bincode` [INFO] [stdout] --> examples/vote_permissioned.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let v = bincode::serialize(&ca.pk); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `bincode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/vote_permissioned.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | serde_json::to_string(&ca_string).unwrap() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/vote_permissioned.rs:226:55 [INFO] [stdout] | [INFO] [stdout] 226 | let join_type: Result = serde_json::from_str(&s); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Group { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GroupID` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | id: GroupID, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | peers: HashMap, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | peers: HashMap, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | waiting_peers: HashMap>, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Addr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | storage: Addr, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DiskStorageActor` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Group { [INFO] [stdout] | - help: you might be missing a type parameter: `, DiskStorageActor` [INFO] [stdout] ... [INFO] [stdout] 8 | storage: Addr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl Group

{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GroupID` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Group { [INFO] [stdout] | ------------------------- similarly named struct `Group` defined here [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn load(id: GroupID, pk: P::PublicKey, peer_addr: PeerAddr, rate: f32) -> Self { [INFO] [stdout] | ^^^^^^^ help: a struct with a similar name exists: `Group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:12:59 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load(id: GroupID, pk: P::PublicKey, peer_addr: PeerAddr, rate: f32) -> Self { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_default_storage_path` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | let mut path = get_default_storage_path(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> examples/vote_permissioned.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | HashMap::new() [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> examples/vote_permissioned.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | waiting_peers: HashMap::new(), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:44:62 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_peer_addr(&self, pk: &P::PublicKey) -> Option { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:48:48 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_by_peer_addr(&self, peer_addr: &PeerAddr) -> Option<&P::PublicKey> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn bootstrap(&mut self, peers: Vec<(P::PublicKey, PeerAddr)>) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Iter` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use core::option::Iter; [INFO] [stdout] | [INFO] [stdout] 2 | use core::result::Iter; [INFO] [stdout] | [INFO] [stdout] 2 | use core::slice::Iter; [INFO] [stdout] | [INFO] [stdout] 2 | use smol::stream::Iter; [INFO] [stdout] | [INFO] [stdout] and 12 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `GroupTrait` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | impl GroupTrait

for Group

{ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | impl GroupTrait

for Group

{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GroupID` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Group { [INFO] [stdout] | ------------------------- similarly named struct `Group` defined here [INFO] [stdout] ... [INFO] [stdout] 85 | fn id(&self) -> &GroupID { [INFO] [stdout] | ^^^^^^^ help: a struct with a similar name exists: `Group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:89:57 [INFO] [stdout] | [INFO] [stdout] 89 | fn join(&mut self, data: Self::JoinType, peer_addr: PeerAddr) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EntityWrite` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:106:38 [INFO] [stdout] | [INFO] [stdout] 106 | self.storage.do_send(EntityWrite(GroupStore::

( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:117:37 [INFO] [stdout] | [INFO] [stdout] 117 | fn leave(&mut self, peer_addr: &PeerAddr) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:139:58 [INFO] [stdout] | [INFO] [stdout] 139 | fn help_sync_peers(&self, _pk: &P::PublicKey) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:152:64 [INFO] [stdout] | [INFO] [stdout] 152 | fn add_sync_peers(&mut self, pk: &P::PublicKey, peer_addr: PeerAddr) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:158:26 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct GroupStore(GroupID, HashMap); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GroupID` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:158:32 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Group { [INFO] [stdout] | ------------------------- similarly named struct `Group` defined here [INFO] [stdout] ... [INFO] [stdout] 158 | pub struct GroupStore(GroupID, HashMap); [INFO] [stdout] | ^^^^^^^ help: a struct with a similar name exists: `Group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:158:41 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct GroupStore(GroupID, HashMap); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerAddr` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:158:63 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct GroupStore(GroupID, HashMap); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use tdn::prelude::PeerAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::primitive::PeerAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Entity` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:160:15 [INFO] [stdout] | [INFO] [stdout] 160 | impl Entity for GroupStore

{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | impl Entity for GroupStore

{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:169:27 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct Certificate { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Peer` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | impl Certificate

{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use tdn_types::group::Peer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RPCParams` in this scope [INFO] [stdout] --> examples/vote_permissioned.rs:217:33 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn to_jsonrpc(&self) -> RPCParams { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `vote_permissioned` [INFO] [stdout] --> examples/vote_permissioned.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[derive(Clone)] [INFO] [stdout] 2 | | pub struct Group { [INFO] [stdout] 3 | | id: GroupID, [INFO] [stdout] 4 | | rate: f32, [INFO] [stdout] ... | [INFO] [stdout] 236 | | } [INFO] [stdout] 237 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `examples/vote_permissioned.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tdn_permission` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "12ce5743e410cba202af571f55840fecedc1a06d5e2a3a72c5b3034c28c6a5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12ce5743e410cba202af571f55840fecedc1a06d5e2a3a72c5b3034c28c6a5c7", kill_on_drop: false }` [INFO] [stdout] 12ce5743e410cba202af571f55840fecedc1a06d5e2a3a72c5b3034c28c6a5c7