[INFO] fetching crate sp-npos-elections 3.0.0... [INFO] checking sp-npos-elections-3.0.0 against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] extracting crate sp-npos-elections 3.0.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate sp-npos-elections 3.0.0 on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sp-npos-elections 3.0.0 [INFO] finished tweaking crates.io crate sp-npos-elections 3.0.0 [INFO] tweaked toml for crates.io crate sp-npos-elections 3.0.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", 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] 7b71f4ad3e5912e0670fc4d69599fde0594b469c4b3b8c28d3f721af7cf30e17 [INFO] running `Command { std: "docker" "start" "-a" "7b71f4ad3e5912e0670fc4d69599fde0594b469c4b3b8c28d3f721af7cf30e17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b71f4ad3e5912e0670fc4d69599fde0594b469c4b3b8c28d3f721af7cf30e17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b71f4ad3e5912e0670fc4d69599fde0594b469c4b3b8c28d3f721af7cf30e17", kill_on_drop: false }` [INFO] [stdout] 7b71f4ad3e5912e0670fc4d69599fde0594b469c4b3b8c28d3f721af7cf30e17 [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "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] 78d8d4ac4b2205bcbd21b6a7f014eee7efa2aafa1edc87e755b2c2f655403dc3 [INFO] running `Command { std: "docker" "start" "-a" "78d8d4ac4b2205bcbd21b6a7f014eee7efa2aafa1edc87e755b2c2f655403dc3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking byte-slice-cast v1.2.0 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking sp-std v3.0.0 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Checking parity-wasm v0.41.0 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking futures-io v0.3.18 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking memory_units v0.3.0 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking environmental v1.1.3 [INFO] [stderr] Compiling parity-util-mem v0.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking signature v1.4.0 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking dyn-clone v1.0.4 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking hash-db v0.15.2 [INFO] [stderr] Checking base58 v0.1.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking ed25519 v1.3.0 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking uint v0.9.1 [INFO] [stderr] Checking hash256-std-hasher v0.15.2 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking wasmi-validation v0.3.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking blake2-rfc v0.2.18 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking integer-sqrt v0.1.5 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking pbkdf2 v0.8.0 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking twox-hash v1.6.1 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking wasmi v0.6.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.1 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling sp-debug-derive v3.0.0 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling parity-util-mem-derive v0.1.0 [INFO] [stderr] Compiling dyn-clonable-impl v0.9.0 [INFO] [stderr] Checking dyn-clonable v0.9.0 [INFO] [stderr] Checking zeroize v1.4.3 [INFO] [stderr] Checking curve25519-dalek v2.1.3 [INFO] [stderr] Checking merlin v2.0.1 [INFO] [stderr] Checking curve25519-dalek v3.2.0 [INFO] [stderr] Checking secrecy v0.7.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking futures-executor v0.3.18 [INFO] [stderr] Checking futures v0.3.18 [INFO] [stderr] Checking impl-serde v0.3.2 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking schnorrkel v0.9.1 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking substrate-bip39 v0.4.4 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling sp-runtime-interface-proc-macro v3.0.0 [INFO] [stderr] Compiling sp-npos-elections-compact v3.0.0 [INFO] [stderr] Checking parity-scale-codec v2.3.1 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking sp-storage v3.0.0 [INFO] [stderr] Checking sp-tracing v3.0.0 [INFO] [stderr] Checking sp-wasm-interface v3.0.0 [INFO] [stderr] Checking sp-arithmetic v3.0.0 [INFO] [stderr] Checking primitive-types v0.9.1 [INFO] [stderr] Checking sp-externalities v0.9.0 [INFO] [stderr] Checking sp-runtime-interface v3.0.0 [INFO] [stderr] Checking sp-core v3.0.0 [INFO] [stderr] Checking sp-npos-elections v3.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `sp_runtime` [INFO] [stdout] --> src/mock.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use sp_runtime::assert_eq_error_rate; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `sp_runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `substrate_test_utils` [INFO] [stdout] --> src/tests.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use substrate_test_utils::assert_eq_uvec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `substrate_test_utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sp_runtime` [INFO] [stdout] --> src/phragmms.rs:227:6 [INFO] [stdout] | [INFO] [stdout] 227 | use sp_runtime::{Perbill, Percent}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `sp_runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:753:2 [INFO] [stdout] | [INFO] [stdout] 753 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:722:2 [INFO] [stdout] | [INFO] [stdout] 722 | assert_eq_uvec!(winners, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:645:2 [INFO] [stdout] | [INFO] [stdout] 645 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:643:2 [INFO] [stdout] | [INFO] [stdout] 643 | assert_eq_uvec!(winners, vec![(2, 500000000005000000u128), (4, 500000000003000000)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:617:2 [INFO] [stdout] | [INFO] [stdout] 617 | assert_eq_uvec!(to_without_backing(winners.clone()), vec![24, 22]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:582:2 [INFO] [stdout] | [INFO] [stdout] 582 | assert_eq_uvec!(winners, vec![(20, 2), (10, 1), (30, 1)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:551:2 [INFO] [stdout] | [INFO] [stdout] 551 | assert_eq_uvec!(winners, vec![(20, 2), (10, 1), (30, 1)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:506:2 [INFO] [stdout] | [INFO] [stdout] 506 | assert_eq_uvec!(winners, vec![(2, 36893488147419103226u128), (1, 36893488147419103219u128)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:476:2 [INFO] [stdout] | [INFO] [stdout] 476 | assert_eq_uvec!(winners, vec![(1, 18446744073709551614u128), (5, 18446744073709551613u128)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:378:2 [INFO] [stdout] | [INFO] [stdout] 378 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:353:2 [INFO] [stdout] | [INFO] [stdout] 353 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:352:2 [INFO] [stdout] | [INFO] [stdout] 352 | assert_eq_uvec!(winners, vec![(2, 30), (3, 30)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:304:2 [INFO] [stdout] | [INFO] [stdout] 304 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:279:2 [INFO] [stdout] | [INFO] [stdout] 279 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:278:2 [INFO] [stdout] | [INFO] [stdout] 278 | assert_eq_uvec!(winners, vec![(2, 25), (3, 35)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:42:2 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq_uvec!( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_uvec` [INFO] [stdout] --> src/tests.rs:41:2 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq_uvec!(winners, vec![(2, 40), (3, 50)]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_error_rate` [INFO] [stdout] --> src/mock.rs:347:6 [INFO] [stdout] | [INFO] [stdout] 347 | assert_eq_error_rate!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/mock.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | traits::{One, SaturatedConversion, Zero}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed for `std::vec::Vec<{integer}>` [INFO] [stdout] --> src/phragmms.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 333 | let candidates = vec![1, 2, 3]; [INFO] [stdout] | ---------- consider giving `candidates` the explicit type `std::vec::Vec<{integer}>`, where the type parameter `{integer}` is specified [INFO] [stdout] ... [INFO] [stdout] 340 | let ElectionResult { winners, assignments } = phragmms::<_, Perbill>(2, candidates, voters, Some((2, 0))).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: Decode` found in the `parity_scale_codec` crate: [INFO] [stdout] - impl Decode for i128; [INFO] [stdout] - impl Decode for i16; [INFO] [stdout] - impl Decode for i32; [INFO] [stdout] - impl Decode for i64; [INFO] [stdout] and 6 more [INFO] [stdout] = note: required because of the requirements on the impl of `Codec` for `{integer}` [INFO] [stdout] note: required because of the requirements on the impl of `IdentifierT` for `{integer}` [INFO] [stdout] --> src/lib.rs:226:60 [INFO] [stdout] | [INFO] [stdout] 226 | impl IdentifierT for T {} [INFO] [stdout] | ^^^^^^^^^^^ ^ [INFO] [stdout] note: required by a bound in `phragmms::phragmms` [INFO] [stdout] --> src/phragmms.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn phragmms( [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `phragmms::phragmms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed for `std::vec::Vec<{integer}>` [INFO] [stdout] --> src/phragmms.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 333 | let candidates = vec![1, 2, 3]; [INFO] [stdout] | ---------- consider giving `candidates` the explicit type `std::vec::Vec<{integer}>`, where the type parameter `{integer}` is specified [INFO] [stdout] ... [INFO] [stdout] 340 | let ElectionResult { winners, assignments } = phragmms::<_, Perbill>(2, candidates, voters, Some((2, 0))).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: Encode` found in the `parity_scale_codec` crate: [INFO] [stdout] - impl Encode for i128; [INFO] [stdout] - impl Encode for i16; [INFO] [stdout] - impl Encode for i32; [INFO] [stdout] - impl Encode for i64; [INFO] [stdout] and 6 more [INFO] [stdout] = note: required because of the requirements on the impl of `Codec` for `{integer}` [INFO] [stdout] note: required because of the requirements on the impl of `IdentifierT` for `{integer}` [INFO] [stdout] --> src/lib.rs:226:60 [INFO] [stdout] | [INFO] [stdout] 226 | impl IdentifierT for T {} [INFO] [stdout] | ^^^^^^^^^^^ ^ [INFO] [stdout] note: required by a bound in `phragmms::phragmms` [INFO] [stdout] --> src/phragmms.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn phragmms( [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `phragmms::phragmms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed for `std::vec::Vec<{integer}>` [INFO] [stdout] --> src/phragmms.rs:377:52 [INFO] [stdout] | [INFO] [stdout] 366 | let candidates = vec![11, 21, 31, 41, 51, 61, 71]; [INFO] [stdout] | ---------- consider giving `candidates` the explicit type `std::vec::Vec<{integer}>`, where the type parameter `{integer}` is specified [INFO] [stdout] ... [INFO] [stdout] 377 | let ElectionResult { winners, assignments: _ } = phragmms::<_, Perbill>(4, candidates, voters, Some((2, 0))).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: Decode` found in the `parity_scale_codec` crate: [INFO] [stdout] - impl Decode for i128; [INFO] [stdout] - impl Decode for i16; [INFO] [stdout] - impl Decode for i32; [INFO] [stdout] - impl Decode for i64; [INFO] [stdout] and 6 more [INFO] [stdout] = note: required because of the requirements on the impl of `Codec` for `{integer}` [INFO] [stdout] note: required because of the requirements on the impl of `IdentifierT` for `{integer}` [INFO] [stdout] --> src/lib.rs:226:60 [INFO] [stdout] | [INFO] [stdout] 226 | impl IdentifierT for T {} [INFO] [stdout] | ^^^^^^^^^^^ ^ [INFO] [stdout] note: required by a bound in `phragmms::phragmms` [INFO] [stdout] --> src/phragmms.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn phragmms( [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `phragmms::phragmms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed for `std::vec::Vec<{integer}>` [INFO] [stdout] --> src/phragmms.rs:377:52 [INFO] [stdout] | [INFO] [stdout] 366 | let candidates = vec![11, 21, 31, 41, 51, 61, 71]; [INFO] [stdout] | ---------- consider giving `candidates` the explicit type `std::vec::Vec<{integer}>`, where the type parameter `{integer}` is specified [INFO] [stdout] ... [INFO] [stdout] 377 | let ElectionResult { winners, assignments: _ } = phragmms::<_, Perbill>(4, candidates, voters, Some((2, 0))).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: Encode` found in the `parity_scale_codec` crate: [INFO] [stdout] - impl Encode for i128; [INFO] [stdout] - impl Encode for i16; [INFO] [stdout] - impl Encode for i32; [INFO] [stdout] - impl Encode for i64; [INFO] [stdout] and 6 more [INFO] [stdout] = note: required because of the requirements on the impl of `Codec` for `{integer}` [INFO] [stdout] note: required because of the requirements on the impl of `IdentifierT` for `{integer}` [INFO] [stdout] --> src/lib.rs:226:60 [INFO] [stdout] | [INFO] [stdout] 226 | impl IdentifierT for T {} [INFO] [stdout] | ^^^^^^^^^^^ ^ [INFO] [stdout] note: required by a bound in `phragmms::phragmms` [INFO] [stdout] --> src/phragmms.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn phragmms( [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `phragmms::phragmms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sp-npos-elections` due to 26 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "78d8d4ac4b2205bcbd21b6a7f014eee7efa2aafa1edc87e755b2c2f655403dc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78d8d4ac4b2205bcbd21b6a7f014eee7efa2aafa1edc87e755b2c2f655403dc3", kill_on_drop: false }` [INFO] [stdout] 78d8d4ac4b2205bcbd21b6a7f014eee7efa2aafa1edc87e755b2c2f655403dc3