[INFO] fetching crate sp-npos-elections 3.0.0... [INFO] testing sp-npos-elections-3.0.0 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate sp-npos-elections 3.0.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate sp-npos-elections 3.0.0 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "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-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fa97986e78a5693394d580cbbfe036dee235bef8538b9e444606cef7a81294f [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" "5fa97986e78a5693394d580cbbfe036dee235bef8538b9e444606cef7a81294f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fa97986e78a5693394d580cbbfe036dee235bef8538b9e444606cef7a81294f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fa97986e78a5693394d580cbbfe036dee235bef8538b9e444606cef7a81294f", kill_on_drop: false }` [INFO] [stdout] 5fa97986e78a5693394d580cbbfe036dee235bef8538b9e444606cef7a81294f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afc00fc98cec306cbe141ade7ed7e0d60efe783c48edb5fa92f277f047c1d8ee [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" "afc00fc98cec306cbe141ade7ed7e0d60efe783c48edb5fa92f277f047c1d8ee", kill_on_drop: false }` [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] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling byte-slice-cast v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling sp-std v3.0.0 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling parity-wasm v0.41.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling memory_units v0.3.0 [INFO] [stderr] Compiling parity-util-mem v0.9.0 [INFO] [stderr] Compiling environmental v1.1.3 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.3 [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] Compiling uint v0.9.1 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling integer-sqrt v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wasmi-validation v0.3.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling twox-hash v1.6.1 [INFO] [stderr] Compiling libsecp256k1 v0.3.5 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling wasmi v0.6.2 [INFO] [stderr] Compiling Inflector v0.11.4 [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 sp-debug-derive v3.0.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling dyn-clonable-impl v0.9.0 [INFO] [stderr] Compiling parity-util-mem-derive v0.1.0 [INFO] [stderr] Compiling dyn-clonable v0.9.0 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling merlin v2.0.1 [INFO] [stderr] Compiling curve25519-dalek v2.1.3 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling secrecy v0.7.0 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tiny-bip39 v0.8.2 [INFO] [stderr] Compiling futures-executor v0.3.18 [INFO] [stderr] Compiling futures v0.3.18 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling tracing-serde v0.1.2 [INFO] [stderr] Compiling schnorrkel v0.9.1 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling substrate-bip39 v0.4.4 [INFO] [stderr] Compiling 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] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling impl-codec v0.5.1 [INFO] [stderr] Compiling sp-storage v3.0.0 [INFO] [stderr] Compiling sp-wasm-interface v3.0.0 [INFO] [stderr] Compiling sp-tracing v3.0.0 [INFO] [stderr] Compiling sp-arithmetic v3.0.0 [INFO] [stderr] Compiling primitive-types v0.9.1 [INFO] [stderr] Compiling sp-externalities v0.9.0 [INFO] [stderr] Compiling sp-runtime-interface v3.0.0 [INFO] [stderr] Compiling sp-core v3.0.0 [INFO] [stderr] Compiling sp-npos-elections v3.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "afc00fc98cec306cbe141ade7ed7e0d60efe783c48edb5fa92f277f047c1d8ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afc00fc98cec306cbe141ade7ed7e0d60efe783c48edb5fa92f277f047c1d8ee", kill_on_drop: false }` [INFO] [stdout] afc00fc98cec306cbe141ade7ed7e0d60efe783c48edb5fa92f277f047c1d8ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--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] 65ba6f16ea3ed0a9443e2d2c8b5f601ef5d37cf6ac6f866e40112c3b692bc00a [INFO] running `Command { std: "docker" "start" "-a" "65ba6f16ea3ed0a9443e2d2c8b5f601ef5d37cf6ac6f866e40112c3b692bc00a", kill_on_drop: false }` [INFO] [stderr] Compiling 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" "65ba6f16ea3ed0a9443e2d2c8b5f601ef5d37cf6ac6f866e40112c3b692bc00a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65ba6f16ea3ed0a9443e2d2c8b5f601ef5d37cf6ac6f866e40112c3b692bc00a", kill_on_drop: false }` [INFO] [stdout] 65ba6f16ea3ed0a9443e2d2c8b5f601ef5d37cf6ac6f866e40112c3b692bc00a