rust/src
bors 2cad938a81 Auto merge of #116447 - oli-obk:gen_fn, r=compiler-errors
Implement `gen` blocks in the 2024 edition

Coroutines tracking issue https://github.com/rust-lang/rust/issues/43122
`gen` block tracking issue https://github.com/rust-lang/rust/issues/117078

This PR implements `gen` blocks that implement `Iterator`. Most of the logic with `async` blocks is shared, and thus I renamed various types that were referring to `async` specifically.

An example usage of `gen` blocks is

```rust
fn foo() -> impl Iterator<Item = i32> {
    gen {
        yield 42;
        for i in 5..18 {
            if i.is_even() { continue }
            yield i * 2;
        }
    }
}
```

The limitations (to be resolved) of the implementation are listed in the tracking issue
2023-10-29 00:03:52 +00:00
..
bootstrap Auto merge of #81746 - bjorn3:cg_clif_rustup_component, r=Mark-Simulacrum 2023-10-28 15:16:27 +00:00
ci Explicitly mark which targets to distribute cg_clif for in CI 2023-10-27 18:56:46 +00:00
doc Rollup merge of #117025 - Urgau:cleanup-improve-check-cfg-impl, r=petrochenkov 2023-10-28 01:07:37 -07:00
etc Rollup merge of #116978 - tromey:rust-printers-cleanup, r=Mark-Simulacrum 2023-10-23 16:23:52 +02:00
librustdoc Rollup merge of #117268 - nnethercote:rustc_interface, r=oli-obk 2023-10-28 01:07:38 -07:00
llvm-project@febc39711a Update to LLVM 17.0.3 2023-10-17 10:44:45 +02:00
rustdoc-json-types rustdoc-json: Rename typedef to type alias 2023-08-21 14:02:34 -07:00
tools Auto merge of #116447 - oli-obk:gen_fn, r=compiler-errors 2023-10-29 00:03:52 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump to latest beta 2023-10-08 19:57:43 -04:00
version Bump to 1.75.0 2023-09-30 19:09:22 -04: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.