Does not work with nested arrays
Opened this issue · 1 comments
simon-auch commented
So I came across this while tinkering around on this.
The essence is that when trying to create a box of [[0i32;SomeBigNumber];SomeBigNumber]
the stack overflows, but when creating a box of [i32;SomeBigNumber*SomeBigNumber]
it works.
I would understand if this is something this crate cannot change (as its a missed opportunity from the compiler to optimize this) but wanted to ask if there is a known specific reason for this to not work?
I'm using the latest nightly and of course use cargo run --release
while testing this.
kvark commented
We don't have any introspection into the type, so we are at mercy of the Rust compiler, still.
I don't know what we could do to support this case. Ideas are welcome!