-
Notifications
You must be signed in to change notification settings - Fork 21
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
ICE with const-generic signature #885
Comments
This must be related to these changes #884. Struct compact requires some complicated de Bruijn index juggling |
@nilehmann any idea what is going on here? Seems like some glitch in |
Looks like this works instead #[flux::sig(fn (rows: &[_]))]
fn csv<const N: usize>(rows: &[[&str; N]]) {} |
That code fills in holes by matching against the default signature. When we find a match, the hole and the matching type could be under a different number of binders so we try to adjust de Bruijn indices. It's a confusing computation and I just probably got it wrong. |
The code below
makes flux keel over with
The text was updated successfully, but these errors were encountered: