-
Notifications
You must be signed in to change notification settings - Fork 91
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
#[rune::function]
fails when adding a 6th argument
#755
Comments
In case you need to reproduce this: https://github.com/VorpalBlade/paketkoll/tree/feature/konfigkoll (commit 588104d5), in the file Notes:
|
It's not explicitly spelled out in the documentation, but the It's a bit of a pain adding more, since they have to be a permutation between three different traits. The background for why this is needed is here. Previously the references used were unbound and this pattern is currently needed to unbind them. However, if we can live with only one trait being implemented for the auxiliary parameters (like |
Hm, confusingly when I looked at Since you already use a macro (declarative) to generate these impls, what is the cost of repeating it for a few more parameters? Is it build time due to combinatorial explosion? In that case only supporting Value for parameter 7 up to N makes sense as a compromise. |
If you want to play around with the problem space, here's a playground I put together. This is another playground showing how we currently solve it with references. |
I don't remember. Please try it out if you have the time! |
This compiles:
Uncommenting the package parameter gives the following (cryptic) error though:
In fact, commenting out any of the 6 parameters make it work. I cannot find any mention of a 6 parameter limit in the docs?
The text was updated successfully, but these errors were encountered: