[INFO] fetching crate sc-peerset 2.0.0... [INFO] checking sc-peerset-2.0.0 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] extracting crate sc-peerset 2.0.0 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate sc-peerset 2.0.0 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sc-peerset 2.0.0 [INFO] finished tweaking crates.io crate sc-peerset 2.0.0 [INFO] tweaked toml for crates.io crate sc-peerset 2.0.0 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e050b870114585fdbab51e92c31757f5b0d54efc7b082208c42cb01c5d8acf2e [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" "e050b870114585fdbab51e92c31757f5b0d54efc7b082208c42cb01c5d8acf2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e050b870114585fdbab51e92c31757f5b0d54efc7b082208c42cb01c5d8acf2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e050b870114585fdbab51e92c31757f5b0d54efc7b082208c42cb01c5d8acf2e", kill_on_drop: false }` [INFO] [stdout] e050b870114585fdbab51e92c31757f5b0d54efc7b082208c42cb01c5d8acf2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4e5eaa54349aef73fc656ec2c35e77d8a6a88ebccc6122dd46d9e9f22a751a2f [INFO] running `Command { std: "docker" "start" "-a" "4e5eaa54349aef73fc656ec2c35e77d8a6a88ebccc6122dd46d9e9f22a751a2f", kill_on_drop: false }` [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling prometheus v0.10.0 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling ring v0.16.19 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking multihash v0.11.4 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling prost-build v0.6.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking curve25519-dalek v3.0.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling libp2p-core v0.22.1 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking parity-multiaddr v0.9.6 [INFO] [stderr] Checking serde_json v1.0.61 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking rw-stream-sink v0.2.1 [INFO] [stderr] Checking multistream-select v0.8.5 [INFO] [stderr] Checking wasm-timer v0.2.5 [INFO] [stderr] Checking sp-utils v2.0.0 [INFO] [stderr] Checking libp2p-swarm v0.22.0 [INFO] [stderr] Checking libp2p v0.28.1 [INFO] [stderr] Checking sc-peerset v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/fuzz.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use rand::distributions::{Distribution, Uniform, WeightedIndex}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/fuzz.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/fuzz.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | bootnodes: (0 .. Uniform::new_inclusive(0, 4).sample(&mut rng)).map(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | let nodes = (0 .. Uniform::new_inclusive(0, 2).sample(&mut rng)).map(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | reserved_only: Uniform::new_inclusive(0, 10).sample(&mut rng) == 0, [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | in_peers: Uniform::new_inclusive(0, 25).sample(&mut rng), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | out_peers: Uniform::new_inclusive(0, 25).sample(&mut rng), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> tests/fuzz.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | match WeightedIndex::new(&action_weights).unwrap().sample(&mut rng) { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Uniform` [INFO] [stdout] --> tests/fuzz.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | let val = Uniform::new_inclusive(i32::min_value(), i32::max_value()).sample(&mut rng); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Uniform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, PeerId>` in the current scope [INFO] [stdout] --> tests/fuzz.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | 2 => if let Some(id) = known_nodes.iter().choose(&mut rng) { [INFO] [stdout] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, PeerId>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Box>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 19 | use rand::seq::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, PeerId>` in the current scope [INFO] [stdout] --> tests/fuzz.rs:109:51 [INFO] [stdout] | [INFO] [stdout] 109 | 3 => if let Some(id) = connected_nodes.iter().choose(&mut rng).cloned() { [INFO] [stdout] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, PeerId>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Box>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 19 | use rand::seq::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::iter::Filter, [closure@tests/fuzz.rs:116:14: 116:91]>` in the current scope [INFO] [stdout] --> tests/fuzz.rs:117:7 [INFO] [stdout] | [INFO] [stdout] 117 | .choose(&mut rng) { [INFO] [stdout] | ^^^^^^ method not found in `std::iter::Filter, [closure@tests/fuzz.rs:116:14: 116:91]>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Box, [closure@tests/fuzz.rs:116:14: 116:91]>>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 19 | use rand::seq::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::iter::Filter, [closure@tests/fuzz.rs:128:54: 128:86]>` in the current scope [INFO] [stdout] --> tests/fuzz.rs:128:88 [INFO] [stdout] | [INFO] [stdout] 128 | 7 => if let Some(id) = known_nodes.iter().filter(|n| !reserved_nodes.contains(*n)).choose(&mut rng) { [INFO] [stdout] | ^^^^^^ method not found in `std::iter::Filter, [closure@tests/fuzz.rs:128:54: 128:86]>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Box, [closure@tests/fuzz.rs:128:54: 128:86]>>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 19 | use rand::seq::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::collections::hash_set::Iter<'_, PeerId>` in the current scope [INFO] [stdout] --> tests/fuzz.rs:132:50 [INFO] [stdout] | [INFO] [stdout] 132 | 8 => if let Some(id) = reserved_nodes.iter().choose(&mut rng).cloned() { [INFO] [stdout] | ^^^^^^ method not found in `std::collections::hash_set::Iter<'_, PeerId>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Box>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 19 | use rand::seq::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sc-peerset` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "4e5eaa54349aef73fc656ec2c35e77d8a6a88ebccc6122dd46d9e9f22a751a2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e5eaa54349aef73fc656ec2c35e77d8a6a88ebccc6122dd46d9e9f22a751a2f", kill_on_drop: false }` [INFO] [stdout] 4e5eaa54349aef73fc656ec2c35e77d8a6a88ebccc6122dd46d9e9f22a751a2f