copyless icon indicating copy to clipboard operation
copyless copied to clipboard

Does not work with nested arrays

Open simon-auch opened this issue 5 years ago • 1 comments

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?

Minimal example

I'm using the latest nightly and of course use cargo run --release while testing this.

simon-auch avatar May 10 '20 19:05 simon-auch

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!

kvark avatar May 13 '20 20:05 kvark