Open
Description
Currently, we generate array impls for every size up to 32 manually using macros, but with const generics at a suitable level of implementation, we can switch to properly parameterising over all lengths.
- Replace most manual impls with const generic impls (PR: Use const generics for array impls [part 1] #62435)
- Replace
Default
impl with const generic impl (more difficult due to Switch libcore array implementations to const generics. #60466 (comment)). - Reimplement impls removed due to bloat using const generic impls (see
Lines 221 to 227 in 7840a0b
Lines 2199 to 2204 in bfdfa85
Metadata
Metadata
Assignees
Labels
Area: `[T; N]`Area: const generics (parameters and arguments)Area: `[T]`Libs issues that are tracked on the team's project board.Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.