[INFO] crate sc-peerset 2.0.0-alpha.6 is already in cache [INFO] checking sc-peerset-2.0.0-alpha.6 against master#bd0bacc694d7d8175804bb6f690cb846bfa4a9ee for pr-71665 [INFO] extracting crate sc-peerset 2.0.0-alpha.6 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate sc-peerset 2.0.0-alpha.6 on toolchain bd0bacc694d7d8175804bb6f690cb846bfa4a9ee [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate sc-peerset 2.0.0-alpha.6 [INFO] finished tweaking crates.io crate sc-peerset 2.0.0-alpha.6 [INFO] tweaked toml for crates.io crate sc-peerset 2.0.0-alpha.6 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"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" "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" "+bd0bacc694d7d8175804bb6f690cb846bfa4a9ee" "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] 1b367eb83eafae59cfc7dbff749b35c07f0f512bb455fa5d33e7eadc475251e9 [INFO] running `"docker" "start" "-a" "1b367eb83eafae59cfc7dbff749b35c07f0f512bb455fa5d33e7eadc475251e9"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling protobuf v2.14.0 [INFO] [stderr] Compiling prometheus v0.8.0 [INFO] [stderr] Compiling ring v0.16.13 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking parity-multiaddr v0.8.0 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Compiling prost-build v0.6.1 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Compiling libp2p-core v0.18.0 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking rw-stream-sink v0.2.1 [INFO] [stderr] Checking multistream-select v0.8.0 [INFO] [stderr] Checking wasm-timer v0.2.4 [INFO] [stderr] Checking sp-utils v2.0.0-alpha.7 [INFO] [stderr] Checking libp2p-swarm v0.18.1 [INFO] [stderr] Checking libp2p v0.18.1 [INFO] [stderr] Checking sc-peerset v2.0.0-alpha.6 (/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:47:21 [INFO] [stderr] | [INFO] [stderr] 47 | let list = (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:55:18 [INFO] [stderr] | [INFO] [stderr] 55 | 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:56:13 [INFO] [stderr] | [INFO] [stderr] 56 | 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:57:14 [INFO] [stderr] | [INFO] [stderr] 57 | 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:75:10 [INFO] [stderr] | [INFO] [stderr] 75 | 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:102:16 [INFO] [stderr] | [INFO] [stderr] 102 | 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:101:47 [INFO] [stderr] | [INFO] [stderr] 101 | 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] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stderr] | [INFO] [stderr] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stderr] | ------ [INFO] [stderr] | | [INFO] [stderr] | the method is available for `std::boxed::Box>` here [INFO] [stderr] | the method is available for `std::sync::Arc>` here [INFO] [stderr] | the method is available for `std::rc::Rc>` here [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:107:51 [INFO] [stderr] | [INFO] [stderr] 107 | 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] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stderr] | [INFO] [stderr] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stderr] | ------ [INFO] [stderr] | | [INFO] [stderr] | the method is available for `std::boxed::Box>` here [INFO] [stderr] | the method is available for `std::sync::Arc>` here [INFO] [stderr] | the method is available for `std::rc::Rc>` here [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:114:14: 114:91 incoming_nodes:_, connected_nodes:_]>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:115:7 [INFO] [stderr] | [INFO] [stderr] 115 | .choose(&mut rng) { [INFO] [stderr] | ^^^^^^ method not found in `std::iter::Filter, [closure@tests/fuzz.rs:114:14: 114:91 incoming_nodes:_, connected_nodes:_]>` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stderr] | [INFO] [stderr] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stderr] | ------ [INFO] [stderr] | | [INFO] [stderr] | the method is available for `std::boxed::Box, [closure@tests/fuzz.rs:114:14: 114:91 incoming_nodes:_, connected_nodes:_]>>` here [INFO] [stderr] | the method is available for `std::sync::Arc, [closure@tests/fuzz.rs:114:14: 114:91 incoming_nodes:_, connected_nodes:_]>>` here [INFO] [stderr] | the method is available for `std::rc::Rc, [closure@tests/fuzz.rs:114:14: 114:91 incoming_nodes:_, connected_nodes:_]>>` here [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:126:54: 126:86 reserved_nodes:_]>` in the current scope [INFO] [stderr] --> tests/fuzz.rs:126:88 [INFO] [stderr] | [INFO] [stderr] 126 | 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:126:54: 126:86 reserved_nodes:_]>` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stderr] | [INFO] [stderr] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stderr] | ------ [INFO] [stderr] | | [INFO] [stderr] | the method is available for `std::boxed::Box, [closure@tests/fuzz.rs:126:54: 126:86 reserved_nodes:_]>>` here [INFO] [stderr] | the method is available for `std::sync::Arc, [closure@tests/fuzz.rs:126:54: 126:86 reserved_nodes:_]>>` here [INFO] [stderr] | the method is available for `std::rc::Rc, [closure@tests/fuzz.rs:126:54: 126:86 reserved_nodes:_]>>` here [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:130:50 [INFO] [stderr] | [INFO] [stderr] 130 | 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] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/seq/mod.rs:255:8 [INFO] [stderr] | [INFO] [stderr] 255 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stderr] | ------ [INFO] [stderr] | | [INFO] [stderr] | the method is available for `std::boxed::Box>` here [INFO] [stderr] | the method is available for `std::sync::Arc>` here [INFO] [stderr] | the method is available for `std::rc::Rc>` here [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" "1b367eb83eafae59cfc7dbff749b35c07f0f512bb455fa5d33e7eadc475251e9"` [INFO] running `"docker" "rm" "-f" "1b367eb83eafae59cfc7dbff749b35c07f0f512bb455fa5d33e7eadc475251e9"` [INFO] [stdout] 1b367eb83eafae59cfc7dbff749b35c07f0f512bb455fa5d33e7eadc475251e9