Skip to content

New nightly Rust breaks the building of all contracts with ink!  #1417

Closed
@xgreenx

Description

@xgreenx

The error came up with the latest nightly build of the rust. I guess after stabilization of generics in the associated types: rust-lang/rust#96709

ink! generates the code like this to get the selectors of the methods inside the match statement:

image

And it causes the compilation error. It can be fixed for a new version of ink! by moving this code from the match statement for each selector into a separate constant, and using those constants in the match. But all old versions of ink! should be compiled with old Rust(Or we need to patch each release with a minor fix).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions