You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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).
The text was updated successfully, but these errors were encountered:
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: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 thematch
. But all old versions of ink! should be compiled with old Rust(Or we need to patch each release with a minor fix).The text was updated successfully, but these errors were encountered: