niche optimization cannot be applied to non-power-of-two-sized int #116833
Labels
A-layout
Area: Memory layout of types
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'd like to be able to apply niche optimizations to irregular integer sizes, e.g. u24 (or [u8;3]), where the niche is the zero pattern for all bytes. That's led me to this ICE.
Code
Meta
rustc --version --verbose
:(via rust playground https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=c68c4d3734c44fdb16f959686c5d61be)
Error output
The text was updated successfully, but these errors were encountered: