rust/compiler/rustc_resolve/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
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Suggest assoc fn new when trying to build tuple struct with private fields 2023-10-26 22:21:05 +00:00
build_reduced_graph.rs s/Generator/Coroutine/ 2023-10-20 21:10:38 +00:00
check_unused.rs Rollup merge of #116905 - Fenex:refactor/compiler/resolve, r=petrochenkov 2023-10-26 17:45:43 +02:00
def_collector.rs Add gen blocks to ast and do some broken ast lowering 2023-10-27 13:05:48 +00:00
diagnostics.rs Rollup merge of #117009 - fmease:diag-disambig-sugg-crate, r=b-naber 2023-10-25 23:37:10 +02:00
effective_visibilities.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
errors.rs Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors 2023-09-11 17:03:32 +02:00
ident.rs Rename RibKind::ClosureOrAsync to reflect how it is actually used 2023-10-27 13:05:49 +00:00
imports.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
late.rs Rename RibKind::ClosureOrAsync to reflect how it is actually used 2023-10-27 13:05:49 +00:00
lib.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
macros.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustdoc.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00