rust/src
Matthias Krüger d752721636
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
2025-03-20 15:36:15 +01:00
..
bootstrap Use -Wunused_crate_dependencies for compiler crates. 2025-03-20 08:59:43 +11:00
build_helper Add post-merge analysis CI workflow 2025-03-07 09:43:52 +01:00
ci Auto merge of #138693 - matthiaskrgr:rollup-ejq8mwp, r=matthiaskrgr 2025-03-19 12:39:34 +00:00
doc Rollup merge of #138655 - Kobzol:rdg-sync, r=jieyouxu 2025-03-19 08:17:15 +01:00
etc replace config.toml to bootstrap.toml in src/ci, src/etc/* and tests/run-make 2025-03-17 12:56:49 +05:30
gcc@48664a6cab Revert "add fix for full tools and sanitizer" 2025-03-04 17:38:06 +08:00
librustdoc Auto merge of #138630 - matthiaskrgr:rollup-kk1gogr, r=matthiaskrgr 2025-03-18 05:58:46 +00:00
llvm-project@acaea3d2bb Update to LLVM 20.1.1 2025-03-19 10:36:30 +01:00
rustc-std-workspace update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustdoc-json-types Add RTN support to rustdoc 2025-03-15 18:13:27 +00:00
tools Rollup merge of #138435 - eholk:prefix-yield, r=oli-obk 2025-03-20 15:36:15 +01:00
README.md
stage0 bump stage0 2025-02-18 08:51:01 -08:00
version Bump to version 1.87.0 2025-02-14 09:55:45 -08:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.