Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Failures when integrating Cumulus with Polkadot for dependent checks #634

Closed
joao-paulo-parity opened this issue Oct 1, 2021 · 0 comments · Fixed by #636
Closed

Failures when integrating Cumulus with Polkadot for dependent checks #634

joao-paulo-parity opened this issue Oct 1, 2021 · 0 comments · Fixed by #636

Comments

@joao-paulo-parity
Copy link
Contributor

joao-paulo-parity commented Oct 1, 2021

> rustc --version
rustc 1.55.0 (c8dfcfe04 2021-09-06)

I am trying to make the dependent check pass in paritytech/substrate#9749 and hitting two issues at the moment.

One is the async-std conflict which might be solved by paritytech/polkadot#3981.

Another is the following:

	error[E0283]: type annotations needed
   --> pallets/xcm/src/lib.rs:127:20
    |
127 |                     let outcome = T::XcmExecutor::execute_xcm(Parent.into(), x, limit);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------- this method call resolves to `T`
    |                                   |
    |                                   cannot infer type for type parameter `impl Into<MultiLocation>` declared on the associated function `execute_xcm`
    |
    = note: cannot satisfy `_: Into<xcm::v1::MultiLocation>`
note: required by `xcm::v2::ExecuteXcm::execute_xcm`
   --> /polkadot-patch/xcm/src/v2/traits.rs:170:2
    |
170 | /     fn execute_xcm(
171 | |         origin: impl Into<MultiLocation>,
172 | |         message: Xcm<Call>,
173 | |         weight_limit: Weight,
174 | |     ) -> Outcome {
    | |________________^

error[E0283]: type annotations needed
   --> pallets/xcm/src/lib.rs:161:20
    |
161 |                     let outcome = T::XcmExecutor::execute_xcm(Parent.into(), x, weight_limit);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------- this method call resolves to `T`
    |                                   |
    |                                   cannot infer type for type parameter `impl Into<MultiLocation>` declared on the associated function `execute_xcm`
    |
    = note: cannot satisfy `_: Into<xcm::v1::MultiLocation>`
note: required by `xcm::v2::ExecuteXcm::execute_xcm`
   --> /polkadot-patch/xcm/src/v2/traits.rs:170:2
    |
170 | /     fn execute_xcm(
171 | |         origin: impl Into<MultiLocation>,
172 | |         message: Xcm<Call>,
173 | |         weight_limit: Weight,
174 | |     ) -> Outcome {
    | |________________^

For more information about this error, try `rustc --explain E0283`.
error: could not compile `cumulus-pallet-xcm` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0283]: type annotations needed
   --> pallets/dmp-queue/src/lib.rs:243:20
    |
243 |                     let outcome = T::XcmExecutor::execute_xcm(Parent.into(), x, limit);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------- this method call resolves to `T`
    |                                   |
    |                                   cannot infer type for type parameter `impl Into<MultiLocation>` declared on the associated function `execute_xcm`
    |
    = note: cannot satisfy `_: Into<xcm::v1::MultiLocation>`
note: required by `xcm::v2::ExecuteXcm::execute_xcm`
   --> /polkadot-patch/xcm/src/v2/traits.rs:170:2
    |
170 | /     fn execute_xcm(
171 | |         origin: impl Into<MultiLocation>,
172 | |         message: Xcm<Call>,
173 | |         weight_limit: Weight,
174 | |     ) -> Outcome {
    | |________________^

error: build failed

cc @KiChjang (because you edited those files last :-u)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant