[INFO] fetching crate sp-npos-elections 2.0.0-rc5... [INFO] checking sp-npos-elections-2.0.0-rc5 against try#353a0a223066e9f46a1d935f2271a26c3c5002bb for pr-75180 [INFO] extracting crate sp-npos-elections 2.0.0-rc5 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate sp-npos-elections 2.0.0-rc5 on toolchain 353a0a223066e9f46a1d935f2271a26c3c5002bb [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+353a0a223066e9f46a1d935f2271a26c3c5002bb" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sp-npos-elections 2.0.0-rc5 [INFO] finished tweaking crates.io crate sp-npos-elections 2.0.0-rc5 [INFO] tweaked toml for crates.io crate sp-npos-elections 2.0.0-rc5 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+353a0a223066e9f46a1d935f2271a26c3c5002bb" "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" "+353a0a223066e9f46a1d935f2271a26c3c5002bb" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+353a0a223066e9f46a1d935f2271a26c3c5002bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e29594f0d91233e430939d092a5db0f7b71a39a40b27e9b8ef4fe337aefe7fef [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" "e29594f0d91233e430939d092a5db0f7b71a39a40b27e9b8ef4fe337aefe7fef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e29594f0d91233e430939d092a5db0f7b71a39a40b27e9b8ef4fe337aefe7fef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e29594f0d91233e430939d092a5db0f7b71a39a40b27e9b8ef4fe337aefe7fef", kill_on_drop: false }` [INFO] [stdout] e29594f0d91233e430939d092a5db0f7b71a39a40b27e9b8ef4fe337aefe7fef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+353a0a223066e9f46a1d935f2271a26c3c5002bb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1d84dd457b13c5afaf1beac9dc205194e6995706caf79650c639c294468f76e [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" "c1d84dd457b13c5afaf1beac9dc205194e6995706caf79650c639c294468f76e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking either v1.6.0 [INFO] [stderr] Checking radium v0.3.0 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Checking byte-slice-cast v0.3.5 [INFO] [stderr] Checking sp-std v2.0.0-rc6 [INFO] [stderr] Checking bitvec v0.17.4 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling sp-debug-derive v2.0.0-rc6 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling parity-scale-codec-derive v1.2.1 [INFO] [stderr] Compiling sp-npos-elections-compact v2.0.0-rc6 [INFO] [stderr] Checking parity-scale-codec v1.3.4 [INFO] [stderr] Checking sp-arithmetic v2.0.0-rc6 [INFO] [stderr] Checking sp-npos-elections v2.0.0-rc5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `sp_npos_elections_compact::generate_compact_solution_type` [INFO] [stdout] --> src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub use sp_npos_elections_compact::generate_compact_solution_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `generate_solution_type` [INFO] [stdout] | no `generate_compact_solution_type` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sp_npos_elections_compact::generate_compact_solution_type` [INFO] [stdout] --> src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub use sp_npos_elections_compact::generate_compact_solution_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `generate_solution_type` [INFO] [stdout] | no `generate_compact_solution_type` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sp_runtime` [INFO] [stdout] --> src/mock.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use sp_runtime::assert_eq_error_rate; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `sp_runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `substrate_test_utils` [INFO] [stdout] --> src/tests.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use substrate_test_utils::assert_eq_uvec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `substrate_test_utils` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `assert_eq_error_rate` [INFO] [stdout] --> src/mock.rs:317:3 [INFO] [stdout] | [INFO] [stdout] 317 | assert_eq_error_rate!(sum, T::ACCURACY.saturated_into(), 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_error_rate` [INFO] [stdout] --> src/mock.rs:351:6 [INFO] [stdout] | [INFO] [stdout] 351 | 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] 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_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:91:2 [INFO] [stdout] | [INFO] [stdout] 91 | 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_uvec` [INFO] [stdout] --> src/tests.rs:92:2 [INFO] [stdout] | [INFO] [stdout] 92 | 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:117:2 [INFO] [stdout] | [INFO] [stdout] 117 | 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:154:2 [INFO] [stdout] | [INFO] [stdout] 154 | 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:251:2 [INFO] [stdout] | [INFO] [stdout] 251 | 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:281:2 [INFO] [stdout] | [INFO] [stdout] 281 | 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:324:2 [INFO] [stdout] | [INFO] [stdout] 324 | 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:354:2 [INFO] [stdout] | [INFO] [stdout] 354 | 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:387:2 [INFO] [stdout] | [INFO] [stdout] 387 | assert_eq_uvec!(winners, vec![(24, 1490000000000200000u128), (22, 1490000000000100000u128)]); [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:413:2 [INFO] [stdout] | [INFO] [stdout] 413 | assert_eq_uvec!(winners, vec![(2, 1000000000004000000u128), (4, 1000000000004000000u128)]); [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:490:2 [INFO] [stdout] | [INFO] [stdout] 490 | 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 `generate_compact_solution_type` [INFO] [stdout] --> src/tests.rs:936:2 [INFO] [stdout] | [INFO] [stdout] 936 | generate_compact_solution_type!(TestCompact, 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:940:17 [INFO] [stdout] | [INFO] [stdout] 940 | let compact = TestCompact::<_, _, _> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1026:20 [INFO] [stdout] | [INFO] [stdout] 1026 | let compacted = >::from_assignment( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1041:4 [INFO] [stdout] | [INFO] [stdout] 1041 | TestCompact { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1131:20 [INFO] [stdout] | [INFO] [stdout] 1131 | let compacted = >::from_staked( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1144:4 [INFO] [stdout] | [INFO] [stdout] 1144 | TestCompact { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1175:17 [INFO] [stdout] | [INFO] [stdout] 1175 | let compact = TestCompact:: { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1190:17 [INFO] [stdout] | [INFO] [stdout] 1190 | let compact = TestCompact:: { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1203:17 [INFO] [stdout] | [INFO] [stdout] 1203 | let compact = TestCompact:: { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1220:17 [INFO] [stdout] | [INFO] [stdout] 1220 | let compact = TestCompact:: { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1234:17 [INFO] [stdout] | [INFO] [stdout] 1234 | let compact = TestCompact:: { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1258:20 [INFO] [stdout] | [INFO] [stdout] 1258 | let compacted = >::from_staked( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1273:20 [INFO] [stdout] | [INFO] [stdout] 1273 | let compacted = >::from_staked( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1291:20 [INFO] [stdout] | [INFO] [stdout] 1291 | let compacted = >::from_assignment( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1326:20 [INFO] [stdout] | [INFO] [stdout] 1326 | let compacted = >::from_staked( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestCompact` in this scope [INFO] [stdout] --> src/tests.rs:1334:4 [INFO] [stdout] | [INFO] [stdout] 1334 | TestCompact { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/mock.rs:23:67 [INFO] [stdout] | [INFO] [stdout] 23 | use sp_arithmetic::{PerThing, traits::{SaturatedConversion, Zero, One}}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sp-npos-elections`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Encode` [INFO] [stdout] --> src/tests.rs:924:22 [INFO] [stdout] | [INFO] [stdout] 924 | use codec::{Decode, Encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c1d84dd457b13c5afaf1beac9dc205194e6995706caf79650c639c294468f76e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1d84dd457b13c5afaf1beac9dc205194e6995706caf79650c639c294468f76e", kill_on_drop: false }` [INFO] [stdout] c1d84dd457b13c5afaf1beac9dc205194e6995706caf79650c639c294468f76e