Tracking Issue for Generic Constant Arguments MVP

· GitHub ·

8 min read Original article ↗

This is a tracking issue for the prototype described in rust-lang/goals#100. Background reading as to the design/justification for this feature.
The feature gate for the issue is #![feature(gca_min_const_items)].

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used 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.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

Unresolved Questions

  • Can we get rid of needing an annotation on const items for them being type consts?
    • If no we need t-style to decide on rustfmt stuff

Implementation history

Implementation history
  1. Initial effort to implement which includes parsing and use of term throughout the codebase, but still lacking a complete implementation. ↩

  2. More thorough implementation which works for basic cases. This allowed for consts to actually be bound, more than just parsing them. ↩

Reacted by Felipe S. S. Schneider, Dmitry Pytaylo, EvianZhang, chrysn, Juho N, Marius Cobzarenco, Chris Bouchard, Sam Shepard, Nazar Mokrynskyi, Juhan Oskar Hennoste and 16 more

Reacted by Felipe S. S. Schneider, Marius Cobzarenco, Chris Bouchard, Juhan Oskar Hennoste, Keith, Psionic K, JC and sirati

Reacted by bendn

Reacted by Andre Julius, Felipe S. S. Schneider, katini, chrysn, Marius Cobzarenco, Chris Bouchard, Gabriel Venberg, Juhan Oskar Hennoste, Keith, Dwarslöper and 5 more

Reacted by Felipe S. S. Schneider, chrysn, Marius Cobzarenco, Chris Bouchard, Gabriel Venberg, Juhan Oskar Hennoste, ptrca, Keith, Johannes Dahlström, JC and 1 more

Reacted by José Luis Cruz, Felipe S. S. Schneider, Chris Bouchard, Daniel Knopik, Juhan Oskar Hennoste, Redddy and JC