Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xgreenx opened this issue Sep 27, 2022 · 0 comments · Fixed by #1418
Closed

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

xgreenx opened this issue Sep 27, 2022 · 0 comments · Fixed by #1418

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Sep 27, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant