[INFO] crate sc-peerset 2.0.0-alpha.3 is already in cache [INFO] checking sc-peerset-2.0.0-alpha.3 against try#13f916f63bc6575d5ff1f989237dfabe88981368 for pr-69880 [INFO] extracting crate sc-peerset 2.0.0-alpha.3 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate sc-peerset 2.0.0-alpha.3 on toolchain 13f916f63bc6575d5ff1f989237dfabe88981368 [INFO] running `"/workspace/cargo-home/bin/cargo" "+13f916f63bc6575d5ff1f989237dfabe88981368" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate sc-peerset 2.0.0-alpha.3 [INFO] finished tweaking crates.io crate sc-peerset 2.0.0-alpha.3 [INFO] tweaked toml for crates.io crate sc-peerset 2.0.0-alpha.3 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+13f916f63bc6575d5ff1f989237dfabe88981368" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+13f916f63bc6575d5ff1f989237dfabe88981368" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+13f916f63bc6575d5ff1f989237dfabe88981368" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1fc65d6d30dcfb15a7c19149d4130868cbd4c9639e1552b873035d53fa592059 [INFO] running `"docker" "start" "-a" "1fc65d6d30dcfb15a7c19149d4130868cbd4c9639e1552b873035d53fa592059"` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking subtle v2.2.2 [INFO] [stderr] Checking bs58 v0.3.0 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking ipnet v2.2.0 [INFO] [stderr] Checking parity-send-wrapper v0.1.0 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Compiling ring v0.16.11 [INFO] [stderr] Checking quicksink v0.1.1 [INFO] [stderr] Checking chacha20-poly1305-aead v0.1.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Checking async-task v1.3.1 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Checking get_if_addrs v0.5.3 [INFO] [stderr] Compiling snow v0.6.2 [INFO] [stderr] Checking uint v0.8.2 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking blake2 v0.8.1 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking twofish v0.2.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking cuckoofilter v0.3.2 [INFO] [stderr] Checking salsa20 v0.3.0 [INFO] [stderr] Compiling prost-build v0.6.1 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking aes-ctr v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking async-std v1.5.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.59 [INFO] [stderr] Compiling prost-derive v0.6.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling zeroize_derive v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.11 [INFO] [stderr] Compiling asn1_der_derive v0.1.2 [INFO] [stderr] Compiling libp2p-core-derive v0.16.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.59 [INFO] [stderr] Checking zeroize v1.1.0 [INFO] [stderr] Checking asn1_der v0.6.3 [INFO] [stderr] Checking curve25519-dalek v2.0.0 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.59 [INFO] [stderr] Checking const-random v0.1.8 [INFO] [stderr] Checking ahash v0.2.18 [INFO] [stderr] Checking thiserror v1.0.11 [INFO] [stderr] Checking ed25519-dalek v1.0.0-pre.3 [INFO] [stderr] Checking x25519-dalek v0.6.0 [INFO] [stderr] Checking hashbrown v0.6.3 [INFO] [stderr] Checking pin-project v0.4.8 [INFO] [stderr] Checking wasm-bindgen v0.2.59 [INFO] [stderr] Checking lru v0.4.3 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Compiling prost v0.6.1 [INFO] [stderr] Checking js-sys v0.3.36 [INFO] [stderr] Compiling prost-types v0.6.1 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.9 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking futures_codec v0.3.4 [INFO] [stderr] Checking rw-stream-sink v0.2.1 [INFO] [stderr] Checking wasm-timer v0.2.4 [INFO] [stderr] Checking yamux v0.4.4 [INFO] [stderr] Checking libp2p-pnet v0.16.0 [INFO] [stderr] Checking unsigned-varint v0.3.2 [INFO] [stderr] Compiling libp2p-core v0.16.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.16.0 [INFO] [stderr] Compiling libp2p-noise v0.16.2 [INFO] [stderr] Compiling libp2p-floodsub v0.16.0 [INFO] [stderr] Compiling libp2p-secio v0.16.1 [INFO] [stderr] Compiling libp2p-plaintext v0.16.0 [INFO] [stderr] Compiling libp2p-identify v0.16.0 [INFO] [stderr] Compiling libp2p-kad v0.16.2 [INFO] [stderr] Checking parity-multihash v0.2.3 [INFO] [stderr] Checking multistream-select v0.7.0 [INFO] [stderr] Checking parity-multiaddr v0.7.3 [INFO] [stderr] Checking libp2p-swarm v0.16.1 [INFO] [stderr] Checking libp2p-yamux v0.16.2 [INFO] [stderr] Checking libp2p-mplex v0.16.0 [INFO] [stderr] Checking libp2p-wasm-ext v0.16.2 [INFO] [stderr] Checking libp2p-dns v0.16.0 [INFO] [stderr] Checking libp2p-deflate v0.16.0 [INFO] [stderr] Checking libp2p-uds v0.16.0 [INFO] [stderr] Checking libp2p-tcp v0.16.0 [INFO] [stderr] Checking libp2p-mdns v0.16.0 [INFO] [stderr] Checking libp2p-ping v0.16.0 [INFO] [stderr] Checking libp2p v0.16.2 [INFO] [stderr] Checking sc-peerset v2.0.0-alpha.3 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `rand` [INFO] [stderr] --> tests/fuzz.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use rand::distributions::{Distribution, Uniform, WeightedIndex}; [INFO] [stderr] | ^^^^ use of undeclared type or module `rand` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `rand` [INFO] [stderr] --> tests/fuzz.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use rand::seq::IteratorRandom; [INFO] [stderr] | ^^^^ use of undeclared type or module `rand` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `rand` [INFO] [stderr] --> tests/fuzz.rs:33:16 [INFO] [stderr] | [INFO] [stderr] 33 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^^ use of undeclared type or module `rand` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:41:20 [INFO] [stderr] | [INFO] [stderr] 41 | bootnodes: (0 .. Uniform::new_inclusive(0, 4).sample(&mut rng)).map(|_| { [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:46:25 [INFO] [stderr] | [INFO] [stderr] 46 | reserved_nodes: (0 .. Uniform::new_inclusive(0, 2).sample(&mut rng)).map(|_| { [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:52:18 [INFO] [stderr] | [INFO] [stderr] 52 | reserved_only: Uniform::new_inclusive(0, 10).sample(&mut rng) == 0, [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | in_peers: Uniform::new_inclusive(0, 25).sample(&mut rng), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:54:14 [INFO] [stderr] | [INFO] [stderr] 54 | out_peers: Uniform::new_inclusive(0, 25).sample(&mut rng), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `WeightedIndex` [INFO] [stderr] --> tests/fuzz.rs:72:10 [INFO] [stderr] | [INFO] [stderr] 72 | match WeightedIndex::new(&action_weights).unwrap().sample(&mut rng) { [INFO] [stderr] | ^^^^^^^^^^^^^ use of undeclared type or module `WeightedIndex` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Uniform` [INFO] [stderr] --> tests/fuzz.rs:99:16 [INFO] [stderr] | [INFO] [stderr] 99 | let val = Uniform::new_inclusive(i32::min_value(), i32::max_value()).sample(&mut rng); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `Uniform` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:98:47 [INFO] [stderr] | [INFO] [stderr] 98 | 2 => if let Some(id) = known_nodes.iter().choose(&mut rng) { [INFO] [stderr] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 17 | use rand::seq::IteratorRandom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:104:51 [INFO] [stderr] | [INFO] [stderr] 104 | 3 => if let Some(id) = connected_nodes.iter().choose(&mut rng).cloned() { [INFO] [stderr] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 17 | use rand::seq::IteratorRandom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `choose` found for struct `std::iter::Filter, [closure@tests/fuzz.rs:111:14: 111:91 incoming_nodes:_, connected_nodes:_]>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:112:7 [INFO] [stderr] | [INFO] [stderr] 112 | .choose(&mut rng) { [INFO] [stderr] | ^^^^^^ method not found in `std::iter::Filter, [closure@tests/fuzz.rs:111:14: 111:91 incoming_nodes:_, connected_nodes:_]>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 17 | use rand::seq::IteratorRandom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `choose` found for struct `std::iter::Filter, [closure@tests/fuzz.rs:123:54: 123:86 reserved_nodes:_]>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:123:88 [INFO] [stderr] | [INFO] [stderr] 123 | 7 => if let Some(id) = known_nodes.iter().filter(|n| !reserved_nodes.contains(*n)).choose(&mut rng) { [INFO] [stderr] | ^^^^^^ method not found in `std::iter::Filter, [closure@tests/fuzz.rs:123:54: 123:86 reserved_nodes:_]>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 17 | use rand::seq::IteratorRandom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:127:50 [INFO] [stderr] | [INFO] [stderr] 127 | 8 => if let Some(id) = reserved_nodes.iter().choose(&mut rng).cloned() { [INFO] [stderr] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, libp2p_core::peer_id::PeerId>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 17 | use rand::seq::IteratorRandom; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0433`. [INFO] [stderr] error: could not compile `sc-peerset`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "1fc65d6d30dcfb15a7c19149d4130868cbd4c9639e1552b873035d53fa592059"` [INFO] running `"docker" "rm" "-f" "1fc65d6d30dcfb15a7c19149d4130868cbd4c9639e1552b873035d53fa592059"` [INFO] [stdout] 1fc65d6d30dcfb15a7c19149d4130868cbd4c9639e1552b873035d53fa592059