about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-12 08:07:16 +0100
committerGitHub <noreply@github.com>2024-11-12 08:07:16 +0100
commit1dd975beb331bab899e23dd1e6df88827bbb8317 (patch)
treefe81de6201dddd841360b46f4ab0bd7b4d29ae90 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb18ee9858b01f53b12fdb3aaed704ec2ca785670 (diff)
parente04acff14ffffabd382323a5a7bc673965a66700 (diff)
downloadrust-1dd975beb331bab899e23dd1e6df88827bbb8317.tar.gz
rust-1dd975beb331bab899e23dd1e6df88827bbb8317.zip
Rollup merge of #132668 - ehuss:yield-gate-2024, r=davidtwco
Feature gate yield expressions not in 2024

This changes it so that yield expressions are no longer allowed in the 2024 edition without a feature gate. We are currently only reserving the `gen` keyword in the 2024 edition, and not allowing anything else to be implicitly enabled by the edition.

In practice this doesn't have a significant difference since yield expressions can't really be used outside of coroutines or gen blocks, which have their own feature gates. However, it does affect what is accepted pre-expansion, and I would feel more comfortable not allowing yield expressions.

I believe the stabilization process for gen blocks or coroutines will not need to check the edition here, so this shouldn't ever be needed.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions