1
Fork 0
rust/compiler/rustc_feature/src
Michael Goulet bc45cdb27a
Rollup merge of #138081 - eholk:yield-feature, r=oli-obk
Move `yield` expressions behind their own feature gate

In order to make progress with the `iter!` macro (e.g. in #137725), we need `yield` expressions to be available without the `coroutines` feature. This PR moves `yield` to be guarded by the `yield_expr` feature so that we can stabilize that independently (or at least, concurrently with the `iter_macro` feature). Note that once `yield` is stable, it will still be an error to use `yield` expressions outside something like a generator or coroutine, and these features remain unstable.

r? `@oli-obk`
2025-03-06 15:40:05 -05:00
..
accepted.rs update version placeholders 2025-02-18 08:50:21 -08:00
builtin_attrs.rs mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
lib.rs rustc_feature: Avoid unsafe std::env::set_var() in UnstableFeatures tests 2025-01-08 11:37:19 +01:00
removed.rs List the feature in removed.rs 2025-03-04 12:44:22 +00:00
tests.rs rustc_feature: Avoid unsafe std::env::set_var() in UnstableFeatures tests 2025-01-08 11:37:19 +01:00
unstable.rs Rollup merge of #138081 - eholk:yield-feature, r=oli-obk 2025-03-06 15:40:05 -05:00