-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_generics`#![feature(const_generics)]``#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Milestone
Description
This is a tracking issue for the minimal usable subset of RFC 2000 (rust-lang/rfcs#2000).
The feature gate for the issue is #![feature(min_const_generics)]
.
See rust-lang/lang-team#37 for more details.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Fix
const-generics-blocking
issues. - Fix
const-generics-bad-diagnostics
issues. - Add many more
min_const_generics
tests. - const wf (generic params in associated consts)
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Completed:
- should we keep allowing things like
[u8; std::mem::size_of::<*mut T>()]
here (cc makeConstEvaluatable
more strict #74595) - how to deal with
ConstKind::Unevaluated
and incorrect inference cycles (cc fix unification of const variables #74040)
Implementation history
- based of Tracking issue for const generics (RFC 2000) #44580
- split into a separate feature gate in Implement the
min_const_generics
feature gate #74877
matklad, est31, therocode, im-nefilim, eminence and 43 moreLeJaneLeJane and denisandroid95th, WiSaGaN, crlf0710, llebout, steveklabnik and 43 moreLeJane95th, llebout, steveklabnik, darksv, jamesmunns and 23 more95th, DutchGhost, darksv, jamesmunns, matklad and 11 moreLeJane, therocode and yupferris
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_generics`#![feature(const_generics)]``#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team