mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-02 15:19:54 +03:00
6d0b887972
Fixes a regression where this conversion crashes. When the conversion was still possible it would produce a slice with a length of zero, which doesn't really make a lot of sense either. There's no way to determine the length of the destination slice from a pointer to an opaque type, so it's a compile error now. Users should just cast to a many-item pointer and slice to the desired length manually instead.