rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
99.13k stars 12.8k forks source link

Tracking Issue for `async {}` blocks in const expressions #85368

Open jonas-schievink opened 3 years ago

jonas-schievink commented 3 years ago

This is a tracking issue for use of async {} expressions in const contexts. The feature gate for the issue is #![feature(const_async_blocks)].

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.

Steps

Unresolved Questions

Implementation history

CryZe commented 3 years ago

Technically this already existed, but I'll close mine in favor of this one: https://github.com/rust-lang/rust/issues/69431

jonas-schievink commented 3 years ago

Ah okay, normally we don't have tracking issues for things that aren't implemented

Swatinem commented 2 years ago

Hi! 👋🏻 I discovered while working on https://github.com/rust-lang/rust/pull/104321 that async blocks can trivially be const as soon as the https://github.com/rust-lang/rust/issues/104826 workaround is fixed.

Depending on whats happening with https://github.com/rust-lang/rust/issues/104826, what would be the next steps in moving forward with the feature flag/stabilization?

CryZe commented 1 year ago

Is there anything preventing this from getting stabilized? I'd like to do the remaining work to push this to stabilization.