-
Notifications
You must be signed in to change notification settings - Fork 56
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
Prepare const traits for stabilization #106
Comments
This issue is intended for status updates only. For general questions or comments, please contact the owner(s) directly. |
Update 2024-07-27:
|
Update 2024-10-02:
|
Update 2024-11-20: #131985 by @compiler-errors completely restructured the way const traits are desugared, which made the design easier to understand and more robust against our current unit tests. Since then, there had been significant development and cleanup for the feature, with #131968 #132118 #132168 #132169 #132227 #132275 #132344 #132366 #132368 #132479 #132823 among the ones that got merged, and #133216 #133218 that are still open. With the recent work, we are very close to being able to dogfooding the feature on the standard library again, and the current implementation is the closest we have towards something that can be stabilized. |
Update 2024-12-30: (sorry for the delay!) We began adding a small set of const traits and implementation in the compiler, while carefully looking for improvements in our implementation. We constified A lot of the credits for implementing this feature goes to @compiler-errors, who authored these PRs (let me know if I have missed some): rust-lang/rust#133926 rust-lang/rust#134637 rust-lang/rust#134638 There was more progress on implementing stability for the const traits feature: rust-lang/rust#132823 (didn't include in the previous update, sorry), and rust-lang/rust#133999. A couple of PRs constifying more traits are also open: rust-lang/rust#133995 rust-lang/rust#134628 |
This is a continuing project goal, and the updates below this comment will be for the new period 2025h1 |
I opened an RFC (rust-lang/rfcs#3762) and we had a lang team meeting about it. Some design exploration and bikeshedding later we have settled on using (const)instead of ~const along with some more annotations for explicitness and some fewer annotations in other places. The RFC has been updated accordingly. There is still ongoing discussions about reintroducing the "fewer annotations" for redundancy and easier processing by humans. |
Summary
Prepare
const Trait
bounds for stabilization.Tasks and status
Formalize const-traits in a-mir-formality
The text was updated successfully, but these errors were encountered: