[INFO] fetching crate pallet-plasm-rewards 1.3.0... [INFO] checking pallet-plasm-rewards-1.3.0 against master#6526e5c772f2da07db745c94ca6bb0a591a39ba4 for pr-80920 [INFO] extracting crate pallet-plasm-rewards 1.3.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate pallet-plasm-rewards 1.3.0 on toolchain 6526e5c772f2da07db745c94ca6bb0a591a39ba4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6526e5c772f2da07db745c94ca6bb0a591a39ba4" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate pallet-plasm-rewards 1.3.0 [INFO] finished tweaking crates.io crate pallet-plasm-rewards 1.3.0 [INFO] tweaked toml for crates.io crate pallet-plasm-rewards 1.3.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6526e5c772f2da07db745c94ca6bb0a591a39ba4" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6526e5c772f2da07db745c94ca6bb0a591a39ba4" "fetch" "--locked" "--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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+6526e5c772f2da07db745c94ca6bb0a591a39ba4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b32416a77e9937e4687329e6ff51aef9424333578dd9ffe033451ecdd7287b7 [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" "9b32416a77e9937e4687329e6ff51aef9424333578dd9ffe033451ecdd7287b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b32416a77e9937e4687329e6ff51aef9424333578dd9ffe033451ecdd7287b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b32416a77e9937e4687329e6ff51aef9424333578dd9ffe033451ecdd7287b7", kill_on_drop: false }` [INFO] [stdout] 9b32416a77e9937e4687329e6ff51aef9424333578dd9ffe033451ecdd7287b7 [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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+6526e5c772f2da07db745c94ca6bb0a591a39ba4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d0cc3f451f825fefe7f4a9f193d6d0626247e0ef9d6e027818c80964ffd0254 [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" "3d0cc3f451f825fefe7f4a9f193d6d0626247e0ef9d6e027818c80964ffd0254", kill_on_drop: false }` [INFO] [stderr] Checking safe-mix v1.0.1 [INFO] [stderr] Compiling hex-literal-impl v0.2.2 [INFO] [stderr] Compiling sp-npos-elections-compact v2.0.1 [INFO] [stderr] Checking sp-core v2.0.1 [INFO] [stderr] Checking hex-literal v0.2.1 [INFO] [stderr] Checking sp-npos-elections v2.0.1 [INFO] [stderr] Checking sp-trie v2.0.1 [INFO] [stderr] Checking sp-inherents v2.0.1 [INFO] [stderr] Checking frame-metadata v12.0.1 [INFO] [stderr] Checking sp-state-machine v0.8.1 [INFO] [stderr] Checking sp-io v2.0.1 [INFO] [stderr] Checking sp-application-crypto v2.0.1 [INFO] [stderr] Checking sp-runtime v2.0.1 [INFO] [stderr] Checking sp-version v2.0.1 [INFO] [stderr] Checking frame-support v2.0.1 [INFO] [stderr] Checking sp-staking v2.0.1 [INFO] [stderr] Checking sp-authorship v2.0.1 [INFO] [stderr] Checking sp-api v2.0.1 [INFO] [stderr] Checking sp-timestamp v2.0.1 [INFO] [stderr] Checking sp-session v2.0.1 [INFO] [stderr] Checking frame-system v2.0.1 [INFO] [stderr] Checking frame-benchmarking v2.0.1 [INFO] [stderr] Checking pallet-authorship v2.0.1 [INFO] [stderr] Checking pallet-randomness-collective-flip v2.0.1 [INFO] [stderr] Checking pallet-timestamp v2.0.1 [INFO] [stderr] Checking pallet-balances v2.0.1 [INFO] [stderr] Checking pallet-session v2.0.1 [INFO] [stderr] Checking pallet-staking v2.0.1 [INFO] [stderr] Checking pallet-plasm-rewards v1.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0437]: type `ModuleToIndex` is not a member of trait `frame_system::Trait` [INFO] [stdout] --> src/mock.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | type ModuleToIndex = (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `frame_system::Trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as system` [INFO] [stdout] --> src/lib.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | use frame_system::{self as system, ensure_root}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as system` [INFO] [stdout] --> src/lib.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | use frame_system::{self as system, ensure_root}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `PalletInfo`, `SystemWeightInfo` [INFO] [stdout] --> src/mock.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | impl frame_system::Trait for Test { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `PalletInfo`, `SystemWeightInfo` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type PalletInfo = Type;` [INFO] [stdout] = help: implement the missing item: `type SystemWeightInfo = Type;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `WeightInfo` [INFO] [stdout] --> src/mock.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | impl pallet_timestamp::Trait for Test { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `WeightInfo` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type WeightInfo = Type;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `WeightInfo` [INFO] [stdout] --> src/mock.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 125 | impl pallet_session::Trait for Test { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `WeightInfo` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type WeightInfo = Type;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `WeightInfo`, `MaxLocks` [INFO] [stdout] --> src/mock.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | impl pallet_balances::Trait for Test { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `WeightInfo`, `MaxLocks` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type WeightInfo = Type;` [INFO] [stdout] = help: implement the missing item: `type MaxLocks = Type;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Currency as Currency<::AccountId>>::Balance: From` is not satisfied [INFO] [stdout] --> src/traits.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | 0.into() [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `<::Currency as Currency<::AccountId>>::Balance` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into<<::Currency as Currency<::AccountId>>::Balance>` for `i32` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 16 | fn compute(_era: &EraIndex) -> BalanceOf where <::Currency as Currency<::AccountId>>::Balance: From { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Currency as Currency<::AccountId>>::Balance: From` is not satisfied [INFO] [stdout] --> src/traits.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | 0.into() [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `<::Currency as Currency<::AccountId>>::Balance` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Into<<::Currency as Currency<::AccountId>>::Balance>` for `i32` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 16 | fn compute(_era: &EraIndex) -> BalanceOf where <::Currency as Currency<::AccountId>>::Balance: From { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pallet-plasm-rewards` [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] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0437. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3d0cc3f451f825fefe7f4a9f193d6d0626247e0ef9d6e027818c80964ffd0254", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d0cc3f451f825fefe7f4a9f193d6d0626247e0ef9d6e027818c80964ffd0254", kill_on_drop: false }` [INFO] [stdout] 3d0cc3f451f825fefe7f4a9f193d6d0626247e0ef9d6e027818c80964ffd0254