[INFO] crate sp-api 2.0.0-rc4 is already in cache [INFO] testing sp-api-2.0.0-rc4 against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] extracting crate sp-api 2.0.0-rc4 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate sp-api 2.0.0-rc4 on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sp-api 2.0.0-rc4 [INFO] finished tweaking crates.io crate sp-api 2.0.0-rc4 [INFO] tweaked toml for crates.io crate sp-api 2.0.0-rc4 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "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] f9985fe1e701e713e5129211d02e2937f75d56560ed4bb3d28f1cb06d610eb13 [INFO] running `Command { std: "docker" "start" "-a" "f9985fe1e701e713e5129211d02e2937f75d56560ed4bb3d28f1cb06d610eb13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9985fe1e701e713e5129211d02e2937f75d56560ed4bb3d28f1cb06d610eb13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9985fe1e701e713e5129211d02e2937f75d56560ed4bb3d28f1cb06d610eb13", kill_on_drop: false }` [INFO] [stdout] f9985fe1e701e713e5129211d02e2937f75d56560ed4bb3d28f1cb06d610eb13 [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" "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@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7539ea37ea5257c6ffe79aa66271e6e5589caee05c1eb965f3f8b3140d284740 [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" "7539ea37ea5257c6ffe79aa66271e6e5589caee05c1eb965f3f8b3140d284740", kill_on_drop: false }` [INFO] [stderr] Compiling sp-api-proc-macro v2.0.0-rc5 [INFO] [stderr] Compiling sp-version v2.0.0-rc5 [INFO] [stderr] Compiling sp-api v2.0.0-rc4 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.44s [INFO] running `Command { std: "docker" "inspect" "7539ea37ea5257c6ffe79aa66271e6e5589caee05c1eb965f3f8b3140d284740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7539ea37ea5257c6ffe79aa66271e6e5589caee05c1eb965f3f8b3140d284740", kill_on_drop: false }` [INFO] [stdout] 7539ea37ea5257c6ffe79aa66271e6e5589caee05c1eb965f3f8b3140d284740 [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" "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@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "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] a88bf865c1486e3778062b93bd356f7379e902f70d028157328a96963760d51e [INFO] running `Command { std: "docker" "start" "-a" "a88bf865c1486e3778062b93bd356f7379e902f70d028157328a96963760d51e", kill_on_drop: false }` [INFO] [stderr] Compiling sp-api v2.0.0-rc4 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.98s [INFO] running `Command { std: "docker" "inspect" "a88bf865c1486e3778062b93bd356f7379e902f70d028157328a96963760d51e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a88bf865c1486e3778062b93bd356f7379e902f70d028157328a96963760d51e", kill_on_drop: false }` [INFO] [stdout] a88bf865c1486e3778062b93bd356f7379e902f70d028157328a96963760d51e [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" "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@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 26f2c5cfddb616261e8feb50e4af1d071aabbc223792d84d1aac0b250f48baaf [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" "26f2c5cfddb616261e8feb50e4af1d071aabbc223792d84d1aac0b250f48baaf", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/sp_api-08c57335ef993b10 [INFO] [stdout] [INFO] [stderr] Doc-tests sp-api [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - mock_impl_runtime_apis (line 255) ... FAILED [INFO] [stdout] test src/lib.rs - impl_runtime_apis (line 174) ... FAILED [INFO] [stdout] test src/lib.rs - decl_runtime_apis (line 128) ... ok [INFO] [stdout] test src/lib.rs - decl_runtime_apis (line 94) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - mock_impl_runtime_apis (line 255) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sp_test_primitives` [INFO] [stdout] --> src/lib.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sp_test_primitives::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `sp_test_primitives` [INFO] [stdout] [INFO] [stdout] error[E0407]: method `execute_in_transaction` is not a member of trait `sp_api::ApiExt` [INFO] [stdout] --> src/lib.rs:279:1 [INFO] [stdout] | [INFO] [stdout] 26 | / sp_api::mock_impl_runtime_apis! { [INFO] [stdout] 27 | | impl Balance for MockApi { [INFO] [stdout] 28 | | /// Here we take the `&self` to access the instance. [INFO] [stdout] 29 | | fn get_balance(&self) -> u64 { [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ not a member of trait `sp_api::ApiExt` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionOutcome` in crate `sp_api` [INFO] [stdout] --> src/lib.rs:279:1 [INFO] [stdout] | [INFO] [stdout] 26 | / sp_api::mock_impl_runtime_apis! { [INFO] [stdout] 27 | | impl Balance for MockApi { [INFO] [stdout] 28 | | /// Here we take the `&self` to access the instance. [INFO] [stdout] 29 | | fn get_balance(&self) -> u64 { [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:332:1 [INFO] [stdout] | [INFO] [stdout] 332 | / pub type TransactionFor = [INFO] [stdout] 333 | | as StateBackend>>::Transaction; [INFO] [stdout] | |_____________________________________________________________________________- similarly named type alias `TransactionFor` defined here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 | TransactionFor [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use sp_runtime::TransactionOutcome; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0407, E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0407`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - impl_runtime_apis (line 174) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sp_test_primitives` [INFO] [stdout] --> src/lib.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sp_test_primitives::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `sp_test_primitives` [INFO] [stdout] [INFO] [stdout] error[E0407]: method `execute_in_transaction` is not a member of trait `sp_api::ApiExt` [INFO] [stdout] --> src/lib.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 29 | / sp_api::impl_runtime_apis! { [INFO] [stdout] 30 | | impl sp_api::Core for Runtime { [INFO] [stdout] 31 | | fn version() -> sp_version::RuntimeVersion { [INFO] [stdout] 32 | | unimplemented!() [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ not a member of trait `sp_api::ApiExt` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `TransactionOutcome` in `sp_api` [INFO] [stdout] --> src/lib.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 29 | / sp_api::impl_runtime_apis! { [INFO] [stdout] 30 | | impl sp_api::Core for Runtime { [INFO] [stdout] 31 | | fn version() -> sp_version::RuntimeVersion { [INFO] [stdout] 32 | | unimplemented!() [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ could not find `TransactionOutcome` in `sp_api` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransactionOutcome` in crate `sp_api` [INFO] [stdout] --> src/lib.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 29 | / sp_api::impl_runtime_apis! { [INFO] [stdout] 30 | | impl sp_api::Core for Runtime { [INFO] [stdout] 31 | | fn version() -> sp_version::RuntimeVersion { [INFO] [stdout] 32 | | unimplemented!() [INFO] [stdout] ... | [INFO] [stdout] 51 | | } [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:332:1 [INFO] [stdout] | [INFO] [stdout] 332 | / pub type TransactionFor = [INFO] [stdout] 333 | | as StateBackend>>::Transaction; [INFO] [stdout] | |_____________________________________________________________________________- similarly named type alias `TransactionFor` defined here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 29 | TransactionFor [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use sp_runtime::TransactionOutcome; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `map_api_result` [INFO] [stdout] --> src/lib.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 29 | sp_api::impl_runtime_apis! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `map_api_result` in implementation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] = help: implement the missing item: `fn map_api_result(&self, _: F) -> std::result::Result where F: std::ops::FnOnce, std::ops::FnOnce::Output = std::result::Result { todo!() }` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0407, E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - impl_runtime_apis (line 174) [INFO] [stdout] src/lib.rs - mock_impl_runtime_apis (line 255) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "26f2c5cfddb616261e8feb50e4af1d071aabbc223792d84d1aac0b250f48baaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26f2c5cfddb616261e8feb50e4af1d071aabbc223792d84d1aac0b250f48baaf", kill_on_drop: false }` [INFO] [stdout] 26f2c5cfddb616261e8feb50e4af1d071aabbc223792d84d1aac0b250f48baaf