about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-20 15:36:15 +0100
committerGitHub <noreply@github.com>2025-03-20 15:36:15 +0100
commit919e7679f8544a0571b3a4070632b76cb4bb65b1 (patch)
treee39eeb4f4f39f1124fcc669b50523cef71ededf2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente85fcabd9f28e7fea60d0f87273d3b9e00029cb6 (diff)
parente3f1bc8b06a1fe671bb21d17328584e5fc3c871c (diff)
downloadrust-919e7679f8544a0571b3a4070632b76cb4bb65b1.tar.gz
rust-919e7679f8544a0571b3a4070632b76cb4bb65b1.zip
Rollup merge of #138435 - eholk:prefix-yield, r=oli-obk
Add support for postfix yield expressions

We've been having a discussion about whether we want postfix yield, or want to stick with prefix yield, or have both. I figured it's easy enough to support both for now and let us play around with them while the feature is still experimental.

This PR treats `yield x` and `x.yield` as semantically equivalent. There was a suggestion to make `yield x` have a `()` type (so it only works in coroutines with `Resume = ()`. I think that'd be worth trying, either in a later PR, or before this one merges, depending on people's opinions.

#43122
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions