Skip to content

Type inference of inferred repeat expr counts is not as strong as it could be #140855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BoxyUwU opened this issue May 9, 2025 · 0 comments
Open
Labels
A-array Area: `[T; N]` C-bug Category: This is a bug. F-generic_arg_infer Using `_` as a const argument: #![feature(generic_arg_infer)]` F-marker_trait_attr `#![feature(marker_trait_attr)]` T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.

Comments

@BoxyUwU
Copy link
Member

BoxyUwU commented May 9, 2025

See the FCP writeup for inference of inferred repeat expr counts: #139635 (comment)

Once marker traits are stable we should experiment with a RepeatExprWf lang item trait in core with marker impls for [T: Copy; N], [T; 0] and [T; 1] which will allow for proper ability to defer/stall the repeat expr wf checks.

@BoxyUwU BoxyUwU added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. F-marker_trait_attr `#![feature(marker_trait_attr)]` A-array Area: `[T; N]` T-types Relevant to the types team, which will review and decide on the PR/issue. F-generic_arg_infer Using `_` as a const argument: #![feature(generic_arg_infer)]` labels May 9, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 9, 2025
@BoxyUwU BoxyUwU removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-array Area: `[T; N]` C-bug Category: This is a bug. F-generic_arg_infer Using `_` as a const argument: #![feature(generic_arg_infer)]` F-marker_trait_attr `#![feature(marker_trait_attr)]` T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants