You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Issue for closures in const contexts #106003
This is a tracking issue for declaring const closures.
The feature gate for the issue is #![feature(const_closures)].
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.
Reacted by José Luis Cruz, orzogc, Rajas Paranjpe, O01eg, Gabriel Bjørnager Jensen, jasper310899, Timur Tugushev, Yumekui, decorator-factory, Jacob Pratt and 7 more
Reacted by Gabriel Bjørnager Jensen, jasper310899, Andrew Ferreira, Clara Engler, Alexander Medvedev and AverageHelper
Data point: const async fn f() {} is the order accepted for function definitions, so we should ensure at minimum the relative order of const–async is consistent.
Reacted by Jacob Pratt, Eric Shimizu Karbstein, Ricardo Fernández Serrata, James C. Wise, Gabriel Bjørnager Jensen, Andrew Ferreira and neeko-cat
Yes, but it needs significant work and possibly a redesign from scratch. Unsure, but it's def more than a few days of work, considering I worked on it for a day and didn't get very far in even understanding the full situation. I'll post my status as a PR as it's an improvement to the currently broken feature, but it still may require getting ripped out and done over
Reacted by Ricardo Fernández Serrata and Gabriel Bjørnager Jensen
Activity
Jerrody commentedon Dec 22, 2022
In my opinion, suggested keyword order is good.
Auto merge of rust-lang#106004 - fee1-dead-contrib:const-closures, r=…
Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk
dtolnay commentedon Jan 16, 2023
Data point:
const async fn f() {}is the order accepted for function definitions, so we should ensure at minimum the relative order ofconst–asyncis consistent.jhpratt commentedon Jan 19, 2023
Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk
ices/112822.rs: fixed with errors
jasper310899 commentedon Jul 12, 2025
Now with the Fn trait constified this seems possible, right?
oli-obk commentedon Jul 12, 2025
Yes, but it needs significant work and possibly a redesign from scratch. Unsure, but it's def more than a few days of work, considering I worked on it for a day and didn't get very far in even understanding the full situation. I'll post my status as a PR as it's an improvement to the currently broken feature, but it still may require getting ripped out and done over
Auto merge of #144847 - Randl:const-ord, r=oli-obk
Auto merge of #144847 - Randl:const-ord, r=oli-obk
Auto merge of #144847 - Randl:const-ord, r=oli-obk
Auto merge of #144847 - Randl:const-ord, r=oli-obk
Auto merge of rust-lang#144847 - Randl:const-ord, r=oli-obk
Rollup merge of rust-lang#153818 - oli-obk:const-closures, r=fee1-dead
Rollup merge of rust-lang#153818 - oli-obk:const-closures, r=fee1-dead