Skip to content

Cargo install fails on Linux #88

Description

@elbaro

cargo install cargo-web

rustc 1.26.0-nightly (9c9424de5 2018-03-27)

error[E0034]: multiple applicable items in scope
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-wasm-0.19.3/src/interpreter/module.rs:411:111
    |
411 |                 let offset: u32 = get_initializer(data_segment.offset(), &self.module, &self.imports, VariableType::I32)?.try_into()?;
    |                                                                                                                           ^^^^^^^^ multiple `try_into` found
    |
    = note: candidate #1 is defined in an impl of the trait `std::convert::TryInto` for the type `_`
note: candidate #2 is defined in the trait `interpreter::value::TryInto`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-wasm-0.19.3/src/interpreter/value.rs:27:2
    |
27  |     fn try_into(self) -> Result<T, E>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: to disambiguate the method call, write `interpreter::value::TryInto::try_into(match ::std::ops::Try::into_result(get_initializer(data_segment.offset(),
                                                               &self.module,
                                                               &self.imports,
                                                               VariableType::I32)) {
                ::std::result::Result::Err(err) =>
                    #[allow(unreachable_code)]
                    return ::std::ops::Try::from_error(::std::convert::From::from(err)),
                ::std::result::Result::Ok(val) =>
                    #[allow(unreachable_code)]
                    val,
            })` instead

(..the same `try_into` error continues)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions